|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IndexPolicyManager presents an interface accessible also in the client
to the functions provided in the server by the StandardIndexPolicyManager.
These functions concern mostly the management of the cache: retrieving
a list and updating the cache. This latter method should be called after
a rule is modified.
Supported API: true
Extendable: false
Method Summary | |
IndexPolicyRule |
addIndexPolicyRule(Selector selector)
Creates and adds a new index policy rule for the given selector. |
Enumeration |
allIndexers()
Returns all available indexers. |
void |
createIndexingRule(AdminDomainRef domain_ref,
String type_id,
String state_key,
Vector collections)
Creates an indexing rule defining which collections objects of a specified type should be entered into when the objects move to a specified life cycle state, within a domain. |
void |
deleteIndexingRule(AdminDomainRef domain_ref,
String type_id,
String state_key)
Deletes an indexing rule defining which collections objects of a specified type should be entered into when the objects move to a specified life cycle state, within a domain. |
void |
deleteIndexingRules(AdminDomainRef domain_ref)
Deletes all indexing rules within a domain. |
IndexPolicyList |
getIndexPolicyList(Selector selector)
Supported API: false |
IndexPolicyRule |
getIndexPolicyRule(Selector selector)
Returns the index policy rule for the specified selector. |
Enumeration |
getIndexPolicyRules(AdminDomainRef domain_ref)
Returns all the index policy rules for the specified domain in the form of an enumeration. |
void |
index(Indexable targetObject)
Index targetObject . |
void |
index(WTCollection targetCollection)
Index targetCollection . |
void |
removeIndex(Indexable targetObject)
Supported API: false |
void |
removeIndex(WTCollection targetCollection)
Remove targetObject from indexes. |
IndexPolicyRule |
removeIndexPolicyRule(Selector selector)
Removes the index policy rule for the given selector. |
void |
subscribe(com.objectspace.jgl.OrderedSet event_list)
Subscribe to the events contained in the set. |
void |
testIndexToRware(String refString)
Supported API: false |
Void |
testUpdateIndex(String oid,
String collection_name)
Supported API: false |
void |
unsubscribe(com.objectspace.jgl.OrderedSet event_list)
Removes the subscription to the events in the list. |
void |
updateIndexingRule(AdminDomainRef domain_ref,
String type_id,
String state_key,
Vector collections)
Updates an indexing rule defining which collections objects of a specified type should be entered into when the objects move to a specified life cycle state, within a domain. |
void |
updateIndexPolicyLists(Selector selector)
Updates the policy list for the given selector and all lists whose selector is more specific than the given one. |
Method Detail |
public void createIndexingRule(AdminDomainRef domain_ref, String type_id, String state_key, Vector collections) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)collections
- collection names (Vector
of String
)
WTException
public void deleteIndexingRule(AdminDomainRef domain_ref, String type_id, String state_key) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)
WTException
public void deleteIndexingRules(AdminDomainRef domain_ref) throws WTException
This method is intended for testing purposes only, to support automated
tests that need to reinitialize the testing environment.
Supported API: false
domain_ref
- reference to the domain the rule is for
WTException
public void updateIndexingRule(AdminDomainRef domain_ref, String type_id, String state_key, Vector collections) throws WTException
domain_ref
- reference to the domain the rule is fortype_id
- logical or persisted type identifierstate_key
- life cycle state key (State.toString()
value, or null for all states)collections
- collection names (Vector
of String
)
WTException
public void updateIndexPolicyLists(Selector selector) throws WTException
selector
-
WTException
public IndexPolicyRule addIndexPolicyRule(Selector selector) throws WTException
selector
-
WTException
public IndexPolicyRule getIndexPolicyRule(Selector selector) throws WTException
selector
-
WTException
public Enumeration getIndexPolicyRules(AdminDomainRef domain_ref) throws WTException
domain_ref
-
WTException
public IndexPolicyRule removeIndexPolicyRule(Selector selector) throws WTException
selector
-
WTException
public Enumeration allIndexers() throws WTException
WTException
public void subscribe(com.objectspace.jgl.OrderedSet event_list) throws WTException
event_list
-
WTException
public void unsubscribe(com.objectspace.jgl.OrderedSet event_list) throws WTException
event_list
-
WTException
public Void testUpdateIndex(String oid, String collection_name) throws WTException, WTPropertyVetoException, IOException
oid
- collection_name
-
WTException
WTPropertyVetoException
IOException
public void testIndexToRware(String refString) throws WTException
refString
-
WTException
public void index(WTCollection targetCollection) throws WTException
targetCollection
. This is the method that is called
when an event occurs (e.g. check-in) that requires indexing to be
performed. It can also be called at any time to force indexing, although
this is not recommended practice. The recommended practice is to
allow the event listeners to index objects at the correct time, or
by running the BulkIndexTool.
targetCollection
- The targetCollection is the collection of objects that are going to be indexed based on an event or from the bulk index tool
WTException
public void removeIndex(WTCollection targetCollection) throws WTException
targetObject
from indexes. This is the method
that is called when an Indexable object is deleted. This method assumes
targetObject
has been deleted and should only be called
when that is the case. Otherwise, indexing and the indexing rules
will be inconsistent.
targetCollection
- The targetCollection is the collection of objects that are going to be removed from the indexes based on an event
WTException
public void index(Indexable targetObject) throws WTException
targetObject
. This is the method that is called
when an event occurs (e.g. check-in) that requires indexing to be
performed. It can also be called at any time to force indexing, although
this is not recommended practice. The recommended practice is to
allow the event listeners to index objects at the correct time.
targetObject
-
WTException
public void removeIndex(Indexable targetObject) throws WTException
targetObject
-
WTException
public IndexPolicyList getIndexPolicyList(Selector selector) throws WTException
selector
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |