|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.AdminQuery
public class AdminQuery
Used to extract administrative objects.
The objects are filtered by (target) type , name and modification date
Results may contains extended informations for the extracted objects or simply the object name list
Constructor Summary | |
---|---|
AdminQuery()
Define an administrative object query; the target object type must be set before the query execution |
|
AdminQuery(java.lang.Class<?> objType)
Define a query for the target (administrative) object type |
|
AdminQuery(java.lang.Class<?> objType,
java.lang.String userName)
Define a query for the target (administrative) object type associated to Users |
|
AdminQuery(java.lang.String objType)
Define a query for the target (administrative) object type |
|
AdminQuery(java.lang.String objType,
java.lang.String userName)
Define a query for the target (administrative) object type associated to Users |
Method Summary | |
---|---|
void |
addPattern(java.lang.String pattern)
Add a name filter pattern |
void |
execute(java.io.DataOutputStream outStream,
Framework framework)
Execute a query for administrative objects; uses the previously settled Selector |
void |
execute(Framework framework)
Execute a query for administrative objects; uses the previously settled Selector the result is stored into the target object instance |
void |
execute(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
Execute a query for administrative objects |
java.lang.String |
getApplicationPattern()
Get the application pattern to filter administrative objects |
static java.lang.Class<?> |
getClassForType(java.lang.String typeName)
Convert the administration type to the related class |
FieldRange |
getDateRange()
Get the settled date range to filter administrative object by the modification date |
static AdminBase |
getObjectForType(java.lang.String typeName)
Convert the administration type the related class object |
java.util.Vector<java.lang.String> |
getPatterns()
Get the settled patterns to filter the object names |
java.lang.Class<?> |
getTargetType()
Get the target object type for the query |
boolean |
getTopFilter()
Get the top filter |
java.lang.String |
getUser()
Get the settled User filter |
void |
setApplicationPattern(java.lang.String pattern)
Set the application pattern to filter administrative objects |
void |
setDateRange(FieldRange dateRange)
Set the date range to filter administrative object by the modification date |
void |
setPatterns(java.util.Vector<java.lang.String> patterns)
Set the filter patterns for object names |
void |
setSelector(Selector selector)
Set the query selection parameters used to extract additional information from the retrieved objects |
void |
setTargetType(java.lang.Class<?> objType)
Define the target (administrative) object type for the query |
void |
setTopFilter(boolean top)
Set the top filter: when true extracts only the elements without parents (super is empty) |
void |
setUser(java.lang.String userName)
Set the User filter for administrative objects associated to Users (like ObjectGroup s, View s etc.) |
java.lang.String |
toString()
Return the administrative query properties as a single String |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AdminQuery()
setTargetType(java.lang.Class>)
public AdminQuery(java.lang.String objType) throws java.lang.ClassNotFoundException
objType
- target object class (example: "field" )
java.lang.ClassNotFoundException
public AdminQuery(java.lang.Class<?> objType)
objType
- target object class (example: Field.class )public AdminQuery(java.lang.Class<?> objType, java.lang.String userName)
objType
- target object class (example: Field.class )userName
- User
filter (default: uses the framework User)public AdminQuery(java.lang.String objType, java.lang.String userName) throws java.lang.ClassNotFoundException
objType
- target object class (example: "field" )userName
- User
filter (default: uses the framework User)
java.lang.ClassNotFoundException
Method Detail |
---|
public static java.lang.Class<?> getClassForType(java.lang.String typeName) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public static AdminBase getObjectForType(java.lang.String typeName) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public void execute(java.io.DataOutputStream outStream, Framework framework) throws java.io.IOException, OberonException
Selector
outStream
- the stream for the results (if null the result is stored into the framework)framework
- the current framework
java.io.IOException
- when the output stream return an exception
OberonException
- for all other problemsFramework.getResult()
public void execute(Selector selector, java.io.DataOutputStream outStream, Framework framework) throws java.io.IOException, OberonException
selector
- query selection parameters (if null return the found object list)outStream
- the stream for the results (if null the result is stored into the framework)framework
- the current framework
java.io.IOException
- when the output stream return an exception
OberonException
- for all other problemsFramework.getResult()
public void execute(Framework framework) throws java.io.IOException, OberonException
Selector
framework
- the current framework
java.io.IOException
- when the output stream return an exception
OberonException
- for all other problemsFramework.getResult()
public void setUser(java.lang.String userName)
ObjectGroup
s, View
s etc.)
userName
- the User
name filterpublic java.lang.String getUser()
User
name filterpublic void setSelector(Selector selector)
selector
- query selection parameterspublic void addPattern(java.lang.String pattern)
pattern
- applied to select over object names (can contain wildcards '*' [0/N chars] and '?' [1 char])public void setPatterns(java.util.Vector<java.lang.String> patterns)
patterns
- Vector of pattern StringsaddPattern(java.lang.String)
public java.util.Vector<java.lang.String> getPatterns()
public void setDateRange(FieldRange dateRange)
dateRange
- range of datespublic FieldRange getDateRange()
public void setApplicationPattern(java.lang.String pattern)
pattern
- application patternpublic java.lang.String getApplicationPattern()
public void setTopFilter(boolean top)
public boolean getTopFilter()
public void setTargetType(java.lang.Class<?> objType)
objType
- target object class (example: Field.class )public java.lang.Class<?> getTargetType()
public java.lang.String toString()
toString
in class java.lang.Object
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |