public interface RecordsManagementAdminService
RecordsManagementAdminService| Modifier and Type | Method and Description |
|---|---|
org.alfresco.service.namespace.QName |
addCustomAssocDefinition(String label)
Deprecated.
as of RM 2.3, please use
RelationshipService.createRelationshipDefinition(org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipDisplayName) instead. |
org.alfresco.service.namespace.QName |
addCustomChildAssocDefinition(String source,
String target)
Deprecated.
as of RM 2.3, please use
RelationshipService.createRelationshipDefinition(org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipDisplayName) instead. |
void |
addCustomConstraintDefinition(org.alfresco.service.namespace.QName constraintName,
String title,
boolean caseSensitive,
List<String> allowedValues,
RMListOfValuesConstraint.MatchLogic matchLogic)
This method adds a Constraint definition to the custom model.
|
org.alfresco.service.namespace.QName |
addCustomPropertyDefinition(org.alfresco.service.namespace.QName propId,
org.alfresco.service.namespace.QName typeName,
String label,
org.alfresco.service.namespace.QName dataType,
String title,
String description)
Add custom property definition
Note: no default value, single valued, optional, not system protected, no constraints
|
org.alfresco.service.namespace.QName |
addCustomPropertyDefinition(org.alfresco.service.namespace.QName propId,
org.alfresco.service.namespace.QName typeName,
String label,
org.alfresco.service.namespace.QName dataType,
String title,
String description,
String defaultValue,
boolean multiValued,
boolean mandatory,
boolean isProtected,
org.alfresco.service.namespace.QName lovConstraintQName)
Add custom property definition with one optional constraint reference
|
void |
addCustomReference(org.alfresco.service.cmr.repository.NodeRef fromNode,
org.alfresco.service.cmr.repository.NodeRef toNode,
org.alfresco.service.namespace.QName assocId)
Deprecated.
as of RM 2.3, please use
RelationshipService.addRelationship(String, NodeRef, NodeRef) instead. |
void |
changeCustomConstraintTitle(org.alfresco.service.namespace.QName constraintName,
String title) |
void |
changeCustomConstraintValues(org.alfresco.service.namespace.QName constraintName,
List<String> newValues)
Update custom constraint definition with new list of values (replaces existing list, if any)
|
boolean |
existsCustomProperty(org.alfresco.service.namespace.QName property)
Indicates whether the custom property exists.
|
String |
getCompoundIdFor(String sourceId,
String targetId)
This method retrieves a compound ID (client-side) for the specified
sourceId and targetId.
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getCustomChildReferences(org.alfresco.service.cmr.repository.NodeRef node)
Deprecated.
as of RM 2.3, please use
NodeService.getChildAssocs(NodeRef) instead. |
List<org.alfresco.service.cmr.dictionary.ConstraintDefinition> |
getCustomConstraintDefinitions(org.alfresco.service.namespace.QName modelQName)
This method returns ConstraintDefinition objects defined in the given model
(note: not property references or in-line defs)
The custom constraint definitions are retrieved from the dictionaryService
which is notified of any newly created definitions on transaction commit.
|
Set<org.alfresco.service.namespace.QName> |
getCustomisable()
Get a list of all registered customisable types and aspects.
|
Set<org.alfresco.service.namespace.QName> |
getCustomisable(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get a list of all the registered customisable types and aspects present on a given
node reference.
|
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getCustomParentReferences(org.alfresco.service.cmr.repository.NodeRef node)
Deprecated.
as of RM 2.3, please use
NodeService.getParentAssocs(NodeRef) instead. |
Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.PropertyDefinition> |
getCustomPropertyDefinitions()
This method returns the custom properties that have been defined for all of
the specified customisable RM elements.
|
Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.PropertyDefinition> |
getCustomPropertyDefinitions(org.alfresco.service.namespace.QName customisableType)
This method returns the custom properties that have been defined for the specified
customisable RM element.
|
Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.AssociationDefinition> |
getCustomReferenceDefinitions()
Deprecated.
as of RM 2.3, please use
RelationshipService.getRelationshipDefinitions() instead. |
List<org.alfresco.service.cmr.repository.AssociationRef> |
getCustomReferencesFrom(org.alfresco.service.cmr.repository.NodeRef node)
Deprecated.
as of RM 2.3, please use
NodeService#getTargetAssocs(NodeRef, RegexQNamePattern.MATCH_ALL) instead. |
List<org.alfresco.service.cmr.repository.AssociationRef> |
getCustomReferencesTo(org.alfresco.service.cmr.repository.NodeRef node)
Deprecated.
as of RM 2.3, please use
NodeService#getSourceAssocs(NodeRef, RegexQNamePattern.MATCH_ALL) instead. |
org.alfresco.service.namespace.QName |
getQNameForClientId(String localName)
This method iterates over the custom properties, references looking for one whose id
exactly matches that specified.
|
void |
initialiseCustomModel()
Initialise the custom model
|
boolean |
isCustomisable(org.alfresco.service.namespace.QName type)
Indicates whether a type (or aspect) is customisable.
|
void |
makeCustomisable(org.alfresco.service.namespace.QName type)
Makes a type customisable.
|
void |
removeCustomConstraintDefinition(org.alfresco.service.namespace.QName constraintName)
Remove custom constraint definition - if not referenced (by any properties)
|
void |
removeCustomPropertyDefinition(org.alfresco.service.namespace.QName propQName)
Remove custom property definition
|
org.alfresco.service.namespace.QName |
removeCustomPropertyDefinitionConstraints(org.alfresco.service.namespace.QName propQName)
Removes all list of values constraints from the custom property definition.
|
void |
removeCustomReference(org.alfresco.service.cmr.repository.NodeRef fromNode,
org.alfresco.service.cmr.repository.NodeRef toNode,
org.alfresco.service.namespace.QName assocId)
Deprecated.
as of RM 2.3, please use
RelationshipService.removeRelationship(String, NodeRef, NodeRef) instead. |
org.alfresco.service.namespace.QName |
setCustomPropertyDefinitionConstraint(org.alfresco.service.namespace.QName propQName,
org.alfresco.service.namespace.QName newLovConstraint)
Sets a new list of values constraint on the custom property definition.
|
org.alfresco.service.namespace.QName |
setCustomPropertyDefinitionLabel(org.alfresco.service.namespace.QName propQName,
String newLabel)
Update the custom property definition's label (title).
|
String[] |
splitSourceTargetId(String sourceTargetId)
Given a compound id for source and target strings (as used with parent/child
custom references), this method splits the String and returns an array containing
the source and target IDs separately.
|
void |
unmakeCustomisable(org.alfresco.service.namespace.QName type)
Assuming the custom properties are not in use, makes a type no longer customisable.
|
org.alfresco.service.namespace.QName |
updateCustomAssocDefinition(org.alfresco.service.namespace.QName refQName,
String newLabel)
Deprecated.
|
org.alfresco.service.namespace.QName |
updateCustomChildAssocDefinition(org.alfresco.service.namespace.QName refQName,
String newSource,
String newTarget)
Deprecated.
|
org.alfresco.service.namespace.QName |
updateCustomPropertyDefinitionName(org.alfresco.service.namespace.QName propQName,
String newName)
Update the name and label of the custom property definition.
|
void initialiseCustomModel()
Set<org.alfresco.service.namespace.QName> getCustomisable()
Set<QName> QName's of customisable types and aspectsSet<org.alfresco.service.namespace.QName> getCustomisable(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - node referenceSet<QName> QName's of customisable types and aspects, empty if noneboolean isCustomisable(org.alfresco.service.namespace.QName type)
type - customisable type QNamevoid makeCustomisable(org.alfresco.service.namespace.QName type)
type - type QName to make customisablevoid unmakeCustomisable(org.alfresco.service.namespace.QName type)
type - type QName to make customisableboolean existsCustomProperty(org.alfresco.service.namespace.QName property)
property - properties QNameMap<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.PropertyDefinition> getCustomPropertyDefinitions(org.alfresco.service.namespace.QName customisableType)
customisedElement - CustomisableRmElementMap<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.PropertyDefinition> getCustomPropertyDefinitions()
CustomisableRmElementorg.alfresco.service.namespace.QName addCustomPropertyDefinition(org.alfresco.service.namespace.QName propId,
org.alfresco.service.namespace.QName typeName,
String label,
org.alfresco.service.namespace.QName dataType,
String title,
String description)
throws CustomMetadataException
propId - - If a value for propId is provided it will be used to identify property definitions
within URLs and in QNames. Therefore it must contain URL/QName-valid characters
only. It must also be unique.
If a null value is passed, an id will be generated.aspectName - - mandatory. The aspect within which the property is to be defined.
This must be one of the CustomisableRmElements.label - - mandatorydataType - - mandatorytitle - - optionaldescription - - optionalCustomMetadataExceptionCustomisableRmElement#getCorrespondingAspect()org.alfresco.service.namespace.QName addCustomPropertyDefinition(org.alfresco.service.namespace.QName propId,
org.alfresco.service.namespace.QName typeName,
String label,
org.alfresco.service.namespace.QName dataType,
String title,
String description,
String defaultValue,
boolean multiValued,
boolean mandatory,
boolean isProtected,
org.alfresco.service.namespace.QName lovConstraintQName)
throws CustomMetadataException
propId - - If a value for propId is provided it will be used to identify property definitions
within URLs and in QNames. Therefore it must contain URL/QName-valid characters
only. It must also be unique.
If a null value is passed, an id will be generated.aspectName - - mandatory. The aspect within which the property is to be defined.
This must be one of the CustomisableRmElements.label - - mandatorydataType - - mandatorytitle - - optionaldescription - - optionaldefaultValue - - optionalmultiValued - - TRUE if multi-valued propertymandatory - - TRUE if mandatory propertyisProtected - - TRUE if protected propertylovConstraintQName - - optional custom constraintCustomMetadataExceptionCustomisableRmElement#getCorrespondingAspect()org.alfresco.service.namespace.QName setCustomPropertyDefinitionLabel(org.alfresco.service.namespace.QName propQName,
String newLabel)
throws PropertyAlreadyExistsMetadataException
propQName - the qname of the property definitionnewLabel - the new value for the label.PropertyAlreadyExistsMetadataExceptionorg.alfresco.service.namespace.QName updateCustomPropertyDefinitionName(org.alfresco.service.namespace.QName propQName,
String newName)
throws CustomMetadataException
propQName - The qname of the existing property definitionnewName - THe new name for both the custom property and its label.CustomMetadataExceptionorg.alfresco.service.namespace.QName setCustomPropertyDefinitionConstraint(org.alfresco.service.namespace.QName propQName,
org.alfresco.service.namespace.QName newLovConstraint)
propQName - the qname of the property definitionnewLovConstraint - the List-Of-Values constraintRef.org.alfresco.service.namespace.QName removeCustomPropertyDefinitionConstraints(org.alfresco.service.namespace.QName propQName)
propQName - the qname of the property definitionvoid removeCustomPropertyDefinition(org.alfresco.service.namespace.QName propQName)
propQName - Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.AssociationDefinition> getCustomReferenceDefinitions()
RelationshipService.getRelationshipDefinitions() instead.List<org.alfresco.service.cmr.repository.AssociationRef> getCustomReferencesFrom(org.alfresco.service.cmr.repository.NodeRef node)
NodeService#getTargetAssocs(NodeRef, RegexQNamePattern.MATCH_ALL) instead.node - the node from which the associations start.List<org.alfresco.service.cmr.repository.ChildAssociationRef> getCustomChildReferences(org.alfresco.service.cmr.repository.NodeRef node)
NodeService.getChildAssocs(NodeRef) instead.node - List<org.alfresco.service.cmr.repository.AssociationRef> getCustomReferencesTo(org.alfresco.service.cmr.repository.NodeRef node)
NodeService#getSourceAssocs(NodeRef, RegexQNamePattern.MATCH_ALL) instead.node - the node to which the associations point.List<org.alfresco.service.cmr.repository.ChildAssociationRef> getCustomParentReferences(org.alfresco.service.cmr.repository.NodeRef node)
NodeService.getParentAssocs(NodeRef) instead.node - void addCustomReference(org.alfresco.service.cmr.repository.NodeRef fromNode,
org.alfresco.service.cmr.repository.NodeRef toNode,
org.alfresco.service.namespace.QName assocId)
RelationshipService.addRelationship(String, NodeRef, NodeRef) instead.fromNode - toNode - assocId - the server-side qname e.g. {http://www.alfresco.org/model/rmcustom/1.0}abcd-12-efgh-4567org.alfresco.error.AlfrescoRuntimeException - if an instance of the specified reference type
already exists from fromNode to toNode.void removeCustomReference(org.alfresco.service.cmr.repository.NodeRef fromNode,
org.alfresco.service.cmr.repository.NodeRef toNode,
org.alfresco.service.namespace.QName assocId)
RelationshipService.removeRelationship(String, NodeRef, NodeRef) instead.fromNode - toNode - assocId - the server-side qname e.g. {http://www.alfresco.org/model/rmcustom/1.0}abcd-12-efgh-4567org.alfresco.service.namespace.QName addCustomAssocDefinition(String label)
RelationshipService.createRelationshipDefinition(org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipDisplayName) instead.label - the title of the association definitionorg.alfresco.service.namespace.QName addCustomChildAssocDefinition(String source, String target)
RelationshipService.createRelationshipDefinition(org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipDisplayName) instead.source - target - org.alfresco.service.namespace.QName updateCustomChildAssocDefinition(org.alfresco.service.namespace.QName refQName,
String newSource,
String newTarget)
RelationshipService.updateRelationshipDefinition(String, org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipDisplayName) instead.refQName - qname of the child association.newSource - the new value for the source field.newTarget - the new value for the target field.getCompoundIdFor(String, String),
splitSourceTargetId(String)org.alfresco.service.namespace.QName updateCustomAssocDefinition(org.alfresco.service.namespace.QName refQName,
String newLabel)
RelationshipService.updateRelationshipDefinition(String, org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipDisplayName) instead.refQName - qname of the child association.newLabel - the new value for the label field.List<org.alfresco.service.cmr.dictionary.ConstraintDefinition> getCustomConstraintDefinitions(org.alfresco.service.namespace.QName modelQName)
void addCustomConstraintDefinition(org.alfresco.service.namespace.QName constraintName,
String title,
boolean caseSensitive,
List<String> allowedValues,
RMListOfValuesConstraint.MatchLogic matchLogic)
constraintName - the name e.g. rmc:footitle - the human-readable title e.g. My foo listcaseSensitive - allowedValues - the allowed values listmatchLogic - AND (all values must match), OR (at least one values must match)void removeCustomConstraintDefinition(org.alfresco.service.namespace.QName constraintName)
constraintName - the name e.g. rmc:foovoid changeCustomConstraintValues(org.alfresco.service.namespace.QName constraintName,
List<String> newValues)
constraintName - the name e.g. rmc:foonewValues - void changeCustomConstraintTitle(org.alfresco.service.namespace.QName constraintName,
String title)
constraintName - title - org.alfresco.service.namespace.QName getQNameForClientId(String localName)
localName - the localName part of the qname of the property or reference definition.String[] splitSourceTargetId(String sourceTargetId)
sourceTargetId - the compound ID.Copyright © 2005–2016 Alfresco Software. All rights reserved.