Package com.jk.webstack.controllers
Class JKWebControllerWithOrmSupport<T>
java.lang.Object
com.jk.web.faces.controllers.JKWebController
com.jk.webstack.controllers.JKWebAppBaseController
com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
com.jk.webstack.controllers.JKWebControllerWithOrmSupport<T>
- Type Parameters:
T
- the generic type
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JKRolesWebControllers
,JKUserWebControllers
The Class JKManagedBeanWithOrmSupport.
- See Also:
-
Field Summary
FieldsFields inherited from class com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
sqlDataAccess
Fields inherited from class com.jk.web.faces.controllers.JKWebController
logger
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new JK managed bean with orm support. -
Method Summary
Modifier and TypeMethodDescriptionadd()
Adds the.Adds the.protected void
After delete.protected void
After insert.protected void
After update.approvePayload
(int id) Approve payload.protected void
Before delete.protected void
Before insert.protected void
Before update.void
Cancel edit.protected T
Creates the empty model.delete()
Delete.Delete.Duplicate.edit()
Edits the.fill()
Fill.find
(int id) Find.findPayload
(int id) Find payload.protected JKObjectDataAccess
Gets the data access.Gets the empty model.Gets the filter list.Gets the filter list 2.Gets the id value.protected Integer
getIdValue
(T model) Gets the id value.getMode()
Gets the mode.getModel()
Gets the model.Gets the model class.Gets the model list.Gets the original.Gets the payload.Gets the payloads.protected String
Gets the workflow entity name.boolean
Checks if is allow add.boolean
Checks if is allow delete.boolean
Checks if is allow edit.boolean
Checks if is allow fill.boolean
Checks if is allow reset.boolean
Checks if is allow save.boolean
Checks if is always refresh list.boolean
Checks if is confirm reeset.boolean
Checks if is edits the mode.boolean
Checks if is edits the tabular.boolean
isFieldModified
(String name) Checks if is field modified.boolean
Checks if is input disabled.boolean
Checks if is read only mode.boolean
Checks if is workflow avialable.rejectPayload
(int id) Reject payload.reset()
Reset.protected void
Reset work flow.save()
Save.saveAll()
Save all.void
Save all.Save.void
setAlwaysRefreshList
(boolean alwaysRefreshList) Sets the always refresh list.void
setConfirmReeset
(boolean confirmReeset) Sets the confirm reeset.void
setEditTabular
(boolean editTabular) Sets the edits the tabular.void
setFilterList
(List<T> filterList) Sets the filter list.void
setFilterList2
(List filterList2) Sets the filter list 2.void
setIdValue
(Object value) Sets the id value.void
Sets the model.void
setOriginal
(T original) Sets the original.void
setPayload
(PayloadModel payload) Sets the payload.void
setPayloads
(List<PayloadModel> payloads) Sets the payloads.viewPayload
(int id) View payload.Methods inherited from class com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
execute, getSqlDataAccess, init
Methods inherited from class com.jk.webstack.controllers.JKWebAppBaseController
getActionLogName, getActionLogService, getEmail, getEmailService, getFamilyName, getFirstName, getIdToken, getUserName, isUserLoggedIn, logAction
Methods inherited from class com.jk.web.faces.controllers.JKWebController
context, error, error, executeAsyc, getContextParam, getContextPath, getFromAppliaction, getFromRequest, getFromSession, getParam, getParamterFromRequest, getRoles, getViewScopedManagedBean, handleException, isDebug, isDevelopmentMode, redirect, request, session, success, success, suggestName, updateUi, warning
-
Field Details
-
mode
The mode.
-
-
Constructor Details
-
JKWebControllerWithOrmSupport
public JKWebControllerWithOrmSupport()Instantiates a new JK managed bean with orm support.
-
-
Method Details
-
addToDatabase
Adds the.- Returns:
- the string
-
edit
Edits the.- Returns:
- the string
-
saveToDatabase
Save.- Returns:
- the string
-
beforeInsert
protected void beforeInsert()Before insert. -
afterInsert
protected void afterInsert()After insert. -
beforeUpdate
protected void beforeUpdate()Before update. -
afterUpdate
protected void afterUpdate()After update. -
beforeDelete
protected void beforeDelete()Before delete. -
find
Find.- Parameters:
id
- the id- Returns:
- the string
-
getModelClass
Gets the model class.- Returns:
- the model class
-
getModelList
Gets the model list.- Returns:
- the model list
-
deleteFromDatabase
Delete.- Returns:
- the string
-
afterDelete
protected void afterDelete()After delete. -
getIdValue
Gets the id value.- Returns:
- the id value
-
getIdValue
Gets the id value.- Parameters:
model
- the model- Returns:
- the id value
-
getModel
Gets the model.- Returns:
- the model
-
createEmptyModel
Creates the empty model.- Returns:
- the t
-
setModel
Sets the model.- Parameters:
model
- the new model
-
getDataAccess
Gets the data access.- Returns:
- the data access
-
reset
Reset.- Returns:
- the string
-
resetWorkFlow
protected void resetWorkFlow()Reset work flow. -
isAlwaysRefreshList
public boolean isAlwaysRefreshList()Checks if is always refresh list.- Returns:
- true, if is always refresh list
-
setAlwaysRefreshList
public void setAlwaysRefreshList(boolean alwaysRefreshList) Sets the always refresh list.- Parameters:
alwaysRefreshList
- the new always refresh list
-
setIdValue
Sets the id value.- Parameters:
value
- the new id value
-
duplicate
Duplicate.- Returns:
- the string
-
getEmptyModel
Gets the empty model.- Returns:
- the empty model
-
fill
Fill.- Returns:
- the string
-
isAllowAdd
public boolean isAllowAdd()Checks if is allow add.- Returns:
- true, if is allow add
-
isAllowEdit
public boolean isAllowEdit()Checks if is allow edit.- Returns:
- true, if is allow edit
-
isAllowSave
public boolean isAllowSave()Checks if is allow save.- Returns:
- true, if is allow save
-
isAllowDelete
public boolean isAllowDelete()Checks if is allow delete.- Returns:
- true, if is allow delete
-
isAllowReset
public boolean isAllowReset()Checks if is allow reset.- Returns:
- true, if is allow reset
-
isAllowFill
public boolean isAllowFill()Checks if is allow fill.- Returns:
- true, if is allow fill
-
isEditMode
public boolean isEditMode()Checks if is edits the mode.- Returns:
- true, if is edits the mode
-
cancelEdit
public void cancelEdit()Cancel edit. -
isReadOnlyMode
public boolean isReadOnlyMode()Checks if is read only mode.- Returns:
- true, if is read only mode
-
getFilterList
Gets the filter list.- Returns:
- the filter list
-
setFilterList2
Sets the filter list 2.- Parameters:
filterList2
- the new filter list 2
-
setFilterList
Sets the filter list.- Parameters:
filterList
- the new filter list
-
getFilterList2
Gets the filter list 2.- Returns:
- the filter list 2
-
isConfirmReeset
public boolean isConfirmReeset()Checks if is confirm reeset.- Returns:
- true, if is confirm reeset
-
setConfirmReeset
public void setConfirmReeset(boolean confirmReeset) Sets the confirm reeset.- Parameters:
confirmReeset
- the new confirm reeset
-
getMode
Gets the mode.- Returns:
- the mode
-
isEditTabular
public boolean isEditTabular()Checks if is edits the tabular.- Returns:
- true, if is edits the tabular
-
setEditTabular
public void setEditTabular(boolean editTabular) Sets the edits the tabular.- Parameters:
editTabular
- the new edits the tabular
-
saveAllToDatabase
public void saveAllToDatabase()Save all. -
add
Adds the.- Returns:
- the string
-
save
Save.- Returns:
- the string
-
saveAll
Save all.- Returns:
- the string
-
delete
Delete.- Returns:
- the string
-
getPayloads
Gets the payloads.- Returns:
- the payloads
-
setPayloads
Sets the payloads.- Parameters:
payloads
- the new payloads
-
getWorkflowEntityName
Gets the workflow entity name.- Returns:
- the workflow entity name
-
isWorkflowAvialable
public boolean isWorkflowAvialable()Checks if is workflow avialable.- Returns:
- true, if is workflow avialable
-
getPayload
Gets the payload.- Returns:
- the payload
-
setPayload
Sets the payload.- Parameters:
payload
- the new payload
-
approvePayload
Approve payload.- Parameters:
id
- the id- Returns:
- the string
-
findPayload
Find payload.- Parameters:
id
- the id- Returns:
- the payload model
-
rejectPayload
Reject payload.- Parameters:
id
- the id- Returns:
- the string
-
viewPayload
View payload.- Parameters:
id
- the id- Returns:
- the string
-
isInputDisabled
public boolean isInputDisabled()Checks if is input disabled.- Returns:
- true, if is input disabled
-
getOriginal
Gets the original.- Returns:
- the original
-
setOriginal
Sets the original.- Parameters:
original
- the new original
-
isFieldModified
Checks if is field modified.- Parameters:
name
- the name- Returns:
- true, if is field modified
-