public class CustomModelServiceImpl extends Object implements CustomModelService
| Modifier and Type | Field and Description |
|---|---|
static String |
ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY |
static QName |
ASPECT_CUSTOM_MODEL |
static String |
DEFAULT_CUSTOM_MODEL_ASPECT |
static String |
GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY |
static String |
SHARE_EXT_MODULE_SUFFIX |
| Constructor and Description |
|---|
CustomModelServiceImpl() |
public static final String DEFAULT_CUSTOM_MODEL_ASPECT
public static final QName ASPECT_CUSTOM_MODEL
public static final String ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
public static final String GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
public static final String SHARE_EXT_MODULE_SUFFIX
public void setNodeService(NodeService nodeService)
public void setDictionaryDAO(DictionaryDAOImpl dictionaryDAO)
public void setContentService(ContentService contentService)
public void setSearchService(SearchService searchService)
public void setRepositoryModelsLocation(RepositoryLocation repoModelsLocation)
public void setDictionaryService(DictionaryService dictionaryService)
public void setNamespaceDAO(NamespaceDAO namespaceDAO)
public void setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
public void setRepoAdminService(RepoAdminService repoAdminService)
public void setAuthorityService(AuthorityService authorityService)
public void setHiddenAspect(HiddenAspect hiddenAspect)
public void setDownloadService(DownloadService downloadSerivce)
public void setDownloadStorage(DownloadStorage downloadStorage)
public void setShareExtModulePath(String shareExtModulePath)
public void init()
public NodeRef getModelNodeRef(String modelName)
getModelNodeRef in interface CustomModelServicepublic CustomModelDefinition getCustomModel(String modelName)
getCustomModel in interface CustomModelServicepublic ModelDefinition getCustomModelByUri(String namespaceUri)
getCustomModelByUri in interface CustomModelServiceprotected Pair<CompiledModel,Boolean> getCustomCompiledModel(String modelName)
Pair objectmodelName - the name of the custom model to retrievePair<CompiledModel, Boolean> (or null, if it doesn't exist)public PagingResults<CustomModelDefinition> getCustomModels(PagingRequest pagingRequest)
getCustomModels in interface CustomModelServiceprotected List<CustomModelDefinition> getAllCustomModels()
public AspectDefinition getCustomAspect(QName name)
getCustomAspect in interface CustomModelServicepublic PagingResults<AspectDefinition> getAllCustomAspects(PagingRequest pagingRequest)
getAllCustomAspects in interface CustomModelServicepublic TypeDefinition getCustomType(QName name)
getCustomType in interface CustomModelServicepublic PagingResults<TypeDefinition> getAllCustomTypes(PagingRequest pagingRequest)
getAllCustomTypes in interface CustomModelServicepublic ConstraintDefinition getCustomConstraint(QName name)
getCustomConstraint in interface CustomModelServicepublic CustomModelDefinition createCustomModel(M2Model m2Model, boolean activate)
createCustomModel in interface CustomModelServicepublic CustomModelDefinition updateCustomModel(String modelFileName, M2Model m2Model, boolean activate)
updateCustomModel in interface CustomModelServicepublic CompiledModel compileModel(M2Model m2Model)
compileModel in interface CustomModelServiceprotected <T> PagingResults<T> wrapResult(PagingRequest pagingRequest, List<T> result)
public boolean isModelAdmin(String userName)
isModelAdmin in interface CustomModelServicepublic void activateCustomModel(String modelName)
activateCustomModel in interface CustomModelServicepublic void deactivateCustomModel(String modelName)
deactivateCustomModel in interface CustomModelServicepublic void deleteCustomModel(String modelName)
deleteCustomModel in interface CustomModelServicepublic boolean isNamespaceUriExists(String modelNamespaceUri)
isNamespaceUriExists in interface CustomModelServicepublic boolean isNamespacePrefixExists(String modelNamespacePrefix)
isNamespacePrefixExists in interface CustomModelServicepublic boolean isModelExists(String modelFileName)
isModelExists in interface CustomModelServicepublic NodeRef createDownloadNode(String modelFileName, boolean withAssociatedForm)
createDownloadNode in interface CustomModelServiceprotected NodeRef createCustomModelShareExtModuleRef(String modelName)
module element within the Share persisted-extension
XML file and then writes the XML fragment as the content of a newly created node.modelName - the model nameprotected NodeRef getShareExtModule()
protected NodeRef createCustomModelCopy(String newName, NodeRef modelNodeRef)
newName - the model new namemodelNodeRef - existing model nodeRefpublic CustomModelsInfo getCustomModelsInfo()
getCustomModelsInfo in interface CustomModelServiceCopyright © 2005–2021 Alfresco Software. All rights reserved.