|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.index.IndexPolicyManagerFwd
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: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
IndexPolicyManagerFwd()
|
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. |
private static Manager |
getManager()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public IndexPolicyManagerFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public void createIndexingRule(AdminDomainRef domain_ref, String type_id, String state_key, Vector collections) throws WTException
createIndexingRule
in interface IndexPolicyManager
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
deleteIndexingRule
in interface IndexPolicyManager
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
deleteIndexingRules
in interface IndexPolicyManager
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
updateIndexingRule
in interface IndexPolicyManager
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
updateIndexPolicyLists
in interface IndexPolicyManager
selector
-
WTException
public IndexPolicyRule addIndexPolicyRule(Selector selector) throws WTException
addIndexPolicyRule
in interface IndexPolicyManager
selector
-
WTException
public IndexPolicyRule getIndexPolicyRule(Selector selector) throws WTException
getIndexPolicyRule
in interface IndexPolicyManager
selector
-
WTException
public Enumeration getIndexPolicyRules(AdminDomainRef domain_ref) throws WTException
getIndexPolicyRules
in interface IndexPolicyManager
domain_ref
-
WTException
public IndexPolicyRule removeIndexPolicyRule(Selector selector) throws WTException
removeIndexPolicyRule
in interface IndexPolicyManager
selector
-
WTException
public Enumeration allIndexers() throws WTException
allIndexers
in interface IndexPolicyManager
WTException
public void subscribe(com.objectspace.jgl.OrderedSet event_list) throws WTException
subscribe
in interface IndexPolicyManager
event_list
-
WTException
public void unsubscribe(com.objectspace.jgl.OrderedSet event_list) throws WTException
unsubscribe
in interface IndexPolicyManager
event_list
-
WTException
public Void testUpdateIndex(String oid, String collection_name) throws WTException, WTPropertyVetoException, IOException
testUpdateIndex
in interface IndexPolicyManager
oid
- collection_name
-
WTException
WTPropertyVetoException
IOException
public void testIndexToRware(String refString) throws WTException
testIndexToRware
in interface IndexPolicyManager
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.
index
in interface IndexPolicyManager
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.
removeIndex
in interface IndexPolicyManager
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.
index
in interface IndexPolicyManager
targetObject
-
WTException
public void removeIndex(Indexable targetObject) throws WTException
removeIndex
in interface IndexPolicyManager
targetObject
-
WTException
public IndexPolicyList getIndexPolicyList(Selector selector) throws WTException
getIndexPolicyList
in interface IndexPolicyManager
selector
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |