|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.beans.LibraryObject | +--oracle.ifs.beans.TieLibraryObject | +--oracle.ifs.beans.PublicObject | +--oracle.ifs.beans.TiePublicObject | +--oracle.ifs.beans.SearchObject
The SearchObject class provides a facility to store searches persistently across sessions. A SearchObject is a serialized version of the SearchSpecification that is saved in iFS.
An example when using a SearchObject would applicable would be modeling a "Search Folder". This search is defined by the user and should be executed each time the user "clicks" on the "folder". The search is dymamic so the user can modify it at any time, but also needs to be persist across sessions.
Another example when to use a SearchObject is if a search is very complex to build each time. It can be saved as a SearchObject avoiding the task of rebuilding it.
Since SearchObjects are PublicObjects, any action performed on a PublicObject can be also be performed on a SearchObject. They can be foldered, versioned, and be secured by an AccessControlList (ACL).
Field Summary | |
static java.lang.String |
CLASS_NAME
This class name for this class. |
static java.lang.String |
SEARCHCONTENT_ATTRIBUTE
The serialized form of a search used for persistent storage is stored in this attribute. |
Method Summary | |
Search |
getSearch()
Returns a Search from the SearchObject. |
SearchSpecification |
getSearchSpecification()
Returns the SearchSpecification. |
void |
handleEvent(IfsEvent event)
Handles the specified event. |
void |
setSearchSpecification(SearchSpecification spec)
Sets the search specification for the SearchObject. |
Methods inherited from class oracle.ifs.beans.LibraryObject |
equals, free, free, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getClassId, getClassObject, getDefinition, getId, getLabel, getName, getSession, invokeServerMethod, isInstanceOf, isTraced, lookupInstanceLabel, postEvent, postEvent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setName, toString, trace, update |
Methods inherited from interface oracle.ifs.common.LibraryObjectInterface |
getId |
Methods inherited from interface oracle.ifs.common.Traceable |
getTraceLogger, isTraced, trace |
Field Detail |
public static final java.lang.String CLASS_NAME
public static final java.lang.String SEARCHCONTENT_ATTRIBUTE
Method Detail |
public void setSearchSpecification(SearchSpecification spec) throws IfsException
IfsException
- if the operation failspublic SearchSpecification getSearchSpecification() throws IfsException
IfsException
- if retrival fails.public Search getSearch() throws IfsException
Search.getSearchSpecification()
only
when needed. The Search execution
will work without the SearchSpecification being transported to the beans side.IfsException
- if Search Object creation failspublic void handleEvent(IfsEvent event) throws IfsException
handleEvent
in class PublicObject
event
- the eventIfsException
- if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |