|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.starteam.CacheRef
|
+--com.starbase.starteam.NamedCacheRef
|
+--com.starbase.starteam.QueryInfo
The QueryInfo class implements a query condition to be applied to items of a certain type. QueryInfo objects are used in conjunction with Filter objects for describing what items to display to the user and how to display them.
| Constructor Summary | |
QueryInfo(Type type,
boolean bPublic,
java.lang.String name,
QueryNode node)
Create a new QueryInfo object for the specified type. |
|
| Method Summary | |
QueryInfo |
copy()
Creates a copy of this QueryInfo object. |
void |
delete()
Deletes this query from the repository. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
boolean |
evaluate(Item item)
Evaluate this QueryPart with respect to the specified item. |
AclEntry[] |
getACL()
Returns the Access Control List for this query. |
int |
getID()
Return the internal ID of the QueryInfo. |
java.lang.String |
getName()
Return the name of the query. |
ISecurableContainer |
getParentContainer()
If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container. |
int[] |
getPropertyIDs()
Returns the property IDs used by any of the QueryNode and QueryPart objects comprising this query. |
QueryNode |
getQueryNode()
Return the boolean expression defining this query. |
Type |
getType()
Return the type for this query. |
int |
getUserID()
Return the user ID for the user who created this query. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
hasPermission(int permissions)
Returns true if desired permissions are granted for this query. |
boolean |
isDeleted()
Returns true if this query has been deleted. |
boolean |
isDirty()
Returns true if the query has unsaved modifications. |
boolean |
isEqualTo(QueryInfo query)
Compares two QueryInfo objects. |
boolean |
isNew()
Returns true if this query is newly created and not yet saved in the repository. |
boolean |
isPublic()
Return true if the filter is publicly visible. |
void |
makePublic()
|
void |
setACL(AclEntry[] acl)
Modify the Access Control List for this query. |
void |
setName(java.lang.String name)
Sets the name of the query. |
void |
setQueryNode(QueryNode node)
Sets the boolean expression used to define this query. |
java.lang.String |
toDebugString()
Returns a String with debug information about this query. |
java.lang.String |
toString()
Returns the name of the query. |
void |
update()
Store this query in the repository. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueryInfo(Type type,
boolean bPublic,
java.lang.String name,
QueryNode node)
type - the Item type to which this query can be applied.
Cannot be null.bPublic - true if the QueryInfo is to be publicly visible or not.name - the name of the QueryInfo object. Cannot be null.node - the boolean expression defining the query. Cannot be null.| Method Detail |
public QueryInfo copy()
QueryInfo.isEqualTo(com.starbase.starteam.QueryInfo)public boolean isEqualTo(QueryInfo query)
query - The QueryInfo to be compared with this one.
QueryInfo.copy()public boolean isDirty()
public boolean isPublic()
public int getID()
public int getUserID()
public Type getType()
getType in interface ISecurableISecurable.getParentContainer(),
Typepublic void makePublic()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name to be given to this querypublic QueryNode getQueryNode()
public void setQueryNode(QueryNode node)
node - the new expression to define this query. Cannot be null.public int[] getPropertyIDs()
public boolean isNew()
public boolean isDeleted()
public void update()
public void delete()
public AclEntry[] getACL()
getACL in interface ISecurableAclEntrypublic void setACL(AclEntry[] acl)
setACL in interface ISecurableacl - the new access control list or null if to be dropped.AclEntrypublic boolean hasPermission(int permissions)
hasPermission in interface ISecurablepermissions - the desired permissions
Permissionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toDebugString()
public boolean evaluate(Item item)
item - the item whose specified property value to test against
public ISecurableContainer getParentContainer()
getParentContainer in interface ISecurableISecurableContainerpublic boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||