Class AttributeView
java.lang.Object
com.emc.documentum.rest.attributeview.api.AttributeView
A class representing the 'view expression' client provides.
It includes a name for the view and a list of attributes if it is not one of the predefined views.
There are three predefined views: DEFAULT, ALL and NONE. Each of them has an empty list of attributes.
There is one CUSTOM view that is defined by the attributes client provides, and it has a list of attribute names.
Please do NOT confuse it with the view in MVC term.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AttributeView
View all attributes, corresponding to ":all"static final AttributeView
Default view of attributes, corresponding to ":default"static final AttributeView
View none attributes -
Constructor Summary
ModifierConstructorDescriptionprotected
AttributeView
(String... attributes) Build attribute view from the attribute arrayAttributeView
(List<String> attributes) Build attribute view from the custom attribute list -
Method Summary
Modifier and TypeMethodDescriptionboolean
allForType
(String objectType) Check whether the custom attribute list are all for the specified object type.Return the custom attributes in the viewReturn base type attributes from the custom attribute listvoid
classifyAttributes
(String baseType, List<String> extendedAttributes) Classify the custom attributes into base type attributes and extended attributes.boolean
Return extended attributes from the custom attribute listboolean
Check whether the custom attributes contain any extended attributesint
hashCode()
name()
Return the view parameter name
-
Field Details
-
DEFAULT
Default view of attributes, corresponding to ":default" -
ALL
View all attributes, corresponding to ":all" -
NONE
View none attributes
-
-
Constructor Details
-
AttributeView
-
AttributeView
Build attribute view from the attribute array- Parameters:
attributes
- the attribute array
-
AttributeView
Build attribute view from the custom attribute list- Parameters:
attributes
- the attribute list including both base type attributes and extended attributes
-
-
Method Details
-
name
Return the view parameter name- Returns:
- the view parameter name
-
attributes
Return the custom attributes in the view- Returns:
- the attributes in the view
-
extendedAttributes
Return extended attributes from the custom attribute list- Returns:
- the list of extended attributes
- See Also:
-
baseAttributes
Return base type attributes from the custom attribute list- Returns:
- the list of base type attributes
- See Also:
-
hasExtendedAttributes
public boolean hasExtendedAttributes()Check whether the custom attributes contain any extended attributes- Returns:
- true if the custom attributes contain extended attributes; false for otherwise
- See Also:
-
classifyAttributes
Classify the custom attributes into base type attributes and extended attributes.- Parameters:
baseType
- the base typeextendedAttributes
- the list of extended attributes.- See Also:
-
allForType
Check whether the custom attribute list are all for the specified object type. The result is true if the custom attribute list does not have any extended attributes, or the object type is equaling to base type and there are no aspect attributes in the extended attributes.- Parameters:
objectType
- the object type- Returns:
- true if the custom attribute list contains additional attributes not for the object type; false for otherwise
- See Also:
-
hashCode
public int hashCode() -
equals
-