org.alfresco.web.bean.repository
Class DataDictionary

java.lang.Object
  extended by org.alfresco.web.bean.repository.DataDictionary
All Implemented Interfaces:
java.io.Serializable

public final class DataDictionary
extends java.lang.Object
implements java.io.Serializable

Lighweight client side representation of the repository data dictionary. This allows service calls to be kept to a minimum and for bean access, thus enabling JSF value binding expressions.

See Also:
Serialized Form

Constructor Summary
DataDictionary(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
          Constructor
 
Method Summary
 org.alfresco.service.cmr.dictionary.AssociationDefinition getAssociationDefinition(Node node, java.lang.String association)
          Returns the association definition for the given association on the given node
 org.alfresco.service.cmr.dictionary.PropertyDefinition getPropertyDefinition(Node node, java.lang.String property)
          Returns the property definition for the given property on the given node
 org.alfresco.service.cmr.dictionary.TypeDefinition getTypeDef(org.alfresco.service.namespace.QName type)
          Returns the type definition for the type represented by the given qname
 org.alfresco.service.cmr.dictionary.TypeDefinition getTypeDef(org.alfresco.service.namespace.QName type, java.util.Collection optionalAspects)
          Returns the type definition for the type represented by the given qname and for all the given aspects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataDictionary

public DataDictionary(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Constructor

Parameters:
dictionaryService - The dictionary service to use to retrieve the data
Method Detail

getTypeDef

public org.alfresco.service.cmr.dictionary.TypeDefinition getTypeDef(org.alfresco.service.namespace.QName type)
Returns the type definition for the type represented by the given qname

Parameters:
type - The qname of the type to lookup the definition for
Returns:
The type definition for the requested type

getTypeDef

public org.alfresco.service.cmr.dictionary.TypeDefinition getTypeDef(org.alfresco.service.namespace.QName type,
                                                                     java.util.Collection optionalAspects)
Returns the type definition for the type represented by the given qname and for all the given aspects

Parameters:
type - The type to retrieve the definition for
optionalAspects - A list of aspects to retrieve the definition for
Returns:
A unified type definition of the given type and aspects

getPropertyDefinition

public org.alfresco.service.cmr.dictionary.PropertyDefinition getPropertyDefinition(Node node,
                                                                                    java.lang.String property)
Returns the property definition for the given property on the given node

Parameters:
node - The node from which to get the property
property - The property to find the definition for
Returns:
The property definition or null if the property is not known

getAssociationDefinition

public org.alfresco.service.cmr.dictionary.AssociationDefinition getAssociationDefinition(Node node,
                                                                                          java.lang.String association)
Returns the association definition for the given association on the given node

Parameters:
node - The node from which to get the association
association - The association to find the definition for
Returns:
The association definition or null if the association is not known


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.