Class RecordsManagementAdminBase
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.admin.RecordsManagementAdminBase
-
- All Implemented Interfaces:
RecordsManagementCustomModel
- Direct Known Subclasses:
RecordsManagementAdminServiceImpl
,RelationshipServiceImpl
public class RecordsManagementAdminBase extends Object implements RecordsManagementCustomModel
Base class for RM admin services- Since:
- 2.3
- Author:
- Tuna Aksoy
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Log
logger
Logger-
Fields 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 Constructor Description RecordsManagementAdminBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 org.alfresco.service.cmr.repository.ContentService
getContentService()
Gets the content service instanceprotected Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.AssociationDefinition>
getCustomAssociations()
Gets all the custom associationsprotected org.alfresco.service.cmr.repository.NodeRef
getCustomModelRef(String uri)
Gets the node reference of the custom modelprotected org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap
getDictionaryRepositoryBootstrap()
Gets the dictionary repository bootstrap instanceprotected org.alfresco.service.cmr.dictionary.DictionaryService
getDictionaryService()
Gets the dictionary service instanceprotected org.alfresco.service.namespace.NamespaceService
getNamespaceService()
Gets the namespace service instanceprotected org.alfresco.service.cmr.repository.NodeService
getNodeService()
Gets the node service instanceprotected org.alfresco.repo.dictionary.M2Model
readCustomContentModel(org.alfresco.service.cmr.repository.NodeRef modelNodeRef)
Gets the deserialized modelvoid
setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
Sets the content service instancevoid
setDictionaryRepositoryBootstrap(org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap dictionaryRepositoryBootstrap)
Sets the dictionary repository bootstrap instancevoid
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the dictionary service instancevoid
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Sets the namespace service instancevoid
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service instanceprotected String[]
splitAssociationDefinitionTitle(String sourceTargetText)
Splits the association definition title into source text and target textprotected void
writeCustomContentModel(org.alfresco.service.cmr.repository.NodeRef modelRef, org.alfresco.repo.dictionary.M2Model deserializedModel)
Updates the content of the custom model
-
-
-
Method Detail
-
getDictionaryService
protected org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
Gets the dictionary service instance- Returns:
- The dictionary service instance
-
getNodeService
protected org.alfresco.service.cmr.repository.NodeService getNodeService()
Gets the node service instance- Returns:
- The node service instance
-
getContentService
protected org.alfresco.service.cmr.repository.ContentService getContentService()
Gets the content service instance- Returns:
- The content service instance
-
getNamespaceService
protected org.alfresco.service.namespace.NamespaceService getNamespaceService()
Gets the namespace service instance- Returns:
- The namespace service instance
-
getDictionaryRepositoryBootstrap
protected org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap getDictionaryRepositoryBootstrap()
Gets the dictionary repository bootstrap instance- Returns:
- The dictionary repository bootstrap instance
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Sets the dictionary service instance- Parameters:
dictionaryService
- The dictionary service instance
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the node service instance- Parameters:
nodeService
- The node service instance
-
setContentService
public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
Sets the content service instance- Parameters:
contentService
- The content service instance
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
Sets the namespace service instance- Parameters:
namespaceService
- The namespace service instance
-
setDictionaryRepositoryBootstrap
public void setDictionaryRepositoryBootstrap(org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap dictionaryRepositoryBootstrap)
Sets the dictionary repository bootstrap instance- Parameters:
dictionaryRepositoryBootstrap
- The dictionary repository bootstrap instance
-
getCustomAssociations
protected Map<org.alfresco.service.namespace.QName,org.alfresco.service.cmr.dictionary.AssociationDefinition> getCustomAssociations()
Gets all the custom associations- Returns:
- All custom associations
-
getCustomModelRef
protected org.alfresco.service.cmr.repository.NodeRef getCustomModelRef(String uri)
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
protected org.alfresco.repo.dictionary.M2Model readCustomContentModel(org.alfresco.service.cmr.repository.NodeRef modelNodeRef)
Gets the deserialized model- Parameters:
modelNodeRef
- The node reference of the model- Returns:
- The deserialized model
-
writeCustomContentModel
protected void writeCustomContentModel(org.alfresco.service.cmr.repository.NodeRef modelRef, org.alfresco.repo.dictionary.M2Model deserializedModel)
Updates the content of the custom model- Parameters:
modelRef
- The node reference of the modeldeserializedModel
- The deserialized model
-
existsTitle
protected boolean existsTitle(String associationDefinitionTitle)
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
protected String[] splitAssociationDefinitionTitle(String sourceTargetText)
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
protected String composeAssociationDefinitionTitle(String sourceText, String targetText)
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
-
-