public class NodeContext extends ElementContext implements ImportNode
Modifier and Type | Class and Description |
---|---|
static class |
NodeContext.ACE
Access Control Entry
|
Constructor and Description |
---|
NodeContext(org.alfresco.service.namespace.QName elementName,
ParentContext parentContext,
org.alfresco.service.cmr.dictionary.TypeDefinition typeDef)
Construct
|
Modifier and Type | Method and Description |
---|---|
void |
addAccessControlEntry(org.alfresco.service.cmr.security.AccessStatus accessStatus,
java.lang.String authority,
java.lang.String permission)
Adds an Access Control Entry
|
void |
addAspect(org.alfresco.service.cmr.dictionary.AspectDefinition aspect)
Adds an aspect to the node
|
void |
addDatatype(org.alfresco.service.namespace.QName property,
org.alfresco.service.cmr.dictionary.DataTypeDefinition datatype)
Adds a property datatype to the node
|
void |
addProperty(org.alfresco.service.namespace.QName property,
java.io.Serializable value)
Adds a property to the node
|
void |
addPropertyCollection(org.alfresco.service.namespace.QName property)
Adds a collection property to the node
|
org.alfresco.service.cmr.dictionary.AspectDefinition |
determineAspect(org.alfresco.service.namespace.QName defName)
Determine if name referes to an aspect
|
org.alfresco.service.cmr.dictionary.AssociationDefinition |
determineAssociation(org.alfresco.service.namespace.QName defName)
Determine if name referes to an association
|
java.lang.Object |
determineDefinition(org.alfresco.service.namespace.QName defName)
Determine the type of definition (aspect, property, association) from the
specified name
|
org.alfresco.service.cmr.dictionary.PropertyDefinition |
determineProperty(org.alfresco.service.namespace.QName defName)
Determine if name refers to a property
|
java.util.List |
getAccessControlEntries()
Gets the Access Control Entries
|
java.lang.String |
getChildName() |
java.lang.String |
getImportId() |
boolean |
getInheritPermissions() |
java.util.Set |
getNodeAspects() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
ParentContext |
getParentContext() |
java.util.Map |
getProperties()
Gets all properties for the node
|
org.alfresco.service.cmr.dictionary.DataTypeDefinition |
getPropertyDataType(org.alfresco.service.namespace.QName propertyName)
Gets the property data type
|
java.util.Map |
getPropertyDatatypes() |
org.alfresco.service.cmr.dictionary.TypeDefinition |
getTypeDefinition() |
java.lang.String |
getUUID() |
boolean |
isReference() |
void |
setChildName(java.lang.String childName) |
void |
setImportId(java.lang.String importId) |
void |
setInheritPermissions(boolean inherit) |
void |
setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
void |
setReference(boolean isReference) |
void |
setTypeDefinition(org.alfresco.service.cmr.dictionary.TypeDefinition typeDef)
Set Type Definition
|
void |
setUUID(java.lang.String uuid) |
java.lang.String |
toString() |
getDictionaryService, getElementName, getImporter
public NodeContext(org.alfresco.service.namespace.QName elementName, ParentContext parentContext, org.alfresco.service.cmr.dictionary.TypeDefinition typeDef)
elementName
- parentContext
- typeDef
- public ParentContext getParentContext()
getParentContext
in interface ImportNode
public org.alfresco.service.cmr.dictionary.TypeDefinition getTypeDefinition()
getTypeDefinition
in interface ImportNode
public boolean isReference()
isReference
in interface ImportNode
public void setReference(boolean isReference)
isReference
- true => this is a node referencepublic void setTypeDefinition(org.alfresco.service.cmr.dictionary.TypeDefinition typeDef)
typeDef
- public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
getNodeRef
in interface ImportNode
public void setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- the node refpublic java.lang.String getUUID()
getUUID
in interface ImportNode
public void setUUID(java.lang.String uuid)
uuid
- uuidpublic java.lang.String getImportId()
public void setImportId(java.lang.String importId)
importId
- import scoped idpublic java.lang.String getChildName()
getChildName
in interface ImportNode
public void setChildName(java.lang.String childName)
childName
- the child namepublic void setInheritPermissions(boolean inherit)
public boolean getInheritPermissions()
getInheritPermissions
in interface ImportNode
public void addPropertyCollection(org.alfresco.service.namespace.QName property)
property
- public void addProperty(org.alfresco.service.namespace.QName property, java.io.Serializable value)
property
- the property namevalue
- the property valuepublic void addDatatype(org.alfresco.service.namespace.QName property, org.alfresco.service.cmr.dictionary.DataTypeDefinition datatype)
property
- property namedatatype
- property datatypepublic java.util.Map getPropertyDatatypes()
public java.util.Map getProperties()
ImportNode
getProperties
in interface ImportNode
public org.alfresco.service.cmr.dictionary.DataTypeDefinition getPropertyDataType(org.alfresco.service.namespace.QName propertyName)
ImportNode
getPropertyDataType
in interface ImportNode
propertyName
- name of propertypublic void addAspect(org.alfresco.service.cmr.dictionary.AspectDefinition aspect)
aspect
- the aspectpublic java.util.Set getNodeAspects()
getNodeAspects
in interface ImportNode
public void addAccessControlEntry(org.alfresco.service.cmr.security.AccessStatus accessStatus, java.lang.String authority, java.lang.String permission)
accessStatus
- authority
- permission
- public java.util.List getAccessControlEntries()
getAccessControlEntries
in interface ImportNode
public java.lang.Object determineDefinition(org.alfresco.service.namespace.QName defName)
defName
- public org.alfresco.service.cmr.dictionary.AspectDefinition determineAspect(org.alfresco.service.namespace.QName defName)
defName
- public org.alfresco.service.cmr.dictionary.PropertyDefinition determineProperty(org.alfresco.service.namespace.QName defName)
defName
- public org.alfresco.service.cmr.dictionary.AssociationDefinition determineAssociation(org.alfresco.service.namespace.QName defName)
defName
- public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.