public class DictionaryQuery extends SingletonValueProcessorExtension<org.alfresco.web.scripts.Dictionary> implements Serializable
Service object that maintains no state other than the dictionary itself.
Queries include: isSubType, isAspect, hasProperty, getParentType etc.
| Constructor and Description |
|---|
DictionaryQuery() |
| Modifier and Type | Method and Description |
|---|---|
Dictionary.DictionaryAssoc[] |
getAssociations(String ddclass)
getAssociations - return the target associations for the given dd class.
|
Dictionary.DictionaryAssoc[] |
getChildAssociations(String ddclass)
getChildAssociations - return the child associations for the given dd class.
|
String[] |
getDefaultAspects(String type)
getDefaultAspects - return Array of default aspects for the given type.
|
String |
getDescription(String ddclass)
getDescription - return the description string for the given dd class.
|
String |
getParent(String ddclass)
getParent - return the parent for the given dd class.
|
Dictionary.DictionaryProperty[] |
getProperties(String ddclass)
getProperties - return all properties for the given dd class.
|
Dictionary.DictionaryProperty[] |
getProperties(String ddclass,
boolean includeDefaultAspects)
getProperties - return all properties for the given dd class.
|
Dictionary.DictionaryProperty |
getProperty(String ddclass,
String property)
getProperty - return a single named property for the given dd class.
|
Dictionary.DictionaryProperty |
getProperty(String ddclass,
String property,
boolean includeDefaultAspects)
getProperty - return a single named property for the given dd class, optionally
retrieve a property from the default aspects.
|
String |
getTitle(String ddclass)
getTitle - return the title string for the given dd class.
|
protected String |
getValueName()
Output value name for informational and error messages to the administrator.
|
boolean |
hasDefaultAspect(String type,
String aspect)
hasDefaultAspect - return if the type definition has the default aspect applied..
|
boolean |
hasProperty(String ddclass,
String property)
hasProperty - return if a type or aspect has the given property definition.
|
boolean |
hasProperty(String ddclass,
String property,
boolean includeDefaultAspects)
hasProperty - return if a type or aspect has the given property definition.
|
boolean |
isAspect(String ddclass)
isAspect - return if the supplied dd class is an aspect.
|
boolean |
isContainer(String type)
isContainer - return if the specified type is a container
|
boolean |
isSubType(String type,
String isType)
isSubType - return if the supplied type is a sub-type of a given type.
|
protected boolean |
isTenant() |
boolean |
isType(String ddclass)
isType - return if the supplied dd class is a type.
|
protected org.alfresco.web.scripts.Dictionary |
retrieveValue(String userId,
String storeId)
Method for implementing class to provide that retrieve the remote value from the appropriate
endpoint and API.
|
String |
toString() |
getSingletonValue, getSingletonValuepublic boolean isSubType(String type, String isType)
type - Type to testisType - Is the type a subtype of this type?public boolean hasDefaultAspect(String type, String aspect)
type - Type to testaspect - Aspect to look for in the default aspectspublic String[] getDefaultAspects(String type)
type - Type to inspectpublic boolean isAspect(String ddclass)
ddclass - DD class to testpublic boolean isType(String ddclass)
ddclass - DD class to testpublic boolean hasProperty(String ddclass, String property)
ddclass - Type or aspect to testproperty - Property to look for in the type or aspect definitionpublic boolean hasProperty(String ddclass, String property, boolean includeDefaultAspects)
ddclass - Type or aspect to testproperty - Property to look for in the type or aspect definitionincludeDefaultAspects - If true, check default aspects for the given property.public String getTitle(String ddclass)
ddclass - DD class to inspectpublic String getDescription(String ddclass)
ddclass - DD class to inspectpublic String getParent(String ddclass)
ddclass - DD class to inspectpublic boolean isContainer(String type)
type - Type to inspectpublic Dictionary.DictionaryProperty getProperty(String ddclass, String property)
ddclass - DD class to inspectproperty - Property to look for in the type or aspect definitionpublic Dictionary.DictionaryProperty getProperty(String ddclass, String property, boolean includeDefaultAspects)
ddclass - DD class to inspectproperty - Property to look for in the type or aspect definitionincludeDefaultAspects - If true, check default aspects for the given property.public Dictionary.DictionaryProperty[] getProperties(String ddclass)
ddclass - DD class to inspectpublic Dictionary.DictionaryProperty[] getProperties(String ddclass, boolean includeDefaultAspects)
ddclass - DD class to inspectincludeDefaultAspects - If true, also retrieve properties from the default aspects.public Dictionary.DictionaryAssoc[] getAssociations(String ddclass)
ddclass - DD class to inspectpublic Dictionary.DictionaryAssoc[] getChildAssociations(String ddclass)
ddclass - DD class to inspectprotected boolean isTenant()
protected org.alfresco.web.scripts.Dictionary retrieveValue(String userId, String storeId) throws org.springframework.extensions.surf.exception.ConnectorServiceException
SingletonValueProcessorExtensionretrieveValue in class SingletonValueProcessorExtension<org.alfresco.web.scripts.Dictionary>userId - Current user IdstoreId - Current store Id if any - may be used if per-tenant values are requiredorg.springframework.extensions.surf.exception.ConnectorServiceExceptionprotected String getValueName()
SingletonValueProcessorExtensiongetValueName in class SingletonValueProcessorExtension<org.alfresco.web.scripts.Dictionary>Copyright © 2005–2014 Alfresco Software. All rights reserved.