public class OperationContextImpl extends Object implements OperationContext, Serializable
OperationContext implementation.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTIES_STAR |
static String |
RENDITION_NONE |
| Constructor and Description |
|---|
OperationContextImpl()
Default constructor.
|
OperationContextImpl(OperationContext source)
Copy constructor.
|
OperationContextImpl(Set<String> propertyFilter,
boolean includeAcls,
boolean includeAllowableActions,
boolean includePolicies,
IncludeRelationships includeRelationships,
Set<String> renditionFilter,
boolean includePathSegments,
String orderBy,
boolean cacheEnabled,
int maxItemsPerPage)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateCacheKey()
Generates a new cache key from all parameters that are relevant for
caching.
|
String |
getCacheKey()
Returns a key for this OperationContext object that is used for caching.
|
Set<String> |
getFilter()
Returns the current filter.
|
String |
getFilterString()
Returns the filter extended by cmis:objectId, cmis:objectTypeId and
cmis:baseTypeId.
|
IncludeRelationships |
getIncludeRelationships()
Returns which relationships should be returned.
|
int |
getMaxItemsPerPage()
Returns the current max number of items per batch.
|
String |
getOrderBy()
Returns the order by rule for operations that return lists.
|
Set<String> |
getRenditionFilter()
Returns the current rendition filter.
|
String |
getRenditionFilterString()
Returns the current rendition filter.
|
boolean |
isCacheEnabled()
Return if caching is enabled.
|
boolean |
isIncludeAcls()
Returns if ACLs should returned.
|
boolean |
isIncludeAllowableActions()
Returns if allowable actions should returned.
|
boolean |
isIncludePathSegments()
Returns if path segments should returned.
|
boolean |
isIncludePolicies()
Returns if policies should returned.
|
boolean |
loadSecondaryTypeProperties()
Returns is secondary type properties should be loaded.
|
void |
setCacheEnabled(boolean cacheEnabled)
Enables or disables the cache.
|
void |
setFilter(Set<String> propertyFilter)
Sets the current filter.
|
void |
setFilterString(String propertyFilter)
Sets the current filter.
|
void |
setIncludeAcls(boolean include)
Sets if ACLs should returned.
|
void |
setIncludeAllowableActions(boolean include)
Sets if allowable actions should returned.
|
void |
setIncludePathSegments(boolean include)
Sets if path segments should returned.
|
void |
setIncludePolicies(boolean include)
Sets if policies should returned.
|
void |
setIncludeRelationships(IncludeRelationships include)
Sets which relationships should be returned.
|
void |
setLoadSecondaryTypeProperties(boolean load)
Sets if secondary type properties should be loaded.
|
void |
setMaxItemsPerPage(int maxItemsPerPage)
Set the max number of items per batch for operations that return lists.
|
void |
setOrderBy(String orderBy)
Sets the order by rule for operations that return lists.
|
void |
setRenditionFilter(Set<String> renditionFilter)
Sets the current rendition filter.
|
void |
setRenditionFilterString(String renditionFilter)
Sets the current rendition filter.
|
public static final String PROPERTIES_STAR
public static final String RENDITION_NONE
public OperationContextImpl()
public OperationContextImpl(OperationContext source)
public OperationContextImpl(Set<String> propertyFilter, boolean includeAcls, boolean includeAllowableActions, boolean includePolicies, IncludeRelationships includeRelationships, Set<String> renditionFilter, boolean includePathSegments, String orderBy, boolean cacheEnabled, int maxItemsPerPage)
public Set<String> getFilter()
OperationContextgetFilter in interface OperationContextpublic void setFilter(Set<String> propertyFilter)
OperationContextsetFilter in interface OperationContextpropertyFilter - a set of query namespublic void setFilterString(String propertyFilter)
OperationContextsetFilterString in interface OperationContextpropertyFilter - a comma separated list of query namespublic String getFilterString()
OperationContextgetFilterString in interface OperationContextpublic void setLoadSecondaryTypeProperties(boolean load)
OperationContextsetLoadSecondaryTypeProperties in interface OperationContextpublic boolean loadSecondaryTypeProperties()
OperationContextloadSecondaryTypeProperties in interface OperationContextpublic boolean isIncludeAcls()
OperationContextisIncludeAcls in interface OperationContextpublic void setIncludeAcls(boolean include)
OperationContextsetIncludeAcls in interface OperationContextpublic boolean isIncludeAllowableActions()
OperationContextisIncludeAllowableActions in interface OperationContextpublic void setIncludeAllowableActions(boolean include)
OperationContextsetIncludeAllowableActions in interface OperationContextpublic boolean isIncludePolicies()
OperationContextisIncludePolicies in interface OperationContextpublic void setIncludePolicies(boolean include)
OperationContextsetIncludePolicies in interface OperationContextpublic IncludeRelationships getIncludeRelationships()
OperationContextgetIncludeRelationships in interface OperationContextpublic void setIncludeRelationships(IncludeRelationships include)
OperationContextsetIncludeRelationships in interface OperationContextpublic Set<String> getRenditionFilter()
OperationContextgetRenditionFilter in interface OperationContextpublic void setRenditionFilter(Set<String> renditionFilter)
OperationContextsetRenditionFilter in interface OperationContextrenditionFilter - a set of rendition filter termspublic void setRenditionFilterString(String renditionFilter)
OperationContextsetRenditionFilterString in interface OperationContextrenditionFilter - a comma separated list of rendition filter termspublic String getRenditionFilterString()
OperationContextgetRenditionFilterString in interface OperationContextpublic boolean isIncludePathSegments()
OperationContextisIncludePathSegments in interface OperationContextpublic void setIncludePathSegments(boolean include)
OperationContextsetIncludePathSegments in interface OperationContextpublic String getOrderBy()
OperationContextgetOrderBy in interface OperationContextpublic void setOrderBy(String orderBy)
OperationContextsetOrderBy in interface OperationContextorderBy - a comma-separated list of query names and the
ascending modifier "ASC" or the descending modifier "DESC" for
each query namepublic boolean isCacheEnabled()
OperationContextisCacheEnabled in interface OperationContextpublic void setCacheEnabled(boolean cacheEnabled)
OperationContextsetCacheEnabled in interface OperationContextpublic String getCacheKey()
OperationContextgetCacheKey in interface OperationContextprotected void generateCacheKey()
public int getMaxItemsPerPage()
OperationContextgetMaxItemsPerPage in interface OperationContextpublic void setMaxItemsPerPage(int maxItemsPerPage)
OperationContextItemIterable.getPage(int).setMaxItemsPerPage in interface OperationContextmaxItemsPerPage - max number of items (must be >0)Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.