public abstract class CustomDataHelperBase<T extends DocumentCustomData> extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
class |
CustomDataHelperBase.LabelComparator
Sorts custom data attributes by label for alphabetical order on custom data panels.
|
| Constructor and Description |
|---|
CustomDataHelperBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildCustomDataCollectionsOnExistingDocument(SortedMap<String,List> customAttributeGroups)
This method builds the custom data collections used on the form and populates the values from the collection of AwardCustomData on the Award.
|
void |
buildCustomDataCollectionsOnNewDocument(SortedMap<String,List> customAttributeGroups)
This method builds the custom data collections used on the form
|
boolean |
canModifyCustomData()
Can the current user modify the custom data values?
|
abstract Map<String,CustomAttributeDocument> |
getCustomAttributeDocuments() |
Map<String,List> |
getCustomAttributeGroups()
Gets the customAttributeGroups attribute.
|
protected CustomAttributeService |
getCustomAttributeService() |
abstract List<T> |
getCustomDataList() |
boolean |
getModifyCustomData()
Get the ModifyCustomData value.
|
protected abstract T |
getNewCustomData() |
protected TaskAuthorizationService |
getTaskAuthorizationService() |
protected String |
getUserIdentifier()
Get the userName of the user for the current session.
|
String |
getValidCustomAttributeGroupName(String groupName)
This method takes in a groupName from the data entry and return a valid string to use in the Map functions later.
|
void |
initializePermissions()
Initialize the permissions for viewing/editing the Custom Data web page.
|
void |
prepareCustomData() |
void |
setCustomAttributeContent(String documentNumber,
String attributeName)
Set the custom attribute content in workflow.
|
void |
setCustomAttributeGroups(SortedMap<String,List> customAttributeGroups)
Sets the customAttributeGroups attribute value.
|
public void buildCustomDataCollectionsOnExistingDocument(SortedMap<String,List> customAttributeGroups)
customAttributeGroups - awardForm - customAttributeDocuments - public void buildCustomDataCollectionsOnNewDocument(SortedMap<String,List> customAttributeGroups)
customAttributeGroups - awardForm - customAttributeDocuments - public void prepareCustomData()
protected abstract T getNewCustomData()
public abstract Map<String,CustomAttributeDocument> getCustomAttributeDocuments()
public String getValidCustomAttributeGroupName(String groupName)
groupName - public void initializePermissions()
public boolean canModifyCustomData()
public boolean getModifyCustomData()
public void setCustomAttributeGroups(SortedMap<String,List> customAttributeGroups)
customAttributeGroups - The customAttributeGroups to set.public Map<String,List> getCustomAttributeGroups()
protected TaskAuthorizationService getTaskAuthorizationService()
protected String getUserIdentifier()
public void setCustomAttributeContent(String documentNumber, String attributeName)
form - Exceptionprotected CustomAttributeService getCustomAttributeService()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.