|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.LiveObject.WebCacheLiveObject
com.starteam.View.WebCacheView
public static class View.WebCacheView
View accessor for cached SDK views contained objects are obtained from the artifact cache
| Method Summary | |
|---|---|
void |
addLabelListener(WebCacheLabelListener listener)
Add a listener for WebCacheLabel events Listeners are supported on the tip cache only, since rolled back caches do not change over time |
void |
addViewMemberListener(WebCacheViewMemberListener listener,
ViewMember.Type.WebCacheViewMemberType typ)
Add a listener for WebCacheViewMember events Listeners are supported on the tip cache only, since rolled back caches do not change over time |
static View.WebCacheView |
create(ArtifactCacheManager.Context cntxt,
View.WebCacheView parent,
java.lang.String viewName,
java.lang.String viewDescription,
Folder.WebCacheFolder root,
ViewConfiguration baseConfig)
Creates a View on the server. |
CheckinManager.WebCacheCheckinManager |
createCheckinManager()
Create and return a CheckinManager |
CheckoutManager.WebCacheCheckoutManager |
createCheckoutManager()
Constructs a CheckoutManager |
Label.WebCacheLabel |
findLabel(int labelID)
Returns a label in this view or NULL |
ViewMember.WebCacheViewMember |
findViewMember(ViewMember.Type.WebCacheViewMemberType typ,
int vmid)
returns a view member identified by it's ID, if visible to the specified user. |
Label.WebCacheLabel[] |
getActiveLabels()
Returns all the active (non-deleted) labels for this view. |
ViewMember.Type.WebCacheViewMemberType[] |
getCachedTypes()
Returns the set of types cached in the ArtifactCache in the context of a given view The returned Type context is that of the managed server connection |
ViewConfiguration |
getConfiguration()
Returns this view's configuration. |
java.lang.String |
getDefaultPath()
Returns the default working file path to be used for this view. |
View.WebCacheView[] |
getDerivedViews()
Returns the set of views derived from this one. |
java.lang.String |
getDescription()
Returns the description of this view. |
DateTime |
getEndDate()
Return the end date of this view. |
java.lang.String |
getFullName()
Returns the full hierarchical name of this view--that is, the concatenation of the root view and each descendant to this view. |
Label.WebCacheLabel[] |
getLabels()
Returns the labels that exist in this view, including both active and deleted labels. |
DateTime |
getLastUsedAt()
Returns the time at which this view was last used |
java.lang.String |
getName()
Returns the name of this view. |
View.WebCacheView |
getParentView()
Returns the parent of this view. |
int |
getPresentationID()
Returns the unique integer identifier for this resource. |
Project.WebCacheProject |
getProject()
Returns the project to which this view belongs. |
ACE.WebCacheACE[] |
getRights()
Return the access rights assigned to this view |
ACE.WebCacheACE[] |
getRights(Type.WebCacheType typ)
Query this view for the access rights assigned to the specified type |
Folder.WebCacheFolder |
getRootFolder()
Gets the root folder of this view. |
DateTime |
getStartDate()
Return the start date of this view. |
ViewMember.WebCacheViewMember[] |
getViewMembers(ViewMember.Type.WebCacheViewMemberType typ,
Filter.WebCacheFilter fltr)
Returns a set of ViewMembers visible to the specified user, from the entire set of available view members for the type The returned ViewMembers are pure 'data objects' without a Server Connection i.e. |
View.ViewType |
getViewType()
Gets the type (Unknown, Main, Sandbox, Release) of this View. |
Workflow.WebCacheWorkflow |
getWorkflow(ViewMember.Type.WebCacheViewMemberType typ)
Returns the type specific workflow definition for this view, if any If a workflow has not been defined for the view, but a project wide workflow has been defined for the type, the project workflow is returned If a project wide workflow has not been defined then the server wide workflow for the type is returned. |
boolean |
isBranch()
Return true if this view is a Branch view. |
boolean |
isBranchAll()
Return true if this view's original branching default was set "All". |
boolean |
isBranchNone()
Return true if this view's original branching default was set "None". |
boolean |
isBranchOnShare()
Returns true if this view is set to branch shared items. |
boolean |
isDeleted()
Determines whether or not this view has been deleted from the server. |
boolean |
isNonDerived()
Return true if this view is a Non-Derived view. |
boolean |
isReadOnly()
Return true if this is a ReadOnly view, otherwise false. |
boolean |
isReference()
Return true if this is a reference view, otherwise false. |
boolean |
isRoot()
Return true if this view is a Root view. |
void |
setDefaultPath(java.lang.String path)
Sets the default working file path to be used for this view. |
void |
setDescription(java.lang.String description)
Sets the description for this view. |
void |
setEndDate(DateTime endDate)
Sets the end date of this view. |
void |
setName(java.lang.String name)
Set the name of this view. |
void |
setRights(ACE.WebCacheACE[] aces)
Assign the specified access rights to this view |
void |
setRights(Type.WebCacheType typ,
ACE.WebCacheACE[] aces)
Assign the specified access rights to this view contained type |
void |
setStartDate(DateTime startDate)
Sets the start date of this view. |
void |
setViewType(View.ViewType type)
Sets the type of this View. |
void |
shareItems(Item.Type.WebCacheItemType typ)
Share items of the specified type on view creation. |
void |
update()
Save this LiveObject to the Repository If the underlying SDK object is new, create it Otherwise, if it has changed, update it This is an atomic operation, not executed in a transaction |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static View.WebCacheView create(ArtifactCacheManager.Context cntxt,
View.WebCacheView parent,
java.lang.String viewName,
java.lang.String viewDescription,
Folder.WebCacheFolder root,
ViewConfiguration baseConfig)
View on the server.
This view must be saved by assigning additional properties and then calling
update() on the WebCacheView object
The newly created view starts out with no item types shared
Note however that the server automatically shares folders by default
cntxt - the ArtifactCacheManager User Session Contextparent - the parent view of this view.viewName - the name of the new viewviewDescription - the description of the new viewroot - the root folder of the new viewbaseConfig - the base configuration for the new view
View.WebCacheView, wrapping a new Viewto share items of a specific type on view creation
View creation is not transactablepublic Workflow.WebCacheWorkflow getWorkflow(ViewMember.Type.WebCacheViewMemberType typ)
typ - the type for which a specific workflow may have been defined
public DateTime getLastUsedAt()
public void shareItems(Item.Type.WebCacheItemType typ)
typ - the type whose items will be shared into the viewpublic CheckoutManager.WebCacheCheckoutManager createCheckoutManager()
public void update()
LiveObject.WebCacheLiveObject
update in class LiveObject.WebCacheLiveObjectfor transacted operationspublic Project.WebCacheProject getProject()
public Label.WebCacheLabel[] getLabels()
View.refreshLabels(),
View.WebCacheView.getActiveLabels()public Label.WebCacheLabel[] getActiveLabels()
View.refreshActiveLabels(),
View.WebCacheView.getLabels()public Label.WebCacheLabel findLabel(int labelID)
labelID - the ID of the label
public View.WebCacheView[] getDerivedViews()
public View.WebCacheView getParentView()
public Folder.WebCacheFolder getRootFolder()
ArtifactCache.cacheViewMembers(com.starteam.ViewMember.Type.WebCacheViewMemberType[])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 ViewMember.WebCacheViewMember findViewMember(ViewMember.Type.WebCacheViewMemberType typ,
int vmid)
typ - the type of view membervmid - the system wide unique integer ID describing a view member
public int getPresentationID()
public ViewMember.WebCacheViewMember[] getViewMembers(ViewMember.Type.WebCacheViewMemberType typ,
Filter.WebCacheFilter fltr)
typ - The type of artifact to be retrievedfltr - A filter which defines the constraints to be applied,
including the query to be evaluated, sorting and grouping
the returned ViewMembers, may be NULL
public java.lang.String getFullName()
public boolean isDeleted()
public boolean isReference()
public boolean isReadOnly()
public boolean isRoot()
public boolean isBranch()
public boolean isNonDerived()
public boolean isBranchAll()
public boolean isBranchNone()
public boolean isBranchOnShare()
public java.lang.String getName()
public void setName(java.lang.String name)
name - - the name of this view.public DateTime getStartDate()
View.Type.StartDatePropertypublic void setStartDate(DateTime startDate)
startDate - start Date of this view.View.Type.StartDatePropertypublic DateTime getEndDate()
View.Type.EndDatePropertypublic void setEndDate(DateTime endDate)
endDate - end date of this view.View.Type.EndDatePropertypublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description for this viewpublic CheckinManager.WebCacheCheckinManager createCheckinManager()
public void setViewType(View.ViewType type)
type - The new type value for this viewpublic View.ViewType getViewType()
View.ViewType,
View.Type.TypeProperty,
View.Type.PropertyCollection.TYPEpublic ViewMember.Type.WebCacheViewMemberType[] getCachedTypes()
public ViewConfiguration getConfiguration()
public void addViewMemberListener(WebCacheViewMemberListener listener,
ViewMember.Type.WebCacheViewMemberType typ)
listener - a listener for WebCacheViewMember eventstyp - the type for which events are registeredpublic void addLabelListener(WebCacheLabelListener listener)
listener - a listener for WebCacheLabel eventspublic void setDefaultPath(java.lang.String path)
path - the new default pathpublic java.lang.String getDefaultPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||