|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.client.runtime.OperationContextImpl
public class OperationContextImpl
OperationContext
implementation.
Field Summary | |
---|---|
static java.lang.String |
PROPERTIES_STAR
|
static java.lang.String |
RENDITION_NONE
|
Constructor Summary | |
---|---|
OperationContextImpl()
Default constructor. |
|
OperationContextImpl(OperationContext source)
Copy constructor. |
|
OperationContextImpl(java.util.Set<java.lang.String> propertyFilter,
boolean includeAcls,
boolean includeAllowableActions,
boolean includePolicies,
IncludeRelationships includeRelationships,
java.util.Set<java.lang.String> renditionFilter,
boolean includePathSegments,
java.lang.String orderBy,
boolean cacheEnabled,
int maxItemsPerPage)
Constructor with parameters. |
Method Summary | |
---|---|
protected void |
generateCacheKey()
Generates a new cache key from all parameters that are relevant for caching. |
java.lang.String |
getCacheKey()
Returns a key for this OperationContext object that is used for caching. |
java.util.Set<java.lang.String> |
getFilter()
Returns the current filter. |
java.lang.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 page. |
java.lang.String |
getOrderBy()
Returns the order by rule for operations that return lists. |
java.util.Set<java.lang.String> |
getRenditionFilter()
Returns the current rendition filter. |
java.lang.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. |
void |
setCacheEnabled(boolean cacheEnabled)
Enables or disables the cache. |
void |
setFilter(java.util.Set<java.lang.String> propertyFilter)
Sets the current filter. |
void |
setFilterString(java.lang.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 |
setMaxItemsPerPage(int maxItemsPerPage)
Set the max number of items per page for operations that return lists. |
void |
setOrderBy(java.lang.String orderBy)
Sets the order by rule for operations that return lists. |
void |
setRenditionFilter(java.util.Set<java.lang.String> renditionFilter)
Sets the current rendition filter. |
void |
setRenditionFilterString(java.lang.String renditionFilter)
Sets the current rendition filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTIES_STAR
public static final java.lang.String RENDITION_NONE
Constructor Detail |
---|
public OperationContextImpl()
public OperationContextImpl(OperationContext source)
public OperationContextImpl(java.util.Set<java.lang.String> propertyFilter, boolean includeAcls, boolean includeAllowableActions, boolean includePolicies, IncludeRelationships includeRelationships, java.util.Set<java.lang.String> renditionFilter, boolean includePathSegments, java.lang.String orderBy, boolean cacheEnabled, int maxItemsPerPage)
Method Detail |
---|
public java.util.Set<java.lang.String> getFilter()
OperationContext
getFilter
in interface OperationContext
public void setFilter(java.util.Set<java.lang.String> propertyFilter)
OperationContext
setFilter
in interface OperationContext
propertyFilter
- a set of query namespublic void setFilterString(java.lang.String propertyFilter)
OperationContext
setFilterString
in interface OperationContext
propertyFilter
- a comma separated list of query namespublic java.lang.String getFilterString()
OperationContext
getFilterString
in interface OperationContext
public boolean isIncludeAcls()
OperationContext
isIncludeAcls
in interface OperationContext
public void setIncludeAcls(boolean include)
OperationContext
setIncludeAcls
in interface OperationContext
public boolean isIncludeAllowableActions()
OperationContext
isIncludeAllowableActions
in interface OperationContext
public void setIncludeAllowableActions(boolean include)
OperationContext
setIncludeAllowableActions
in interface OperationContext
public boolean isIncludePolicies()
OperationContext
isIncludePolicies
in interface OperationContext
public void setIncludePolicies(boolean include)
OperationContext
setIncludePolicies
in interface OperationContext
public IncludeRelationships getIncludeRelationships()
OperationContext
getIncludeRelationships
in interface OperationContext
public void setIncludeRelationships(IncludeRelationships include)
OperationContext
setIncludeRelationships
in interface OperationContext
public java.util.Set<java.lang.String> getRenditionFilter()
OperationContext
getRenditionFilter
in interface OperationContext
public void setRenditionFilter(java.util.Set<java.lang.String> renditionFilter)
OperationContext
setRenditionFilter
in interface OperationContext
renditionFilter
- a set of rendition filter termspublic void setRenditionFilterString(java.lang.String renditionFilter)
OperationContext
setRenditionFilterString
in interface OperationContext
renditionFilter
- a comma separated list of rendition filter termspublic java.lang.String getRenditionFilterString()
OperationContext
getRenditionFilterString
in interface OperationContext
public boolean isIncludePathSegments()
OperationContext
isIncludePathSegments
in interface OperationContext
public void setIncludePathSegments(boolean include)
OperationContext
setIncludePathSegments
in interface OperationContext
public java.lang.String getOrderBy()
OperationContext
getOrderBy
in interface OperationContext
public void setOrderBy(java.lang.String orderBy)
OperationContext
setOrderBy
in interface OperationContext
orderBy
- a comma-separated list of query names and the
ascending modifier "ASC" or the descending modifier "DESC" for
each query namepublic boolean isCacheEnabled()
OperationContext
isCacheEnabled
in interface OperationContext
public void setCacheEnabled(boolean cacheEnabled)
OperationContext
setCacheEnabled
in interface OperationContext
public java.lang.String getCacheKey()
OperationContext
getCacheKey
in interface OperationContext
protected void generateCacheKey()
public int getMaxItemsPerPage()
OperationContext
getMaxItemsPerPage
in interface OperationContext
public void setMaxItemsPerPage(int maxItemsPerPage)
OperationContext
setMaxItemsPerPage
in interface OperationContext
maxItemsPerPage
- max number of items (must be >0)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |