Class RecordsManagementAdminBase
java.lang.Object
org.alfresco.module.org_alfresco_module_rm.admin.RecordsManagementAdminBase
- All Implemented Interfaces:
RecordsManagementCustomModel
- Direct Known Subclasses:
RecordsManagementAdminServiceImpl
,RelationshipServiceImpl
Base class for RM admin services
- Since:
- 2.3
- Author:
- Tuna Aksoy
-
Field Summary
FieldsFields inherited from interface org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementCustomModel
ASPECT_CUSTOM_ASSOCIATIONS, ASPECT_SUPPLEMENTAL_MARKING_LIST, CONSTRAINT_CUSTOM_SMLIST, CUSTOM_REF_CROSSREFERENCE, CUSTOM_REF_OBSOLETES, CUSTOM_REF_RENDITION, CUSTOM_REF_SUPERSEDES, CUSTOM_REF_SUPPORTS, CUSTOM_REF_VERSIONS, PROP_SUPPLEMENTAL_MARKING_LIST, RM_CUSTOM_MODEL, RM_CUSTOM_PREFIX, RM_CUSTOM_URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
composeAssociationDefinitionTitle
(String sourceText, String targetText) Creates the association definition title form the source text and target textprotected boolean
existsTitle
(String associationDefinitionTitle) Checks if the given association definition title existsprotected ContentService
Gets the content service instanceprotected Map<QName,
AssociationDefinition> Gets all the custom associationsprotected NodeRef
getCustomModelRef
(String uri) Gets the node reference of the custom modelprotected DictionaryRepositoryBootstrap
Gets the dictionary repository bootstrap instanceprotected DictionaryService
Gets the dictionary service instanceprotected NamespaceService
Gets the namespace service instanceprotected NodeService
Gets the node service instanceprotected M2Model
readCustomContentModel
(NodeRef modelNodeRef) Gets the deserialized modelvoid
setContentService
(ContentService contentService) Sets the content service instancevoid
setDictionaryRepositoryBootstrap
(DictionaryRepositoryBootstrap dictionaryRepositoryBootstrap) Sets the dictionary repository bootstrap instancevoid
setDictionaryService
(DictionaryService dictionaryService) Sets the dictionary service instancevoid
setNamespaceService
(NamespaceService namespaceService) Sets the namespace service instancevoid
setNodeService
(NodeService nodeService) Sets the node service instanceprotected String[]
splitAssociationDefinitionTitle
(String sourceTargetText) Splits the association definition title into source text and target textprotected void
writeCustomContentModel
(NodeRef modelRef, M2Model deserializedModel) Updates the content of the custom model
-
Field Details
-
logger
protected org.apache.commons.logging.Log loggerLogger
-
-
Constructor Details
-
RecordsManagementAdminBase
public RecordsManagementAdminBase()
-
-
Method Details
-
getDictionaryService
Gets the dictionary service instance- Returns:
- The dictionary service instance
-
getNodeService
Gets the node service instance- Returns:
- The node service instance
-
getContentService
Gets the content service instance- Returns:
- The content service instance
-
getNamespaceService
Gets the namespace service instance- Returns:
- The namespace service instance
-
getDictionaryRepositoryBootstrap
Gets the dictionary repository bootstrap instance- Returns:
- The dictionary repository bootstrap instance
-
setDictionaryService
Sets the dictionary service instance- Parameters:
dictionaryService
- The dictionary service instance
-
setNodeService
Sets the node service instance- Parameters:
nodeService
- The node service instance
-
setContentService
Sets the content service instance- Parameters:
contentService
- The content service instance
-
setNamespaceService
Sets the namespace service instance- Parameters:
namespaceService
- The namespace service instance
-
setDictionaryRepositoryBootstrap
public void setDictionaryRepositoryBootstrap(DictionaryRepositoryBootstrap dictionaryRepositoryBootstrap) Sets the dictionary repository bootstrap instance- Parameters:
dictionaryRepositoryBootstrap
- The dictionary repository bootstrap instance
-
getCustomAssociations
Gets all the custom associations- Returns:
- All custom associations
-
getCustomModelRef
Gets the node reference of the custom model- Parameters:
uri
- The URI of the model namespace- Returns:
- The node reference of the custom model
-
readCustomContentModel
Gets the deserialized model- Parameters:
modelNodeRef
- The node reference of the model- Returns:
- The deserialized model
-
writeCustomContentModel
Updates the content of the custom model- Parameters:
modelRef
- The node reference of the modeldeserializedModel
- The deserialized model
-
existsTitle
Checks if the given association definition title exists- Parameters:
associationDefinitionTitle
- The association definition title- Returns:
true
if the association definition title exists,false
otherwise
-
splitAssociationDefinitionTitle
Splits the association definition title into source text and target text- Parameters:
sourceTargetText
- The text to split into source text and target text- Returns:
- Splited association definition title which includes source text and target text
-
composeAssociationDefinitionTitle
Creates the association definition title form the source text and target text- Parameters:
sourceText
- The source texttargetText
- The target text- Returns:
- The association definition title created from the source text and target text
-