|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.security.jps.search.SearchQuery
oracle.security.jps.service.policystore.search.BaseSearchQuery
oracle.security.jps.service.policystore.search.ChangeLogSearchQuery
public class ChangeLogSearchQuery
A Class to build search criteria for obtaining incremental changes to policy store based on CREATE/MODIFY/DELETE time stamps.
Following code snippet illustrates how to build a search query
1. Create a search query with create time stamp.
String timeStamp; // obtain the time stamp using getLastModifiedTimeStamp API
ChangeLogSearchQuery q1 = new ChangeLogSearchQuery(ChangeLogSearchQuery.SEARCH_PROPERTY.CREATE_TIME_STAMP, timeStamp);
2. Create a search query with modify time stamp.
String timeStamp; // obtain the time stamp using getLastModifiedTimeStamp API
ChangeLogSearchQuery q2 = new ChangeLogSearchQuery(ChangeLogSearchQuery.SEARCH_PROPERTY.MODIFY_TIME_STAMP, timeStamp);
3. Create a search query with create and modify time stamp.
// create queries q1 and q2 (with appropriate time stamps)
List<ChangeLogSearchQuery> queries = new ArrayList<ChangeLogSearchQuery>();
queries.add(q1);
queries.add(q2);
ChangeLogSearchQuery q = new ChangeLogSearchQuery(queries, false, false);
Query q is a composite query with both create and modify time stamp criteria added. Such a query should be used if
both (added and modified) changes are required.
4. Create a search query with delete time stamp.
String timeStamp; // obtain the time stamp using getLastModifiedTimeStamp API
ChangeLogSearchQuery q = new ChangeLogSearchQuery(ChangeLogSearchQuery.SEARCH_PROPERTY.DELETE_TIME_STAMP, timeStamp);
| Nested Class Summary | |
|---|---|
static class |
ChangeLogSearchQuery.SEARCH_PROPERTYTime stamp criterias to search changes by |
| Nested classes/interfaces inherited from class oracle.security.jps.search.SearchQuery |
|---|
SearchQuery.MATCHER |
| Constructor Summary | |
|---|---|
ChangeLogSearchQuery(ChangeLogSearchQuery.COUNT_SEARCH_PROPERTY property, long count)Constructor Construct a simple query with count property and its value |
|
ChangeLogSearchQuery(ChangeLogSearchQuery.SEARCH_PROPERTY property, java.lang.String timeStamp)Constructor Construct a simple query with timestamp property and a time stamp value |
|
ChangeLogSearchQuery(ChangeLogSearchQuery.SEARCH_PROPERTY timeStampProperty, java.lang.String timeStamp, ChangeLogSearchQuery.COUNT_SEARCH_PROPERTY countProperty, long count)Constructor Construct a simple query with count property and its value |
|
ChangeLogSearchQuery(java.util.List<ChangeLogSearchQuery> queries, boolean negation, boolean isORMatch)Constructor Construct a composite query with multiple queries supplied in a list. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object another) |
java.lang.String |
getQueryTimeStamp(ChangeLogSearchQuery.SEARCH_PROPERTY property)Gets the time stamp value for the search property from this query. |
ChangeLogSearchQuery.SEARCH_PROPERTY |
getSearchByProperty()Gets the search by property in this search query |
java.lang.String |
toString() |
| Methods inherited from class oracle.security.jps.service.policystore.search.BaseSearchQuery |
|---|
getBaseSearchQueryInOrder, getComparator, getEntityType, getQueries |
| Methods inherited from class oracle.security.jps.search.SearchQuery |
|---|
addBaseQuery, getSearchByPropertyString, getSearchByValue, getSearchByValueObject, getSearchComparator, getSearchQueries, getSearchValueMatch, isANDMatch, isComplexQuery, isNegativeMatch, isORMatch |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeLogSearchQuery(ChangeLogSearchQuery.SEARCH_PROPERTY property,
java.lang.String timeStamp)
property - search property to search by (create time stamp or modify time stamp)timeStamp - String value of the time stamp.
public ChangeLogSearchQuery(ChangeLogSearchQuery.SEARCH_PROPERTY timeStampProperty,
java.lang.String timeStamp,
ChangeLogSearchQuery.COUNT_SEARCH_PROPERTY countProperty,
long count)
timeStampProperty - the property to searchtimeStamp - the property time stampcountProperty - count propertycount - the current count
public ChangeLogSearchQuery(ChangeLogSearchQuery.COUNT_SEARCH_PROPERTY property,
long count)
property - the count propertycount - the current count
public ChangeLogSearchQuery(java.util.List<ChangeLogSearchQuery> queries,
boolean negation,
boolean isORMatch)
queries - child queries of this query( maximum of two queries are allowed -- for create and modify time stamps)negation - if true, then the NOT operator is applied.isORMatch - if true, then the syntax among child queries is 'OR', if false the syntax among child queries is 'AND'| Method Detail |
|---|
public java.lang.String getQueryTimeStamp(ChangeLogSearchQuery.SEARCH_PROPERTY property)
property - the search propertypublic ChangeLogSearchQuery.SEARCH_PROPERTY getSearchByProperty()
public java.lang.String toString()
toString in class BaseSearchQuerypublic boolean equals(java.lang.Object another)
equals in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||