public class CMISMapping extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static org.alfresco.service.namespace.QName |
CMIS_DATATYPE_HTML |
static org.alfresco.service.namespace.QName |
CMIS_DATATYPE_ID |
static org.alfresco.service.namespace.QName |
CMIS_DATATYPE_URI |
static org.alfresco.service.namespace.QName |
CMIS_DATATYPE_XML |
static String |
CMIS_EXT_NS |
static String |
CMIS_EXT_URI |
static String |
CMIS_MODEL_NAME
The Alfresco CMIS Model name.
|
static String |
CMIS_MODEL_NS
The Alfresco CMIS Namespace
|
static org.alfresco.service.namespace.QName |
CMIS_MODEL_QNAME
The QName for the Alfresco CMIS Model.
|
static String |
CMIS_MODEL_URI |
static org.alfresco.service.namespace.QName |
DOCUMENT_QNAME |
static org.alfresco.service.namespace.QName |
FILESYSTEM_OBJECT_QNAME |
static CMISTypeId |
FILESYSTEM_OBJECT_TYPE_ID |
static org.alfresco.service.namespace.QName |
FOLDER_QNAME |
protected static org.apache.commons.logging.Log |
logger |
static org.alfresco.service.namespace.QName |
OBJECT_QNAME |
static CMISTypeId |
OBJECT_TYPE_ID |
static org.alfresco.service.namespace.QName |
POLICY_QNAME |
static org.alfresco.service.namespace.QName |
RELATIONSHIP_QNAME |
| Constructor and Description |
|---|
CMISMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
buildPrefixEncodedString(org.alfresco.service.namespace.QName qname) |
Map<CMISAllowedActionEnum,CMISActionEvaluator<? extends Object>> |
getActionEvaluators(CMISScope scope)
Gets the Action Evaluators applicable for the given CMIS Scope
|
org.alfresco.service.namespace.QName |
getAlfrescoType(org.alfresco.service.namespace.QName cmisTypeQName)
Given a CMIS model type map it to the appropriate Alfresco type.
|
String |
getCmisPropertyId(org.alfresco.service.namespace.QName propertyQName) |
org.alfresco.service.namespace.QName |
getCmisType(org.alfresco.service.namespace.QName typeQName)
Given an Alfresco model type map it to the appropriate type.
|
CMISTypeId |
getCmisTypeId(CMISScope scope,
org.alfresco.service.namespace.QName typeQName)
Gets the CMIS Type Id given the Alfresco QName for the type in any Alfresco model
|
CMISTypeId |
getCmisTypeId(org.alfresco.service.namespace.QName classQName) |
CMISTypeId |
getCmisTypeId(String typeId)
Gets the CMIS Type Id given the serialized type Id
|
CMISDataTypeEnum |
getDataType(org.alfresco.service.cmr.dictionary.DataTypeDefinition datatype)
Get the CMIS property type for a property
|
CMISDataTypeEnum |
getDataType(org.alfresco.service.namespace.QName dataType) |
AbstractProperty |
getPropertyAccessor(CMISPropertyId propertyId)
Get a Property Accessor
|
org.alfresco.service.namespace.QName |
getPropertyQName(String cmisPropertyName)
Lookup a CMIS property name and get the Alfresco property QName
|
Collection<org.alfresco.util.Pair<String,Boolean>> |
getReportedPermissions(String permission,
Set<String> permissions,
boolean hasFull,
boolean isDirect,
org.alfresco.opencmis.CMISAccessControlFormatEnum format) |
String |
getSetPermission(String permission) |
boolean |
isRemappedType(org.alfresco.service.namespace.QName typeQName)
Is Alfresco Type mapped to an alternative CMIS Type?
|
boolean |
isValidCmisDocument(org.alfresco.service.namespace.QName typeQName)
Is this a valid CMIS document type?
|
boolean |
isValidCmisDocumentOrFolder(org.alfresco.service.namespace.QName typeQName)
Is this a valid cmis document or folder type (not a relationship)
|
boolean |
isValidCmisFolder(org.alfresco.service.namespace.QName typeQName)
Is this a valid CMIS folder type?
|
boolean |
isValidCmisPolicy(org.alfresco.service.namespace.QName typeQName)
Is this a valid CMIS policy type?
|
boolean |
isValidCmisRelationship(org.alfresco.service.namespace.QName associationQName)
Is an association valid in CMIS? It must be a non-child relationship and the source and target must both be valid
CMIS types.
|
void |
setCMISService(CMISServices cmisService) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
protected static final org.apache.commons.logging.Log logger
public static String CMIS_MODEL_NS
public static String CMIS_MODEL_URI
public static String CMIS_EXT_NS
public static String CMIS_EXT_URI
public static String CMIS_MODEL_NAME
public static org.alfresco.service.namespace.QName CMIS_MODEL_QNAME
public static org.alfresco.service.namespace.QName CMIS_DATATYPE_ID
public static org.alfresco.service.namespace.QName CMIS_DATATYPE_URI
public static org.alfresco.service.namespace.QName CMIS_DATATYPE_XML
public static org.alfresco.service.namespace.QName CMIS_DATATYPE_HTML
public static org.alfresco.service.namespace.QName OBJECT_QNAME
public static org.alfresco.service.namespace.QName FILESYSTEM_OBJECT_QNAME
public static org.alfresco.service.namespace.QName DOCUMENT_QNAME
public static org.alfresco.service.namespace.QName FOLDER_QNAME
public static org.alfresco.service.namespace.QName RELATIONSHIP_QNAME
public static org.alfresco.service.namespace.QName POLICY_QNAME
public static CMISTypeId OBJECT_TYPE_ID
public static CMISTypeId FILESYSTEM_OBJECT_TYPE_ID
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry - public void setCMISService(CMISServices cmisService)
public CMISTypeId getCmisTypeId(String typeId)
typeId - type id in the form of public CMISTypeId getCmisTypeId(CMISScope scope, org.alfresco.service.namespace.QName typeQName)
typeQName - public CMISTypeId getCmisTypeId(org.alfresco.service.namespace.QName classQName)
public String buildPrefixEncodedString(org.alfresco.service.namespace.QName qname)
public boolean isValidCmisDocumentOrFolder(org.alfresco.service.namespace.QName typeQName)
dictionaryService - typeQName - public boolean isValidCmisFolder(org.alfresco.service.namespace.QName typeQName)
dictionaryService - typeQName - public boolean isValidCmisDocument(org.alfresco.service.namespace.QName typeQName)
dictionaryService - typeQName - public boolean isValidCmisPolicy(org.alfresco.service.namespace.QName typeQName)
dictionaryService - typeQName - public boolean isValidCmisRelationship(org.alfresco.service.namespace.QName associationQName)
dictionaryService - associationQName - public org.alfresco.service.namespace.QName getCmisType(org.alfresco.service.namespace.QName typeQName)
typeQName - public boolean isRemappedType(org.alfresco.service.namespace.QName typeQName)
typeQName - public org.alfresco.service.namespace.QName getAlfrescoType(org.alfresco.service.namespace.QName cmisTypeQName)
cmisTypeQName - public CMISDataTypeEnum getDataType(org.alfresco.service.cmr.dictionary.DataTypeDefinition datatype)
dictionaryService - propertyQName - public CMISDataTypeEnum getDataType(org.alfresco.service.namespace.QName dataType)
public org.alfresco.service.namespace.QName getPropertyQName(String cmisPropertyName)
dictionaryService - namespaceService - cmisPropertyName - public String getCmisPropertyId(org.alfresco.service.namespace.QName propertyQName)
namespaceService - propertyQName - public AbstractProperty getPropertyAccessor(CMISPropertyId propertyId)
propertyId - public Map<CMISAllowedActionEnum,CMISActionEvaluator<? extends Object>> getActionEvaluators(CMISScope scope)
cmisScope - public Collection<org.alfresco.util.Pair<String,Boolean>> getReportedPermissions(String permission, Set<String> permissions, boolean hasFull, boolean isDirect, org.alfresco.opencmis.CMISAccessControlFormatEnum format)
Copyright © 2005–2014 Alfresco Software. All rights reserved.