|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.NamedCacheRef
com.starteam.Query
public final class Query
The Query class implements a query condition to be applied to items of a certain type. Query objects are used in conjunction with Filter objects for describing what items to display to the user and how to display them.
| Nested Class Summary | |
|---|---|
static class |
Query.Context
User context for evaluating the query |
static class |
Query.WebCacheQuery
Base accessor for cached SDK types encapsulating the statefulness of objects obtained from the artifact cache. |
| Constructor Summary | |
|---|---|
Query(ViewMember.Type type,
boolean bPublic,
java.lang.String name,
QueryNode node)
Create a new Query object for the specified type. |
|
| Method Summary | |
|---|---|
Query |
copy()
Creates a copy of this Query object. |
void |
delete()
Deletes this query from the repository. |
boolean |
equals(java.lang.Object another)
Returns true if the specified Object identifies the same
exact Query. |
boolean |
evaluate(Query.Context context,
ViewMember viewMember)
Evaluates the query on the given view member, based on the given user context. |
User |
getCreatedBy()
Return the user who created this query. |
DateTime |
getCreatedTime()
Return the created time of this query. |
java.lang.String |
getDebugString()
Returns a String with debug information about this query. |
int |
getID()
Return the internal ID of the Query. |
User |
getModifiedBy()
Return the user who last modified this query. |
DateTime |
getModifiedTime()
Return the last modified time of this query. |
java.lang.String |
getName()
Return the name of the query. |
User |
getOwnedBy()
Return the user who owns this 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 |
getPresentationID()
Returns the unique integer identifier for this query. |
Project[] |
getProjects()
return the set of projects associated with this query |
PropertyCollection |
getProperties()
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. |
ACE[] |
getRights()
Returns the Access Control List for this query. |
Server |
getServer()
return the Server instance for this Query |
Type |
getType()
Return the type for this query. |
int |
hashCode()
Returns a hash code for this Query. |
boolean |
hasPermissions(PermissionCollection 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(Query query)
Compares two Query objects. |
boolean |
isNew()
Returns true if this query is newly created and not yet saved in the repository. |
boolean |
isPublic()
Return true if the query is publicly visible. |
void |
makePublic()
Make this query public. |
void |
setName(java.lang.String name)
Sets the name of the query. |
void |
setProjects(Project[] pp)
Creates an association between a set of Projects and this query. |
void |
setQueryNode(QueryNode node)
Sets the boolean expression used to define this query. |
void |
setRights(ACE[] acl)
Modify the Access Control List for 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 Query(ViewMember.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 Query is to be publicly visible or not.name - the name of the Query object. Cannot be null.node - the boolean expression defining the query. Cannot be null.| Method Detail |
|---|
public Server getServer()
getServer in interface ISecurablepublic Project[] getProjects()
public void setProjects(Project[] pp)
pp - the set of projects to associate with this querypublic Query copy()
Query.isEqualTo(com.starteam.Query)public boolean isEqualTo(Query query)
query - The Query to be compared with this one.
Query.copy()public boolean isDirty()
public boolean isPublic()
public int getID()
getID in interface ISecurablepublic int getPresentationID()
public User getOwnedBy()
public User getCreatedBy()
public DateTime getCreatedTime()
public DateTime getModifiedTime()
public User getModifiedBy()
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 PropertyCollection getProperties()
public boolean isNew()
public boolean isDeleted()
isDeleted in interface ISecurablepublic void update()
public void delete()
public ACE[] getRights()
getRights in interface ISecurableAccessRightsManager.getRights(ISecurable)public void setRights(ACE[] acl)
setRights in interface ISecurableacl - the new access control list or null if to be dropped.ACEpublic boolean hasPermissions(PermissionCollection permissions)
hasPermissions in interface ISecurablepermissions - the desired permissions
Permissionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDebugString()
public boolean evaluate(Query.Context context,
ViewMember viewMember)
context - user context to be usedviewMember - given view member
public ISecurableContainer getParentContainer()
getParentContainer in interface ISecurableISecurableContainerpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object another)
Object identifies the same
exact Query.
equals in class java.lang.Objectanother - the object to be compared to for equality
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||