public class NodeContext extends ElementContext implements ImportNode
| Modifier and Type | Class and Description |
|---|---|
static class |
NodeContext.ACE
Access Control Entry
|
| Constructor and Description |
|---|
NodeContext(QName elementName,
ParentContext parentContext,
TypeDefinition typeDef)
Construct
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessControlEntry(AccessStatus accessStatus,
String authority,
String permission)
Adds an Access Control Entry
|
void |
addAspect(AspectDefinition aspect)
Adds an aspect to the node
|
void |
addDatatype(QName property,
DataTypeDefinition datatype)
Adds a property datatype to the node
|
void |
addProperty(QName property,
Serializable value)
Adds a property to the node
|
void |
addPropertyCollection(QName property)
Adds a collection property to the node
|
AspectDefinition |
determineAspect(QName defName)
Determine if name referes to an aspect
|
AssociationDefinition |
determineAssociation(QName defName)
Determine if name referes to an association
|
Object |
determineDefinition(QName defName)
Determine the type of definition (aspect, property, association) from the
specified name
|
PropertyDefinition |
determineProperty(QName defName)
Determine if name refers to a property
|
List<AccessPermission> |
getAccessControlEntries()
Gets the Access Control Entries
|
String |
getChildName() |
String |
getImportId() |
boolean |
getInheritPermissions() |
Set<QName> |
getNodeAspects() |
NodeRef |
getNodeRef() |
ParentContext |
getParentContext() |
Map<QName,Serializable> |
getProperties()
Gets all properties for the node
|
DataTypeDefinition |
getPropertyDataType(QName propertyName)
Gets the property data type
|
Map<QName,DataTypeDefinition> |
getPropertyDatatypes() |
TypeDefinition |
getTypeDefinition() |
String |
getUUID() |
boolean |
isReference() |
void |
setChildName(String childName) |
void |
setImportId(String importId) |
void |
setInheritPermissions(boolean inherit) |
void |
setNodeRef(NodeRef nodeRef) |
void |
setReference(boolean isReference) |
void |
setTypeDefinition(TypeDefinition typeDef)
Set Type Definition
|
void |
setUUID(String uuid) |
String |
toString() |
getDictionaryService, getElementName, getImporterpublic NodeContext(QName elementName, ParentContext parentContext, TypeDefinition typeDef)
elementName - QNameparentContext - ParentContexttypeDef - TypeDefinitionpublic ParentContext getParentContext()
getParentContext in interface ImportNodepublic TypeDefinition getTypeDefinition()
getTypeDefinition in interface ImportNodepublic boolean isReference()
isReference in interface ImportNodepublic void setReference(boolean isReference)
isReference - true => this is a node referencepublic void setTypeDefinition(TypeDefinition typeDef)
typeDef - TypeDefinitionpublic NodeRef getNodeRef()
getNodeRef in interface ImportNodepublic void setNodeRef(NodeRef nodeRef)
nodeRef - the node refpublic String getUUID()
getUUID in interface ImportNodepublic void setUUID(String uuid)
uuid - uuidpublic String getImportId()
public void setImportId(String importId)
importId - import scoped idpublic String getChildName()
getChildName in interface ImportNodepublic void setChildName(String childName)
childName - the child namepublic void setInheritPermissions(boolean inherit)
public boolean getInheritPermissions()
getInheritPermissions in interface ImportNodepublic void addPropertyCollection(QName property)
property - QNamepublic void addProperty(QName property, Serializable value)
property - the property namevalue - the property valuepublic void addDatatype(QName property, DataTypeDefinition datatype)
property - property namedatatype - property datatypepublic Map<QName,DataTypeDefinition> getPropertyDatatypes()
public Map<QName,Serializable> getProperties()
ImportNodegetProperties in interface ImportNodepublic DataTypeDefinition getPropertyDataType(QName propertyName)
ImportNodegetPropertyDataType in interface ImportNodepropertyName - name of propertypublic void addAspect(AspectDefinition aspect)
aspect - the aspectpublic Set<QName> getNodeAspects()
getNodeAspects in interface ImportNodepublic void addAccessControlEntry(AccessStatus accessStatus, String authority, String permission)
accessStatus - AccessStatusauthority - Stringpermission - Stringpublic List<AccessPermission> getAccessControlEntries()
getAccessControlEntries in interface ImportNodepublic Object determineDefinition(QName defName)
defName - QNamepublic AspectDefinition determineAspect(QName defName)
defName - QNamepublic PropertyDefinition determineProperty(QName defName)
defName - QNamepublic AssociationDefinition determineAssociation(QName defName)
defName - QNameCopyright © 2005–2020 Alfresco Software. All rights reserved.