T - the generic typepublic abstract class JKManagedBeanWithOrmSupport<T> extends JKManagedBeanWithSqlDataAccess
| Modifier and Type | Field and Description |
|---|---|
protected ControllerMode |
mode
The mode.
|
sqlDataAccesslogger| Constructor and Description |
|---|
JKManagedBeanWithOrmSupport()
Instantiates a new JK managed bean with orm support.
|
| Modifier and Type | Method and Description |
|---|---|
String |
add() |
String |
addToDatabase()
Adds the.
|
protected void |
afterDelete()
After delete.
|
protected void |
afterInsert()
After insert.
|
protected void |
afterUpdate()
After update.
|
String |
approvePayload(int id) |
protected void |
beforeDelete()
Before delete.
|
protected void |
beforeInsert()
Before insert.
|
protected void |
beforeUpdate()
Before update.
|
void |
cancelEdit()
Cancel edit.
|
protected T |
createEmptyModel()
Creates the empty model.
|
String |
delete() |
String |
deleteFromDatabase()
Delete.
|
String |
duplicate()
Duplicate.
|
String |
edit()
Edits the.
|
String |
fill()
Fill.
|
String |
find(int id)
Find.
|
com.jk.services.client.workflow.models.PayloadModel |
findPayload(int id) |
protected JKObjectDataAccess |
getDataAccess()
Gets the data access.
|
T |
getEmptyModel()
Gets the empty model.
|
List<T> |
getFilterList()
Gets the filter list.
|
List |
getFilterList2()
Gets the filter list 2.
|
Integer |
getIdValue()
Gets the id value.
|
protected Integer |
getIdValue(T model)
Gets the id value.
|
ControllerMode |
getMode()
Gets the mode.
|
T |
getModel()
Gets the model.
|
protected Class<T> |
getModelClass()
Gets the model class.
|
List<T> |
getModelList()
Gets the model list.
|
T |
getOriginal() |
com.jk.services.client.workflow.models.PayloadModel |
getPayload() |
List<com.jk.services.client.workflow.models.PayloadModel> |
getPayloads() |
protected String |
getWorkflowEntityName() |
boolean |
isAllowAdd()
Checks if is allow add.
|
boolean |
isAllowDelete()
Checks if is allow delete.
|
boolean |
isAllowEdit()
Checks if is allow edit.
|
boolean |
isAllowFill()
Checks if is allow fill.
|
boolean |
isAllowReset()
Checks if is allow reset.
|
boolean |
isAllowSave()
Checks if is allow save.
|
boolean |
isAlwaysRefreshList()
Checks if is always refresh list.
|
boolean |
isConfirmReeset()
Checks if is confirm reeset.
|
boolean |
isEditMode()
Checks if is edits the mode.
|
boolean |
isEditTabular()
Checks if is edits the tabular.
|
boolean |
isFieldModified(String name) |
boolean |
isInputDisabled() |
boolean |
isReadOnlyMode()
Checks if is read only mode.
|
boolean |
isWorkflowAvialable() |
String |
rejectPayload(int id) |
String |
reset()
Reset.
|
protected void |
resetWorkFlow() |
String |
save() |
String |
saveAll() |
void |
saveAllToDatabase()
Save all.
|
String |
saveToDatabase()
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 |
setModel(T model)
Sets the model.
|
void |
setOriginal(T original) |
void |
setPayload(com.jk.services.client.workflow.models.PayloadModel payload) |
void |
setPayloads(List<com.jk.services.client.workflow.models.PayloadModel> payloads) |
String |
viewPayload(int id) |
execute, getSqlDataAccess, initgetActionLogName, getActionLogService, getEmail, getEmailService, getFamilyName, getFirstName, getIdToken, getUserName, isUserLoggedIn, logActioncontext, error, error, executeAsyc, getContextParam, getContextPath, getFromAppliaction, getFromRequest, getFromSession, getParam, getParamterFromRequest, getRoles, getViewScopedManagedBean, handleException, isDebug, isDevelopmentMode, redirect, request, session, success, success, suggestName, updateUi, warningprotected ControllerMode mode
public JKManagedBeanWithOrmSupport()
public String addToDatabase()
public String edit()
public String saveToDatabase()
protected void beforeInsert()
protected void afterInsert()
protected void beforeUpdate()
protected void afterUpdate()
protected void beforeDelete()
public String find(int id)
id - the idpublic String deleteFromDatabase()
protected void afterDelete()
public Integer getIdValue()
protected Integer getIdValue(T model)
model - the modelpublic T getModel()
protected T createEmptyModel()
public void setModel(T model)
model - the new modelprotected JKObjectDataAccess getDataAccess()
public String reset()
protected void resetWorkFlow()
public boolean isAlwaysRefreshList()
public void setAlwaysRefreshList(boolean alwaysRefreshList)
alwaysRefreshList - the new always refresh listpublic void setIdValue(Object value)
value - the new id valuepublic String duplicate()
public T getEmptyModel()
public String fill()
public boolean isAllowAdd()
public boolean isAllowEdit()
public boolean isAllowSave()
public boolean isAllowDelete()
public boolean isAllowReset()
public boolean isAllowFill()
public boolean isEditMode()
public void cancelEdit()
public boolean isReadOnlyMode()
public void setFilterList2(List filterList2)
filterList2 - the new filter list 2public void setFilterList(List<T> filterList)
filterList - the new filter listpublic List getFilterList2()
public boolean isConfirmReeset()
public void setConfirmReeset(boolean confirmReeset)
confirmReeset - the new confirm reesetpublic ControllerMode getMode()
public boolean isEditTabular()
public void setEditTabular(boolean editTabular)
editTabular - the new edits the tabularpublic void saveAllToDatabase()
public String add()
public String save()
public String saveAll()
public String delete()
public List<com.jk.services.client.workflow.models.PayloadModel> getPayloads()
public void setPayloads(List<com.jk.services.client.workflow.models.PayloadModel> payloads)
payloads - protected String getWorkflowEntityName()
public boolean isWorkflowAvialable()
public com.jk.services.client.workflow.models.PayloadModel getPayload()
public void setPayload(com.jk.services.client.workflow.models.PayloadModel payload)
payload - public String approvePayload(int id)
id - public com.jk.services.client.workflow.models.PayloadModel findPayload(int id)
public String rejectPayload(int id)
public String viewPayload(int id)
public boolean isInputDisabled()
public T getOriginal()
public void setOriginal(T original)
public boolean isFieldModified(String name)
Copyright © 2023 Smart-Cloud. All rights reserved.