|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.LiveObject.WebCacheLiveObject
com.starteam.Project.WebCacheProject
public static class Project.WebCacheProject
Project accessor for cached SDK projects contained objects are obtained from the artifact cache
| Method Summary | |
|---|---|
void |
addViewListener(WebCacheViewListener listener)
Add a listener for WebCacheView events Listeners are supported on the tip cache only, since rolled back caches do not change over time |
static Project.WebCacheProject |
create(ArtifactCacheManager.Context cntxt,
java.lang.String name,
java.lang.String defaultFolder)
Creates a Project on the server. |
View.WebCacheView |
findView(int viewID)
return an accessible view on this project or NULL Note that the view will be accessible to the user in this session context and that this view may not have been cached by the ArtifactCache If it is however, the cached view is returned in preference to the unacached one |
View.WebCacheView |
findView(java.lang.String name)
return an accessible view on this project or NULL Note that the view will be accessible to the user in this session context and that this view may not have been cached by the ArtifactCache If it is however, the cached view is returned in preference to the unacached one |
EnumeratedValue[] |
getAllowedStates(EnumeratedProperty.WebCacheEnumeratedProperty prprty)
Return the subset of enumerated values that are visible for the specified Enumerated property in the context of this project. |
View.WebCacheView |
getDefaultView()
Gets the default View for this Project. |
java.lang.String |
getDescription()
Returns the description of this project. |
boolean |
getExpandKeywords()
Returns true if keywords are expanded when files are checked out. |
Filter.WebCacheFilter[] |
getFilters(Type.WebCacheType wct)
returns the set of filters associated with this project |
Group.WebCacheGroup[] |
getGroups(PermissionCollection permissions)
Return the set of Groups that have access rights to this project as defined by the specified permissions |
Project.Methodology |
getMethodology()
Returns the development methodology used for this Project (Supported methodologies include Agile, Kanban, Waterfall, Migration). |
java.lang.String |
getName()
Returns the name of this project. |
int |
getPresentationID()
Returns the unique integer identifier for this resource. |
Query.WebCacheQuery[] |
getQueries(Type.WebCacheType wct)
returns the set of queries associated with this project |
ACE.WebCacheACE[] |
getRights()
Return the access rights assigned to this project |
ACE.WebCacheACE[] |
getRights(Type.WebCacheType typ)
Query this project for the access rights assigned to the specified type |
Project.Status |
getStatus()
Returns the status (Active, Parked, etc.) of this Project. |
Task.Status[] |
getStatus(Story.Status sts)
Return the subset of Task Status values that match the specified Story Status for this project. |
Trace.WebCacheTrace[] |
getTraces()
Returns the set of Traces mapping this Project to other artifacts for InfoStreams (or other purposes) |
EnumeratedValue[] |
getUDAGroupings(Requirement.RequirementType typ)
Return the subset of Requirement UDA Grouping values that match the specified Requirement Type for this project. |
View.WebCacheView[] |
getViews()
Returns the subset of views (from the specific project) that are accessible by this User The returned view context is that of the managed server connection of the tip cache However, the returned views may or may not be cached in the tip cache. |
Property.WebCacheProperty[] |
getVisibleProperties(EnumeratedValue value)
Return the subset of properties that are visible in the context of the specified Enumerated Value |
boolean |
hasSavedStatus(Story.Status sts)
Returns true if an explicit Story Status mapped to a Task Status (or set) has been saved for this project Note that if a status mapping is not saved to the server, the getStatus() api returns a default mapping |
boolean |
isCached(int viewID)
Returns true if the view has been cached in the ArtifactCache and is visible in this user context. |
boolean |
isDeleted()
Determines whether or not this project has been deleted from the server. |
void |
setAllowedState(EnumeratedValue value,
boolean isAllowed)
Set an enumerated value of a given property as an allowed or legal state for this project. |
void |
setDescription(java.lang.String description)
Set the description for this project |
void |
setMethodology(Project.Methodology methodology)
Sets the development methodology for this project. |
void |
setName(java.lang.String name)
set the name of the project |
void |
setRights(ACE.WebCacheACE[] aces)
Assign the specified access rights to this project |
void |
setRights(Type.WebCacheType typ,
ACE.WebCacheACE[] aces)
Assign the specified access rights to this project contained type |
void |
setStatus(Project.Status status)
Sets the status of this project. |
void |
setStatus(Story.Status rfrnc,
Task.Status[] mppdSts)
Map a subset of Task Status values to specific Story States for the given project. |
void |
setUDAGroupings(Requirement.RequirementType typ,
EnumeratedValue[] udas)
Map a subset of UDA Grouping values to specific Requirement Types for the given project. |
void |
setVisibleProperties(EnumeratedValue value,
Property.WebCacheProperty[] properties)
Define a subset of properties of a given type that are marked visible |
| Methods inherited from class com.starteam.LiveObject.WebCacheLiveObject |
|---|
addTo, equals, getContext, getCreatedBy, getCreatedTime, getDisplayName, getID, getObjectID, getServer, getType, getValue, getValue, hashCode, hasValue, isDirty, isNew, refresh, remove, removeFrom, setValue, setValue, toStarTeamURL, update |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Project.WebCacheProject create(ArtifactCacheManager.Context cntxt,
java.lang.String name,
java.lang.String defaultFolder)
Project on the server.
This project must be saved by assigning the various properties and then calling
update() on the WebCacheProject object
Project creation is not transactable
cntxt - the ArtifactCacheManager User Session Contextname - the name of the Project.defaultFolder - the default folder on disk that the Project maps to
Project.WebCacheProject, wrapping a new Projectpublic boolean getExpandKeywords()
Project.getKeywordExpansionFileExtensions()public void setRights(ACE.WebCacheACE[] aces)
aces - the rightspublic ACE.WebCacheACE[] getRights()
public void setRights(Type.WebCacheType typ,
ACE.WebCacheACE[] aces)
typ - the type to assign rights foraces - the rightspublic ACE.WebCacheACE[] getRights(Type.WebCacheType typ)
typ - the contained type
public View.WebCacheView getDefaultView()
public View.WebCacheView[] getViews()
public java.lang.String getName()
LiveObject.Type.NameProperty.NAMEpublic int getPresentationID()
public void setName(java.lang.String name)
name - set the name of the projectpublic java.lang.String getDescription()
public boolean isDeleted()
public void setDescription(java.lang.String description)
description - for this projectpublic Project.Status getStatus()
Project.Status,
Project.Type.StatusProperty,
Project.Type.PropertyCollection.STATUSpublic Trace.WebCacheTrace[] getTraces()
public void setStatus(Project.Status status)
status - The new status value for this project.public Project.Methodology getMethodology()
Project.Methodology,
Project.Type.MethodologyProperty,
Project.Type.PropertyCollection.METHODOLOGYpublic void setMethodology(Project.Methodology methodology)
methodology - The new methodology for this project.public EnumeratedValue[] getAllowedStates(EnumeratedProperty.WebCacheEnumeratedProperty prprty)
prprty - the property whose allowed states are of interest
EnumeratedProperty.WebCacheEnumeratedProperty.getAllValues()
public void setAllowedState(EnumeratedValue value,
boolean isAllowed)
value - the selected valueisAllowed - true to turn this state on, false to turn it offpublic Task.Status[] getStatus(Story.Status sts)
sts - the story status to test
public boolean hasSavedStatus(Story.Status sts)
sts - the status to test for in this project context
Project.WebCacheProject.getStatus(com.starteam.Story.Status)
public void setStatus(Story.Status rfrnc,
Task.Status[] mppdSts)
rfrnc - the reference Story Status to be mappedmppdSts - the Task States to map it to.public EnumeratedValue[] getUDAGroupings(Requirement.RequirementType typ)
typ - the requirement type to test
public void setUDAGroupings(Requirement.RequirementType typ,
EnumeratedValue[] udas)
typ - the requirement type to be mappedudas - the set of UDA Groupingspublic Property.WebCacheProperty[] getVisibleProperties(EnumeratedValue value)
value - an Enumerated Value for a specific Enumerated Property of a chosen type
public void setVisibleProperties(EnumeratedValue value,
Property.WebCacheProperty[] properties)
value - an Enumerated Value for a specific Enumerated Property of a chosen typeproperties - the set of properties marked visible in the context of the specified enumpublic View.WebCacheView findView(int viewID)
viewID - the id of the view
public View.WebCacheView findView(java.lang.String name)
name - the name of the view
public boolean isCached(int viewID)
viewID - the view to check for
public Group.WebCacheGroup[] getGroups(PermissionCollection permissions)
permissions - the permissions needing to be satisfied
public void addViewListener(WebCacheViewListener listener)
listener - a listener for WebCacheView eventspublic Filter.WebCacheFilter[] getFilters(Type.WebCacheType wct)
wct - the type whose filters are desired
public Query.WebCacheQuery[] getQueries(Type.WebCacheType wct)
wct - the type whose queries are desired
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||