|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.webcenter.spaces.query.SpacesQueryFilter
public class SpacesQueryFilter
Defines a filter to use as criteria for querying spaces.
Use the createXXX() methods to create instances of this class, and call SpacesQueryParameters.setFilter(oracle.webcenter.spaces.query.SpacesQueryFilter)
to set this to be used on a SpacesQueryParameters
instance.
Nested Class Summary | |
---|---|
static class |
SpacesQueryFilter.FilterType This type definition is liable to change across product releases and is not intended for consumer use. |
Method Summary | |
---|---|
static SpacesQueryFilter |
createSearchFilter(java.lang.String searchString) Creates a filter representing a text search on certail pre-designated space attributes. |
static SpacesQueryFilter |
createWhereClauseFilter(java.lang.String whereClause) Creates a filter defined by a JPQL condition expression. |
java.lang.String |
getFilterString() This method is liable to change across product releases and is not intended for consumer use. |
SpacesQueryFilter.FilterType |
getType() This method is liable to change across product releases and is not intended for consumer use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SpacesQueryFilter createWhereClauseFilter(java.lang.String whereClause)
The JPQL condition expression can reference space attributes using the idenitifier 'sp
' representing the JPA entity for a space, WcSpaceHeader
. For example, the following condition can be used to create a filter for all spaces created by user 'monty' that allow users to subscribe to them: "sp.createdBy = 'monty' and sp.selfSubEnabled = 'Y'
". You can use any variable defined in WcSpaceHeader
in the whereClause.
EL : #{spaceContext.spacesQuery.unionOf.ALL_QUERIABLE.whereClause['sp.createdBy = 'monty' and sp.selfSubEnabled = 'Y' ].listSpaces}
This EL returns a list of all spaces a user has access which are created by monty and those group spaces on which self subscription is enabled
whereClause
- A JPQL (Java Persistence Query Language) condition expression defining the criteria to use for filtering spacespublic static SpacesQueryFilter createSearchFilter(java.lang.String searchString)
As of today the attributes that get searched on are display name, name, description, keywords, GUID, and creator user name.
EL- #{spaceContext.spacesQuery.unionOf.ALL_QUERIABLE.sortCriteria['sp.lastUpdateDate desc'].search['gs1'].listSpaces}
  This EL returns a list of all group spaces a user has access on and whose name or display name etc matches 'gs1'
searchString
- Pattern to search for in the space attributespublic SpacesQueryFilter.FilterType getType()
public java.lang.String getFilterString()
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |