Package com.logicaldoc.cmis
Class Converter
- java.lang.Object
-
- com.logicaldoc.cmis.Converter
-
public final class Converter extends Object
Copied from the same class in OpenCMIS 0.6.0. Contains converter methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Enum<T>>
Tconvert(Class<T> destClass, Enum<?> source)
Converts an Enumstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisAccessControlListType
convert(org.apache.chemistry.opencmis.commons.data.Acl acl)
Converts an ACL object with its ACEsstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisAllowableActionsType
convert(org.apache.chemistry.opencmis.commons.data.AllowableActions allowableActions)
Converts an AllowableActions objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectType
convert(org.apache.chemistry.opencmis.commons.data.ObjectData object)
Converts a CMIS objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectInFolderContainerType
convert(org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer container)
Converts an ObjectInFolder container objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectInFolderType
convert(org.apache.chemistry.opencmis.commons.data.ObjectInFolderData objectInFolder)
Converts an ObjectInFolder objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisListOfIdsType
convert(org.apache.chemistry.opencmis.commons.data.PolicyIdList policyIds)
Converts a list of policy idsstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertiesType
convert(org.apache.chemistry.opencmis.commons.data.Properties properties)
Converts a properties objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisProperty
convert(org.apache.chemistry.opencmis.commons.data.PropertyData<?> property)
Converts a property objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisRenditionType
convert(org.apache.chemistry.opencmis.commons.data.RenditionData rendition)
Converts a rendition objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertyDefinitionType
convert(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> propertyDefinition)
Converts a property definition objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDefinitionType
convert(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition typeDefinition)
Converts a type definition objectstatic org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDefinitionListType
convert(org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList typeList)
Converts a type liststatic org.apache.chemistry.opencmis.commons.data.Acl
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisAccessControlListType acl, Boolean isExact)
Converts an ACL object with its ACEsstatic org.apache.chemistry.opencmis.commons.data.AllowableActions
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisAllowableActionsType allowableActions)
Converts an AllowableActions objectstatic org.apache.chemistry.opencmis.commons.data.PolicyIdList
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisListOfIdsType policyIds)
Converts a list of policy idsstatic org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectInFolderContainerType container)
Converts an ObjectInFolder container objectstatic org.apache.chemistry.opencmis.commons.data.ObjectInFolderData
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectInFolderType objectInFolder)
Converts an ObjectInFolder objectstatic org.apache.chemistry.opencmis.commons.data.ObjectData
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectType object)
Converts a CMIS objectstatic org.apache.chemistry.opencmis.commons.data.Properties
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertiesType properties)
Converts a properties objectstatic org.apache.chemistry.opencmis.commons.data.PropertyData<?>
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisProperty property)
Converts a property objectstatic org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertyDefinitionType propertyDefinition)
Converts a property definition objectstatic org.apache.chemistry.opencmis.commons.data.RenditionData
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisRenditionType rendition)
Converts a rendition objectstatic org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDefinitionListType typeList)
Converts a type liststatic org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDefinitionType typeDefinition)
Converts a type definition objectstatic XMLGregorianCalendar
convertCalendar(GregorianCalendar calendar)
Converts a calendar objectstatic List<XMLGregorianCalendar>
convertCalendar(List<GregorianCalendar> calendar)
Converts a list of calendar objectsstatic void
convertExtension(Object source, org.apache.chemistry.opencmis.commons.data.ExtensionsData target)
static void
convertExtension(org.apache.chemistry.opencmis.commons.data.ExtensionsData source, Object target)
static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisListOfIdsType
convertPolicyIds(List<String> policyIds)
Converts a list of policy idsstatic void
convertTypeContainerList(List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> typeContainers, List<org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeContainer> target)
Converts a type container liststatic List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer>
convertTypeContainerList(List<org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeContainer> typeContainers)
Converts a type container liststatic List<GregorianCalendar>
convertXMLCalendar(List<XMLGregorianCalendar> calendar)
Converts a list of calendar objects
-
-
-
Method Detail
-
convert
public static org.apache.chemistry.opencmis.commons.definitions.TypeDefinition convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDefinitionType typeDefinition)
Converts a type definition object- Parameters:
typeDefinition
- definition of the type- Returns:
- the type definition obect
-
convert
public static org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertyDefinitionType propertyDefinition)
Converts a property definition object- Parameters:
propertyDefinition
- CMIS definition object- Returns:
- definition object
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDefinitionType convert(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition typeDefinition)
Converts a type definition object- Parameters:
typeDefinition
- type definition object- Returns:
- CMIS type definition object
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertyDefinitionType convert(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> propertyDefinition)
Converts a property definition object- Parameters:
propertyDefinition
- definition of property- Returns:
- CMS property definition
-
convert
public static org.apache.chemistry.opencmis.commons.data.ObjectData convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectType object)
Converts a CMIS object- Parameters:
object
- the object to convert- Returns:
- the converted object
-
convert
public static org.apache.chemistry.opencmis.commons.data.Properties convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertiesType properties)
Converts a properties object- Parameters:
properties
- the object to convert- Returns:
- the converted properties object
-
convert
public static org.apache.chemistry.opencmis.commons.data.PropertyData<?> convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisProperty property)
Converts a property object- Parameters:
property
- the property- Returns:
- the conversion
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisPropertiesType convert(org.apache.chemistry.opencmis.commons.data.Properties properties)
Converts a properties object- Parameters:
properties
- the properties- Returns:
- the conversion
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisProperty convert(org.apache.chemistry.opencmis.commons.data.PropertyData<?> property)
Converts a property object- Parameters:
property
- the property- Returns:
- the conversion
-
convert
public static org.apache.chemistry.opencmis.commons.data.RenditionData convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisRenditionType rendition)
Converts a rendition object- Parameters:
rendition
- the rendition- Returns:
- the conversion
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisRenditionType convert(org.apache.chemistry.opencmis.commons.data.RenditionData rendition)
Converts a rendition object- Parameters:
rendition
- the rendition- Returns:
- the conversion
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectType convert(org.apache.chemistry.opencmis.commons.data.ObjectData object)
Converts a CMIS object- Parameters:
object
- the object to convert- Returns:
- the CMIS conversion
-
convert
public static org.apache.chemistry.opencmis.commons.data.Acl convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisAccessControlListType acl, Boolean isExact)
Converts an ACL object with its ACEs- Parameters:
acl
- the security policiesisExact
- if the specification is exact- Returns:
- the converted ACL
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisAccessControlListType convert(org.apache.chemistry.opencmis.commons.data.Acl acl)
Converts an ACL object with its ACEs- Parameters:
acl
- the acl- Returns:
- the CMIS ACL
-
convert
public static org.apache.chemistry.opencmis.commons.data.AllowableActions convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisAllowableActionsType allowableActions)
Converts an AllowableActions object- Parameters:
allowableActions
- the allowable actions- Returns:
- the actions
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisAllowableActionsType convert(org.apache.chemistry.opencmis.commons.data.AllowableActions allowableActions)
Converts an AllowableActions object- Parameters:
allowableActions
- the object to convert- Returns:
- the conversion
-
convert
public static org.apache.chemistry.opencmis.commons.data.PolicyIdList convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisListOfIdsType policyIds)
Converts a list of policy ids- Parameters:
policyIds
- identifiers of the policies- Returns:
- list of policy identifiers
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisListOfIdsType convert(org.apache.chemistry.opencmis.commons.data.PolicyIdList policyIds)
Converts a list of policy ids- Parameters:
policyIds
- list of policy identifiers- Returns:
- list of policy identifiers
-
convertPolicyIds
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisListOfIdsType convertPolicyIds(List<String> policyIds)
Converts a list of policy ids- Parameters:
policyIds
- list of policy identifiers- Returns:
- list of policy identifiers
-
convertXMLCalendar
public static List<GregorianCalendar> convertXMLCalendar(List<XMLGregorianCalendar> calendar)
Converts a list of calendar objects- Parameters:
calendar
- list of gregorian XML calendars- Returns:
- list of gregorian calendars
-
convertCalendar
public static List<XMLGregorianCalendar> convertCalendar(List<GregorianCalendar> calendar)
Converts a list of calendar objects- Parameters:
calendar
- the list of gregorian calendars- Returns:
- list of XML gregorian calendars
-
convertCalendar
public static XMLGregorianCalendar convertCalendar(GregorianCalendar calendar)
Converts a calendar object- Parameters:
calendar
- gregorian calendar- Returns:
- an XML gregorian calendar
-
convert
public static org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDefinitionListType typeList)
Converts a type list- Parameters:
typeList
- the list to convert- Returns:
- the converted definition list
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeDefinitionListType convert(org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList typeList)
Converts a type list- Parameters:
typeList
- list of types- Returns:
- the CMIS definitions
-
convertTypeContainerList
public static List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> convertTypeContainerList(List<org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeContainer> typeContainers)
Converts a type container list- Parameters:
typeContainers
- the container that specifies the types- Returns:
- the list of type definitions
-
convertTypeContainerList
public static void convertTypeContainerList(List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> typeContainers, List<org.apache.chemistry.opencmis.commons.impl.jaxb.CmisTypeContainer> target)
Converts a type container list- Parameters:
typeContainers
- the container of typestarget
- the target list
-
convert
public static org.apache.chemistry.opencmis.commons.data.ObjectInFolderData convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectInFolderType objectInFolder)
Converts an ObjectInFolder object- Parameters:
objectInFolder
- CMIS object- Returns:
- the converted object
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectInFolderType convert(org.apache.chemistry.opencmis.commons.data.ObjectInFolderData objectInFolder)
Converts an ObjectInFolder object- Parameters:
objectInFolder
- the object to convert- Returns:
- the CMIS object
-
convert
public static org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer convert(org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectInFolderContainerType container)
Converts an ObjectInFolder container object- Parameters:
container
- the container- Returns:
- the CMIS object
-
convert
public static org.apache.chemistry.opencmis.commons.impl.jaxb.CmisObjectInFolderContainerType convert(org.apache.chemistry.opencmis.commons.data.ObjectInFolderContainer container)
Converts an ObjectInFolder container object- Parameters:
container
- the container- Returns:
- the CMIS object
-
convertExtension
public static void convertExtension(Object source, org.apache.chemistry.opencmis.commons.data.ExtensionsData target)
-
convertExtension
public static void convertExtension(org.apache.chemistry.opencmis.commons.data.ExtensionsData source, Object target)
-
-