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,
String authority,
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,
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
|
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
|
List<org.alfresco.service.cmr.security.AccessPermission> |
getAccessControlEntries()
Gets the Access Control Entries
|
String |
getChildName() |
String |
getImportId() |
boolean |
getInheritPermissions() |
Set<org.alfresco.service.namespace.QName> |
getNodeAspects() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
ParentContext |
getParentContext() |
Map<org.alfresco.service.namespace.QName,Serializable> |
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
|
Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.DataTypeDefinition> |
getPropertyDatatypes() |
org.alfresco.service.cmr.dictionary.TypeDefinition |
getTypeDefinition() |
String |
getUUID() |
boolean |
isReference() |
void |
setChildName(String childName) |
void |
setImportId(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(String uuid) |
String |
toString() |
getDictionaryService, getElementName, getImporter
public NodeContext(org.alfresco.service.namespace.QName elementName, ParentContext parentContext, org.alfresco.service.cmr.dictionary.TypeDefinition typeDef)
elementName
- QNameparentContext
- ParentContexttypeDef
- TypeDefinitionpublic 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
- TypeDefinitionpublic 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 String getUUID()
getUUID
in interface ImportNode
public void setUUID(String uuid)
uuid
- uuidpublic String getImportId()
public void setImportId(String importId)
importId
- import scoped idpublic String getChildName()
getChildName
in interface ImportNode
public void setChildName(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
- QNamepublic void addProperty(org.alfresco.service.namespace.QName property, 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 Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.DataTypeDefinition> getPropertyDatatypes()
public Map<org.alfresco.service.namespace.QName,Serializable> 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 Set<org.alfresco.service.namespace.QName> getNodeAspects()
getNodeAspects
in interface ImportNode
public void addAccessControlEntry(org.alfresco.service.cmr.security.AccessStatus accessStatus, String authority, String permission)
accessStatus
- AccessStatusauthority
- Stringpermission
- Stringpublic List<org.alfresco.service.cmr.security.AccessPermission> getAccessControlEntries()
getAccessControlEntries
in interface ImportNode
public Object determineDefinition(org.alfresco.service.namespace.QName defName)
defName
- QNamepublic org.alfresco.service.cmr.dictionary.AspectDefinition determineAspect(org.alfresco.service.namespace.QName defName)
defName
- QNamepublic org.alfresco.service.cmr.dictionary.PropertyDefinition determineProperty(org.alfresco.service.namespace.QName defName)
defName
- QNamepublic org.alfresco.service.cmr.dictionary.AssociationDefinition determineAssociation(org.alfresco.service.namespace.QName defName)
defName
- QNameCopyright © 2005–2017 Alfresco Software. All rights reserved.