|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.web.EditablePropertiesHistoryHolder
public class EditablePropertiesHistoryHolder
A class which will hold a Map of editable properties, dropping editable properties when too many are filled in.
Field Summary | |
---|---|
private KualiConfigurationService |
configurationService
|
private static String |
EDITABLE_PROPERTIES_HISTORY_SIZE_PROPERTY_NAME
|
private Map<String,Set<String>> |
editablePropertiesMap
|
private Queue<String> |
historyOrder
|
private Integer |
maxLength
|
Constructor Summary | |
---|---|
EditablePropertiesHistoryHolder()
Constructs the EditablePropertiesHistoryHolder |
Method Summary | |
---|---|
String |
addEditablePropertiesToHistory(Set<String> editableProperties)
Adds a Set of editable property names to the history, keyed with the given guid String. |
void |
clearEditableProperties(String guid)
Clears out the editable properties associated with the given guid |
protected Set<String> |
createNewEditablePropertiesEntry()
|
String |
generateNewGuid()
|
protected KualiConfigurationService |
getConfigurationService()
|
Set<String> |
getEditableProperties(String guid)
Returns the editable properties registered with the current guid |
protected Map<String,Set<String>> |
getEditablePropertiesMap()
|
protected Queue<String> |
getHistoryOrder()
|
int |
getMaxHistoryLength()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Map<String,Set<String>> editablePropertiesMap
private Integer maxLength
private Queue<String> historyOrder
private static final String EDITABLE_PROPERTIES_HISTORY_SIZE_PROPERTY_NAME
private transient KualiConfigurationService configurationService
Constructor Detail |
---|
public EditablePropertiesHistoryHolder()
Method Detail |
---|
public int getMaxHistoryLength()
public String addEditablePropertiesToHistory(Set<String> editableProperties)
editableProperties
- the Set of editable property names to save in the history
public String generateNewGuid()
public Set<String> getEditableProperties(String guid)
guid
- the guid to find editable properties for
public void clearEditableProperties(String guid)
guid
- the guid to clear out editable properties forprotected Queue<String> getHistoryOrder()
protected Map<String,Set<String>> getEditablePropertiesMap()
protected Set<String> createNewEditablePropertiesEntry()
protected KualiConfigurationService getConfigurationService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |