|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.cmis.mapping.CMISMapping
public class CMISMapping
CMIS <-> Alfresco mappings
Field Summary | |
---|---|
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 java.lang.String |
CMIS_EXT_NS
|
static java.lang.String |
CMIS_EXT_URI
|
static java.lang.String |
CMIS_MODEL_NAME
The Alfresco CMIS Model name. |
static java.lang.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 java.lang.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 Summary | |
---|---|
CMISMapping()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
java.lang.String |
buildPrefixEncodedString(org.alfresco.service.namespace.QName qname)
|
java.util.Map |
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. |
java.lang.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(java.lang.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(java.lang.String cmisPropertyName)
Lookup a CMIS property name and get the Alfresco property QName |
java.util.Collection |
getReportedPermissions(java.lang.String permission,
java.util.Set permissions,
boolean hasFull,
boolean isDirect,
org.alfresco.opencmis.CMISAccessControlFormatEnum format)
|
java.lang.String |
getSetPermission(java.lang.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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log logger
public static java.lang.String CMIS_MODEL_NS
public static java.lang.String CMIS_MODEL_URI
public static java.lang.String CMIS_EXT_NS
public static java.lang.String CMIS_EXT_URI
public static java.lang.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
Constructor Detail |
---|
public CMISMapping()
Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry
- public void setCMISService(CMISServices cmisService)
public CMISTypeId getCmisTypeId(java.lang.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 java.lang.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(java.lang.String cmisPropertyName)
dictionaryService
- namespaceService
- cmisPropertyName
-
public java.lang.String getCmisPropertyId(org.alfresco.service.namespace.QName propertyQName)
namespaceService
- propertyQName
-
public AbstractProperty getPropertyAccessor(CMISPropertyId propertyId)
propertyId
-
public java.util.Map getActionEvaluators(CMISScope scope)
cmisScope
-
public java.util.Collection getReportedPermissions(java.lang.String permission, java.util.Set permissions, boolean hasFull, boolean isDirect, org.alfresco.opencmis.CMISAccessControlFormatEnum format)
public java.lang.String getSetPermission(java.lang.String permission)
permission
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |