public class EditingCapabilities
extends java.lang.Object
Both enabled and required editing capability sets can only both be null, or not null. Neither will be null while the other is not.
The difference between a null set of editing capabilities and an empty set is that if the set is null, then UI reduction should not take place. However if the set is empty, then UI reduction should take place and all reduced capabilities should be off.
Constructor and Description |
---|
EditingCapabilities(EditingCapabilities ec)
Constructs a new EditingCapabilities instance from a other
EditingCapabilities instance.
|
EditingCapabilities(java.util.Set<java.lang.String> enabled,
java.util.Set<java.lang.String> required)
Constructs a new EditingCapabilities instance with given
enabled and required editing capabilities.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllEnabledEditingCapabilities(java.util.Set<java.lang.String> addition)
Adds the given set of enabled editing capabilities.
|
void |
addAllRequiredEditingCapabilities(java.util.Set<java.lang.String> addition)
Adds the given set of required editing capabilities.
|
boolean |
equals(java.lang.Object o) |
java.util.Set<java.lang.String> |
getEnabledEditingCapabilities()
Returns the set of enabled editing capabilities.
|
java.util.Set<java.lang.String> |
getRequiredEditingCapabilities()
Returns the set of required editing capabilities.
|
int |
hashCode() |
void |
retainAllEnabledEditingCapabilities(java.util.Set<java.lang.String> retain)
Retains all the given set of enabled editing capabilities.
|
void |
setEditingCapabilities(java.util.Set<java.lang.String> enabled,
java.util.Set<java.lang.String> required)
Sets the enabled and required editing capabilities.
|
public EditingCapabilities(EditingCapabilities ec)
ec
- the EditingCapabilities to copypublic EditingCapabilities(java.util.Set<java.lang.String> enabled, java.util.Set<java.lang.String> required)
enabled
- required
- public java.util.Set<java.lang.String> getEnabledEditingCapabilities()
public java.util.Set<java.lang.String> getRequiredEditingCapabilities()
public void addAllEnabledEditingCapabilities(java.util.Set<java.lang.String> addition)
addition
- the set of editing capabilities to addpublic void retainAllEnabledEditingCapabilities(java.util.Set<java.lang.String> retain)
retain
- the set of editing capabilities to retainpublic void addAllRequiredEditingCapabilities(java.util.Set<java.lang.String> addition)
addition
- the set of editing capabilities to addpublic void setEditingCapabilities(java.util.Set<java.lang.String> enabled, java.util.Set<java.lang.String> required)
enabled
- the enabled editing capabilitiesrequired
- the required editing capabilitiespublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object