public class CMISMapping extends Object implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
static QName |
ASPECTS_QNAME |
static String |
CMIS_ALL |
static QName |
CMIS_DATATYPE_HTML |
static QName |
CMIS_DATATYPE_ID |
static QName |
CMIS_DATATYPE_URI |
static 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 QName |
CMIS_MODEL_QNAME
The QName for the Alfresco CMIS Model.
|
static String |
CMIS_MODEL_URI |
static String |
CMIS_READ
Basic permissions.
|
static String |
CMIS_WRITE |
protected DictionaryService |
dictionaryService |
static QName |
DOCUMENT_QNAME |
static QName |
FOLDER_QNAME |
static QName |
ITEM_QNAME |
protected NamespaceService |
namespaceService |
static QName |
OBJECT_QNAME |
static String |
OBJECT_TYPE_ID |
static QName |
POLICY_QNAME |
static QName |
RELATIONSHIP_QNAME |
static QName |
SECONDARY_TYPES_QNAME |
Constructor and Description |
---|
CMISMapping() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
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(String typeId) |
String |
getCmisPropertyId(QName propertyQName) |
QName |
getCmisType(QName typeQName)
Given an Alfresco model type map it to the appropriate type.
|
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
|
String |
getCmisTypeId(QName classQName) |
org.apache.chemistry.opencmis.commons.enums.CmisVersion |
getCmisVersion() |
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() |
Collection<org.alfresco.util.Pair<String,Boolean>> |
getReportedPermissions(String permission,
Set<String> permissions,
boolean hasFull,
boolean isDirect,
CMISAccessControlFormatEnum format) |
String |
getSetPermission(String permission) |
boolean |
isExcluded(QName typeQName) |
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 |
isValidCmisFolder(QName typeQName)
Is this a valid CMIS folder type?
|
boolean |
isValidCmisItem(QName typeQName)
Is this a valid CMIS item 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.
|
boolean |
isValidCmisRelationshipEndPoint(QName typeQName) |
boolean |
isValidCmisSecondaryType(QName typeQName)
Is this a valid CMIS secondary type?
|
void |
setCmisVersion(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion) |
void |
setDictionaryService(DictionaryService dictionaryService) |
void |
setFilter(QNameFilter filter) |
void |
setNamespaceService(NamespaceService namespaceService) |
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 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 SECONDARY_TYPES_QNAME
public static QName ASPECTS_QNAME
public static QName ITEM_QNAME
public static String OBJECT_TYPE_ID
public static final String CMIS_READ
public static final String CMIS_WRITE
public static final String CMIS_ALL
protected DictionaryService dictionaryService
protected NamespaceService namespaceService
public void setCmisVersion(org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
public org.apache.chemistry.opencmis.commons.enums.CmisVersion getCmisVersion()
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void setFilter(QNameFilter filter)
public void setDictionaryService(DictionaryService dictionaryService)
dictionaryService
- dictionaryServicepublic void setNamespaceService(NamespaceService namespaceService)
namespaceService
- servicepublic NamespaceService getNamespaceService()
public DictionaryService getDictionaryService()
public boolean isExcluded(QName typeQName)
public String getCmisTypeId(org.apache.chemistry.opencmis.commons.enums.BaseTypeId scope, QName typeQName)
scope
- BaseTypeIdtypeQName
- QNamepublic boolean isValidCmisObject(org.apache.chemistry.opencmis.commons.enums.BaseTypeId scope, QName qname)
public boolean isValidCmisFolder(QName typeQName)
typeQName
- QNamepublic boolean isValidCmisDocument(QName typeQName)
typeQName
- QNamepublic boolean isValidCmisSecondaryType(QName typeQName)
typeQName
- QNamepublic boolean isValidCmisPolicy(QName typeQName)
typeQName
- QNamepublic boolean isValidCmisRelationship(QName associationQName)
associationQName
- QNamepublic boolean isValidCmisRelationshipEndPoint(QName typeQName)
public boolean isValidCmisItem(QName typeQName)
typeQName
- QNamepublic QName getCmisType(QName typeQName)
public boolean isRemappedType(QName typeQName)
public QName getAlfrescoClass(QName cmisTypeQName)
cmisTypeQName
- QNamepublic org.apache.chemistry.opencmis.commons.enums.PropertyType getDataType(DataTypeDefinition datatype)
datatype
- DataTypeDefinitionpublic org.apache.chemistry.opencmis.commons.enums.PropertyType getDataType(QName dataType)
public QName getAlfrescoDataType(org.apache.chemistry.opencmis.commons.enums.PropertyType propertyType)
public String getCmisPropertyId(QName propertyQName)
propertyQName
- QNamepublic Collection<org.alfresco.util.Pair<String,Boolean>> getReportedPermissions(String permission, Set<String> permissions, boolean hasFull, boolean isDirect, CMISAccessControlFormatEnum format)
Copyright © 2005–2019 Alfresco Software. All rights reserved.