public class ChildAssocEntity extends Object implements Serializable
Constructor and Description |
---|
ChildAssocEntity()
Required default constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAssocIndex() |
static org.alfresco.util.Pair<String,Long> |
getChildNameUnique(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
org.alfresco.service.namespace.QName assocTypeQName,
String childName)
Apply the cm:name to the child association.
|
NodeEntity |
getChildNode() |
String |
getChildNodeName() |
Long |
getChildNodeNameCrc() |
static Long |
getChildNodeNameCrc(String childNodeName)
Find a CRC value for the association's child node name using UTF-8 conversion.
|
List<Long> |
getChildNodeNameCrcs() |
static String |
getChildNodeNameShort(String childNodeName)
Truncates the association's child node name to 50 characters.
|
List<Long> |
getChildNodeTypeQNameIds() |
Long |
getId() |
org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ChildAssociationRef> |
getPair(QNameDAO qnameDAO) |
NodeEntity |
getParentNode() |
Long |
getQnameCrc() |
static Long |
getQNameCrc(org.alfresco.service.namespace.QName qname)
Find a CRC value for the full QName using UTF-8 conversion.
|
String |
getQnameLocalName() |
Long |
getQnameNamespaceId() |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getRef(QNameDAO qnameDAO) |
Boolean |
getSameStore() |
Long |
getTypeQNameId() |
List<Long> |
getTypeQNameIds() |
Long |
getVersion() |
boolean |
isOrdered() |
Boolean |
isPrimary() |
void |
setAssocIndex(int assocIndex) |
void |
setChildNode(NodeEntity childNode) |
void |
setChildNodeName(String childNodeName)
Deprecated.
For persistence use
|
void |
setChildNodeNameAll(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
org.alfresco.service.namespace.QName typeQName,
String childNodeName)
Helper method to set all values associated with the
child node name . |
void |
setChildNodeNameCrc(Long childNodeNameCrc)
Deprecated.
For persistence use
|
void |
setChildNodeNameCrcs(List<Long> childNodeNameCrcs) |
void |
setChildNodeTypeQNameIds(List<Long> childNodeTypeQNameIds) |
void |
setId(Long id) |
void |
setOrdered(boolean ordered) |
void |
setParentNode(NodeEntity parentNode) |
void |
setPrimary(Boolean isPrimary) |
boolean |
setQNameAll(QNameDAO qnameDAO,
org.alfresco.service.namespace.QName qname,
boolean forUpdate)
Set all required fields associated with the patch
QName . |
void |
setQnameCrc(Long qnameCrc)
Deprecated.
For persistence use
|
void |
setQnameLocalName(String qnameLocalName)
Deprecated.
For persistence use
|
void |
setQnameNamespaceId(Long qnameNamespaceId)
Deprecated.
For persistence use
|
void |
setSameStore(Boolean sameStore) |
boolean |
setTypeQNameAll(QNameDAO qnameDAO,
org.alfresco.service.namespace.QName typeQName,
boolean forUpdate)
Helper method to set the
setTypeQNameId(Long) . |
void |
setTypeQNameId(Long typeQNameId)
Deprecated.
For persistence use only
|
void |
setTypeQNameIds(List<Long> typeQNameIds) |
void |
setVersion(Long version) |
String |
toString() |
public static Long getQNameCrc(org.alfresco.service.namespace.QName qname)
qname
- the association qnamepublic static Long getChildNodeNameCrc(String childNodeName)
childNodeName
- the child node namepublic static String getChildNodeNameShort(String childNodeName)
childNodeName
- the child node namepublic static org.alfresco.util.Pair<String,Long> getChildNameUnique(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.namespace.QName assocTypeQName, String childName)
Unknown associations or associations that do not require unique name checking will use a GUID for the child name and the CRC value used will be negative.
childName
- the cm:name applying to the association.public org.alfresco.service.cmr.repository.ChildAssociationRef getRef(QNameDAO qnameDAO)
public org.alfresco.util.Pair<Long,org.alfresco.service.cmr.repository.ChildAssociationRef> getPair(QNameDAO qnameDAO)
public Long getId()
public void setId(Long id)
public Long getVersion()
public void setVersion(Long version)
public NodeEntity getParentNode()
public void setParentNode(NodeEntity parentNode)
public NodeEntity getChildNode()
public void setChildNode(NodeEntity childNode)
public boolean setTypeQNameAll(QNameDAO qnameDAO, org.alfresco.service.namespace.QName typeQName, boolean forUpdate)
setTypeQNameId(Long)
.qnameDAO
- the DAO to resolve the QName IDtypeQName
- the association typeforUpdate
- true if the QName must exist i.e. this
entity will be used for updates and the type
QName
must exist.public Long getTypeQNameId()
public void setTypeQNameId(Long typeQNameId)
public void setChildNodeNameAll(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.namespace.QName typeQName, String childNodeName)
child node name
.dictionaryService
- the service that determines how the CRC values are generated.
If this is null then the CRC values are generated
assuming that positive enforcement of the name constraint is
required.childNodeName
- the child node namepublic Long getChildNodeNameCrc()
public void setChildNodeNameCrc(Long childNodeNameCrc)
public String getChildNodeName()
public void setChildNodeName(String childNodeName)
public boolean setQNameAll(QNameDAO qnameDAO, org.alfresco.service.namespace.QName qname, boolean forUpdate)
QName
.forUpdate
- true if the entity is going to be used for a
data update i.e. the QName
must exist.QName
namespace
exists.public Long getQnameNamespaceId()
public void setQnameNamespaceId(Long qnameNamespaceId)
public String getQnameLocalName()
public void setQnameLocalName(String qnameLocalName)
public Long getQnameCrc()
public void setQnameCrc(Long qnameCrc)
public Boolean isPrimary()
public void setPrimary(Boolean isPrimary)
public int getAssocIndex()
public void setAssocIndex(int assocIndex)
public Boolean getSameStore()
public void setSameStore(Boolean sameStore)
public boolean isOrdered()
public void setOrdered(boolean ordered)
Copyright © 2005–2017 Alfresco Software. All rights reserved.