|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.Query.WebCacheQuery
public static class Query.WebCacheQuery
Base accessor for cached SDK types encapsulating the statefulness of objects obtained from the artifact cache.
| Method Summary | |
|---|---|
static Query.WebCacheQuery |
create(ArtifactCacheManager.Context cntxt,
ViewMember.Type.WebCacheViewMemberType type,
boolean isPublic,
java.lang.String name,
QueryNode.WebCacheQueryNode node)
Create a new Query |
boolean |
equals(java.lang.Object o)
Test this object for equality with another |
boolean |
evaluate(ViewMember.WebCacheViewMember vm)
Evaluates the query on the given view member, based on the underlying user context. |
ArtifactCacheManager.Context |
getContext()
Returns the context of this object. |
User.WebCacheUser |
getCreatedBy()
Return the user who created this query. |
DateTime |
getCreatedTime()
Return the created time of this query. |
int |
getID()
Returns the internal ID of the filter. |
User.WebCacheUser |
getModifiedBy()
Return the user who last modified this query. |
DateTime |
getModifiedTime()
Return the last modified time of this query. |
java.lang.String |
getName()
Returns the display name of the query. |
User.WebCacheUser |
getOwnedBy()
Return the user who owns this query, Return null if it is a public query. |
int |
getPresentationID()
Returns the unique integer identifier for this query. |
Project.WebCacheProject[] |
getProjects()
Return the projects (associated with this query) visible in the current user context |
Property.WebCacheProperty[] |
getProperties()
Returns the property IDs used by any of the QueryNode and QueryPart objects comprising this query. |
QueryNode.WebCacheQueryNode |
getQueryNode()
Return the boolean expression defining this query. |
ACE.WebCacheACE[] |
getRights()
Return the access rights assigned to this query |
Type.WebCacheType |
getType()
Return the type for this query. |
int |
hashCode()
Return a hash code for this object |
boolean |
isDeleted()
Returns true if this query has been deleted |
boolean |
isDirty()
Return true if this object is dirty |
boolean |
isPublic()
Return true if the query is publicly visible. |
void |
makePublic()
Make this query public. |
void |
remove()
Remove this Query from the repository This is an atomic operation, and cannot be executed in a transaction |
void |
setName(java.lang.String name)
Sets the name of the query. |
void |
setProjects(Project.WebCacheProject[] pp)
Creates an association between a set of Projects and this query. |
void |
setQueryNode(QueryNode.WebCacheQueryNode node)
Sets the boolean expression used to define this query. |
void |
setRights(ACE.WebCacheACE[] aces)
Assign the specified access rights to this query |
java.lang.String |
toStarTeamURL()
Resolves this StarTeam resource to a corresponding URL using an ID based scheme |
void |
update()
Save this dirty Filter to the Repository This is an atomic operation, not executed in a transaction |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Query.WebCacheQuery create(ArtifactCacheManager.Context cntxt,
ViewMember.Type.WebCacheViewMemberType type,
boolean isPublic,
java.lang.String name,
QueryNode.WebCacheQueryNode node)
cntxt - the User Web Session Contexttype - the supporting type for the queryname - the query nameisPublic - true for a public querynode - the QueryNode tree representing the parts of the query
public ArtifactCacheManager.Context getContext()
public boolean isDirty()
public boolean isDeleted()
public boolean evaluate(ViewMember.WebCacheViewMember vm)
viewMember - the view member to evaluate for inclusion by the query
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name to be given to this querypublic boolean isPublic()
public void makePublic()
public java.lang.String toStarTeamURL()
public void update()
public int getID()
public int getPresentationID()
public Type.WebCacheType getType()
public Property.WebCacheProperty[] getProperties()
public void remove()
public void setRights(ACE.WebCacheACE[] aces)
aces - the rights to be assignedpublic ACE.WebCacheACE[] getRights()
public QueryNode.WebCacheQueryNode getQueryNode()
public void setQueryNode(QueryNode.WebCacheQueryNode node)
node - the new expression to define this query. Cannot be null.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to test againstpublic int hashCode()
hashCode in class java.lang.Objectpublic DateTime getCreatedTime()
public DateTime getModifiedTime()
public User.WebCacheUser getModifiedBy()
public User.WebCacheUser getCreatedBy()
public User.WebCacheUser getOwnedBy()
public Project.WebCacheProject[] getProjects()
public void setProjects(Project.WebCacheProject[] pp)
pp - the set of projects to associate with this query
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||