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 Details

    • logger

      protected org.apache.commons.logging.Log logger
      Logger
  • Constructor Details

    • RecordsManagementAdminBase

      public RecordsManagementAdminBase()
  • Method Details

    • 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 model
      deserializedModel - 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 text
      targetText - The target text
      Returns:
      The association definition title created from the source text and target text