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 ContentService
getContentService()
Gets the content service instanceprotected Map<QName,AssociationDefinition>
getCustomAssociations()
Gets all the custom associationsprotected NodeRef
getCustomModelRef(String uri)
Gets the node reference of the custom modelprotected DictionaryRepositoryBootstrap
getDictionaryRepositoryBootstrap()
Gets the dictionary repository bootstrap instanceprotected DictionaryService
getDictionaryService()
Gets the dictionary service instanceprotected NamespaceService
getNamespaceService()
Gets the namespace service instanceprotected NodeService
getNodeService()
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
-
-
-
Method Detail
-
getDictionaryService
protected DictionaryService getDictionaryService()
Gets the dictionary service instance- Returns:
- The dictionary service instance
-
getNodeService
protected NodeService getNodeService()
Gets the node service instance- Returns:
- The node service instance
-
getContentService
protected ContentService getContentService()
Gets the content service instance- Returns:
- The content service instance
-
getNamespaceService
protected NamespaceService getNamespaceService()
Gets the namespace service instance- Returns:
- The namespace service instance
-
getDictionaryRepositoryBootstrap
protected DictionaryRepositoryBootstrap getDictionaryRepositoryBootstrap()
Gets the dictionary repository bootstrap instance- Returns:
- The dictionary repository bootstrap instance
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
Sets the dictionary service instance- Parameters:
dictionaryService
- The dictionary service instance
-
setNodeService
public void setNodeService(NodeService nodeService)
Sets the node service instance- Parameters:
nodeService
- The node service instance
-
setContentService
public void setContentService(ContentService contentService)
Sets the content service instance- Parameters:
contentService
- The content service instance
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
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
protected Map<QName,AssociationDefinition> getCustomAssociations()
Gets all the custom associations- Returns:
- All custom associations
-
getCustomModelRef
protected 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 M2Model readCustomContentModel(NodeRef modelNodeRef)
Gets the deserialized model- Parameters:
modelNodeRef
- The node reference of the model- Returns:
- The deserialized model
-
writeCustomContentModel
protected void writeCustomContentModel(NodeRef modelRef, 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
-
-