fr.paris.lutece.plugins.document.modules.cmis.service
Class BaseRepository

java.lang.Object
  extended by fr.paris.lutece.plugins.document.modules.cmis.service.BaseRepository
Direct Known Subclasses:
DocumentRepository

public abstract class BaseRepository
extends Object

Base Repository - Utils for repositories


Constructor Summary
BaseRepository()
           
 
Method Summary
protected  void addPropertyBigInteger(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, String typeId, Set<String> filter, String id, BigInteger value)
          Add a Big Integer property
protected  void addPropertyBoolean(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, String typeId, Set<String> filter, String id, boolean value)
          Add a Boolean property
protected  void addPropertyDateTime(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, String typeId, Set<String> filter, String id, GregorianCalendar value)
          Add a DateTime property
protected static boolean addPropertyDefault(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> propDef)
          Adds the default value of property if defined.
protected  void addPropertyId(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, String typeId, Set<String> filter, String id, String value)
          Add an Id property
protected  void addPropertyIdList(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, String typeId, Set<String> filter, String id, List<String> value)
          Add an Id list property
protected  void addPropertyInteger(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, String typeId, Set<String> filter, String id, long value)
          Add an Integer property
protected  void addPropertyString(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props, String typeId, Set<String> filter, String id, String value)
          Add a String property
protected  boolean checkAddProperty(org.apache.chemistry.opencmis.commons.data.Properties properties, String typeId, Set<String> filter, String id)
          Check add property
protected static org.apache.chemistry.opencmis.commons.data.PermissionMapping createMapping(String key, String permission)
          Create a mapping
protected static org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition createPermission(String permission, String description)
          Create permission
protected static GregorianCalendar millisToCalendar(long millis)
          Converts milliseconds into a calendar object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseRepository

public BaseRepository()
Method Detail

createPermission

protected static org.apache.chemistry.opencmis.commons.definitions.PermissionDefinition createPermission(String permission,
                                                                                                         String description)
Create permission

Parameters:
permission - The permission
description - The description
Returns:

createMapping

protected static org.apache.chemistry.opencmis.commons.data.PermissionMapping createMapping(String key,
                                                                                            String permission)
Create a mapping

Parameters:
key - The key
permission - The permission
Returns:

addPropertyId

protected void addPropertyId(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props,
                             String typeId,
                             Set<String> filter,
                             String id,
                             String value)
Add an Id property

Parameters:
props - The properties
typeId - The typeId
filter - the Filter
id - The id
value - The value

addPropertyIdList

protected void addPropertyIdList(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props,
                                 String typeId,
                                 Set<String> filter,
                                 String id,
                                 List<String> value)
Add an Id list property

Parameters:
props - The properties
typeId - The typeId
filter - the Filter
id - The id
value - The value

addPropertyString

protected void addPropertyString(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props,
                                 String typeId,
                                 Set<String> filter,
                                 String id,
                                 String value)
Add a String property

Parameters:
props - The properties
typeId - The typeId
filter - the Filter
id - The id
value - The value

addPropertyInteger

protected void addPropertyInteger(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props,
                                  String typeId,
                                  Set<String> filter,
                                  String id,
                                  long value)
Add an Integer property

Parameters:
props - The properties
typeId - The typeId
filter - the Filter
id - The id
value - The value

addPropertyBigInteger

protected void addPropertyBigInteger(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props,
                                     String typeId,
                                     Set<String> filter,
                                     String id,
                                     BigInteger value)
Add a Big Integer property

Parameters:
props - The properties
typeId - The typeId
filter - the Filter
id - The id
value - The value

addPropertyBoolean

protected void addPropertyBoolean(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props,
                                  String typeId,
                                  Set<String> filter,
                                  String id,
                                  boolean value)
Add a Boolean property

Parameters:
props - The properties
typeId - The typeId
filter - the Filter
id - The id
value - The value

addPropertyDateTime

protected void addPropertyDateTime(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props,
                                   String typeId,
                                   Set<String> filter,
                                   String id,
                                   GregorianCalendar value)
Add a DateTime property

Parameters:
props - The properties
typeId - The typeId
filter - the Filter
id - The id
value - The value

checkAddProperty

protected boolean checkAddProperty(org.apache.chemistry.opencmis.commons.data.Properties properties,
                                   String typeId,
                                   Set<String> filter,
                                   String id)
Check add property

Parameters:
props - The properties
typeId - The typeId
filter - the Filter
id - The id
Returns:

addPropertyDefault

protected static boolean addPropertyDefault(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl props,
                                            org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?> propDef)
Adds the default value of property if defined.

Parameters:
props -
propDef -
Returns:

millisToCalendar

protected static GregorianCalendar millisToCalendar(long millis)
Converts milliseconds into a calendar object.

Parameters:
millis -
Returns:


Copyright © 2014 Mairie de Paris. All Rights Reserved.