|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.opencmis.mapping.CMISMapping
public class CMISMapping
CMIS <-> Alfresco mappings
Field Summary | |
---|---|
static QName |
ASPECTS_QNAME
|
static java.lang.String |
CMIS_ALL
|
static QName |
CMIS_DATATYPE_HTML
|
static QName |
CMIS_DATATYPE_ID
|
static QName |
CMIS_DATATYPE_URI
|
static 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 QName |
CMIS_MODEL_QNAME
The QName for the Alfresco CMIS Model. |
static java.lang.String |
CMIS_MODEL_URI
|
static java.lang.String |
CMIS_READ
Basic permissions. |
static java.lang.String |
CMIS_WRITE
|
static QName |
DOCUMENT_QNAME
|
static QName |
FOLDER_QNAME
|
static QName |
OBJECT_QNAME
|
static java.lang.String |
OBJECT_TYPE_ID
|
static QName |
POLICY_QNAME
|
static QName |
RELATIONSHIP_QNAME
|
Constructor Summary | |
---|---|
CMISMapping()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
java.lang.String |
buildPrefixEncodedString(QName qname)
|
QName |
getAlfrescoClass(QName cmisTypeQName)
Given a CMIS model type map it to the appropriate Alfresco type. |
QName |
getAlfrescoDataType(org.apache.chemistry.opencmis.commons.enums.PropertyType propertyType)
|
QName |
getAlfrescoName(java.lang.String typeId)
|
java.lang.String |
getCmisPropertyId(QName propertyQName)
|
QName |
getCmisType(QName typeQName)
Given an Alfresco model type map it to the appropriate type. |
java.lang.String |
getCmisTypeId(org.apache.chemistry.opencmis.commons.enums.BaseTypeId scope,
QName typeQName)
Gets the CMIS Type Id given the Alfresco QName for the type in any Alfresco model |
java.lang.String |
getCmisTypeId(QName classQName)
|
org.apache.chemistry.opencmis.commons.enums.PropertyType |
getDataType(DataTypeDefinition datatype)
Get the CMIS property type for a property |
org.apache.chemistry.opencmis.commons.enums.PropertyType |
getDataType(QName dataType)
|
DictionaryService |
getDictionaryService()
|
NamespaceService |
getNamespaceService()
|
java.util.Collection |
getReportedPermissions(java.lang.String permission,
java.util.Set permissions,
boolean hasFull,
boolean isDirect,
CMISAccessControlFormatEnum format)
|
java.lang.String |
getSetPermission(java.lang.String permission)
|
boolean |
isRemappedType(QName typeQName)
Is Alfresco Type mapped to an alternative CMIS Type? |
boolean |
isValidCmisDocument(QName typeQName)
Is this a valid CMIS document type? |
boolean |
isValidCmisDocumentOrFolder(QName typeQName)
Is this a valid cmis document or folder type (not a relationship) |
boolean |
isValidCmisFolder(QName typeQName)
Is this a valid CMIS folder type? |
boolean |
isValidCmisObject(org.apache.chemistry.opencmis.commons.enums.BaseTypeId scope,
QName qname)
|
boolean |
isValidCmisPolicy(QName typeQName)
Is this a valid CMIS policy type? |
boolean |
isValidCmisRelationship(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 |
setDictionaryService(DictionaryService dictionaryService)
|
void |
setNamespaceService(NamespaceService namespaceService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 QName CMIS_MODEL_QNAME
public static QName CMIS_DATATYPE_ID
public static QName CMIS_DATATYPE_URI
public static QName CMIS_DATATYPE_XML
public static QName CMIS_DATATYPE_HTML
public static QName OBJECT_QNAME
public static QName DOCUMENT_QNAME
public static QName FOLDER_QNAME
public static QName RELATIONSHIP_QNAME
public static QName POLICY_QNAME
public static QName ASPECTS_QNAME
public static java.lang.String OBJECT_TYPE_ID
public static final java.lang.String CMIS_READ
public static final java.lang.String CMIS_WRITE
public static final java.lang.String CMIS_ALL
Constructor Detail |
---|
public CMISMapping()
Method Detail |
---|
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void setDictionaryService(DictionaryService dictionaryService)
dictionary
- servicepublic void setNamespaceService(NamespaceService namespaceService)
namespace
- servicepublic NamespaceService getNamespaceService()
public DictionaryService getDictionaryService()
public java.lang.String getCmisTypeId(org.apache.chemistry.opencmis.commons.enums.BaseTypeId scope, QName typeQName)
typeQName
-
public java.lang.String getCmisTypeId(QName classQName)
public java.lang.String buildPrefixEncodedString(QName qname)
public QName getAlfrescoName(java.lang.String typeId)
public boolean isValidCmisDocumentOrFolder(QName typeQName)
dictionaryService
- typeQName
-
public boolean isValidCmisObject(org.apache.chemistry.opencmis.commons.enums.BaseTypeId scope, QName qname)
public boolean isValidCmisFolder(QName typeQName)
dictionaryService
- typeQName
-
public boolean isValidCmisDocument(QName typeQName)
dictionaryService
- typeQName
-
public boolean isValidCmisPolicy(QName typeQName)
dictionaryService
- typeQName
-
public boolean isValidCmisRelationship(QName associationQName)
dictionaryService
- associationQName
-
public QName getCmisType(QName typeQName)
public boolean isRemappedType(QName typeQName)
public QName getAlfrescoClass(QName cmisTypeQName)
cmisTypeQName
-
public org.apache.chemistry.opencmis.commons.enums.PropertyType getDataType(DataTypeDefinition datatype)
dictionaryService
- propertyQName
-
public org.apache.chemistry.opencmis.commons.enums.PropertyType getDataType(QName dataType)
public QName getAlfrescoDataType(org.apache.chemistry.opencmis.commons.enums.PropertyType propertyType)
public java.lang.String getCmisPropertyId(QName propertyQName)
namespaceService
- propertyQName
-
public java.util.Collection getReportedPermissions(java.lang.String permission, java.util.Set permissions, boolean hasFull, boolean isDirect, 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 |