public class DictionaryServiceImpl extends Object implements DictionaryService
FULL_TYPE_CMIS_DOCUMENT, FULL_TYPE_CMIS_FOLDER, TYPE_CMIS_DOCUMENT, TYPE_CMIS_FOLDER, TYPE_PREFIX_DOCUMENT, TYPE_PREFIX_FOLDER| Constructor and Description |
|---|
DictionaryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getParentType(String type)
Gets the parent type of the given type, null if none.
|
String |
getParentType(String type,
boolean queryName) |
void |
init()
Init method.
|
boolean |
isDocumentSubType(String type)
Indicates whether the given type is a CMIS document type.
|
boolean |
isFolderSubType(String type)
Indicates whether the given type is a CMIS document type.
|
boolean |
isRootType(String type)
Indicates whether the given type is a root type or not.
|
String |
removeTypePrefix(String type)
Removes the type prefix from the type name.
|
public void init()
public String getParentType(String type)
DictionaryServicegetParentType in interface DictionaryServicetype - typeDictionaryService.getParentType(java.lang.String)public String getParentType(String type, boolean queryName)
getParentType in interface DictionaryServicetype - typequeryName - returns parent type string as query name if true, otherwise as full idDictionaryService.getParentType(java.lang.String,
boolean)public boolean isRootType(String type)
DictionaryServiceisRootType in interface DictionaryServicetype - typeDictionaryService.isRootType(java.lang.String)public boolean isDocumentSubType(String type)
DictionaryServiceisDocumentSubType in interface DictionaryServicetype - typeorg.alfresco.wcm.client.DictionaryService#isContentType(java.lang.String)public boolean isFolderSubType(String type)
DictionaryServiceisFolderSubType in interface DictionaryServicetype - typeDictionaryService.isFolderSubType(java.lang.String)public String removeTypePrefix(String type)
DictionaryServiceremoveTypePrefix in interface DictionaryServicetype - type name with (or without) type prefixDictionaryService.removeTypePrefix(java.lang.String)Copyright © 2005–2014 Alfresco Software. All rights reserved.