Java Code Examples for org.apache.chemistry.opencmis.commons.impl.dataobjects.FolderTypeDefinitionImpl#setDisplayName()
The following examples show how to use
org.apache.chemistry.opencmis.commons.impl.dataobjects.FolderTypeDefinitionImpl#setDisplayName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FolderTypeDefintionWrapper.java From alfresco-data-model with GNU Lesser General Public License v3.0 | 4 votes |
public FolderTypeDefintionWrapper(CMISMapping cmisMapping, PropertyAccessorMapping accessorMapping, PropertyLuceneBuilderMapping luceneBuilderMapping, String typeId, DictionaryService dictionaryService, ClassDefinition cmisClassDef) { this.dictionaryService = dictionaryService; alfrescoName = cmisClassDef.getName(); alfrescoClass = cmisMapping.getAlfrescoClass(alfrescoName); typeDef = new FolderTypeDefinitionImpl(); typeDef.setBaseTypeId(BaseTypeId.CMIS_FOLDER); typeDef.setId(typeId); typeDef.setLocalName(alfrescoName.getLocalName()); typeDef.setLocalNamespace(alfrescoName.getNamespaceURI()); boolean isSystemFolder = false; if (BaseTypeId.CMIS_FOLDER.value().equals(typeId)) { typeDef.setQueryName(ISO9075.encodeSQL(typeId)); typeDef.setParentTypeId(null); } else { typeDef.setQueryName(ISO9075.encodeSQL(cmisMapping.buildPrefixEncodedString(alfrescoName))); QName parentQName = cmisMapping.getCmisType(cmisClassDef.getParentName()); if (cmisMapping.isValidCmisFolder(parentQName)) { typeDef.setParentTypeId(cmisMapping.getCmisTypeId(BaseTypeId.CMIS_FOLDER, parentQName)); } if (alfrescoName.equals(ContentModel.TYPE_SYSTEM_FOLDER) || cmisMapping.getDictionaryService().isSubClass(alfrescoName, ContentModel.TYPE_SYSTEM_FOLDER)) { isSystemFolder = true; } } typeDef.setDisplayName(null); typeDef.setDescription(null); typeDef.setIsCreatable(!isSystemFolder); typeDef.setIsQueryable(true); typeDef.setIsFulltextIndexed(true); typeDef.setIsControllablePolicy(false); typeDef.setIsControllableAcl(true); typeDef.setIsIncludedInSupertypeQuery(cmisClassDef.getIncludedInSuperTypeQuery()); typeDef.setIsFileable(true); typeDefInclProperties = CMISUtils.copy(typeDef); setTypeDefinition(typeDef, typeDefInclProperties); createOwningPropertyDefinitions(cmisMapping, accessorMapping, luceneBuilderMapping, dictionaryService, cmisClassDef); createActionEvaluators(accessorMapping, BaseTypeId.CMIS_FOLDER); }