|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.CacheRef
com.starteam.TypedResource
com.starteam.LiveObject
com.starteam.View
com.starteam.viewcomparemerge.MergePreview
public final class MergePreview
Description: A MergePreview is a read-only reference View with additional properties, and some local, context specific overrides
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.starteam.View |
|---|
View.Type, View.ViewType, View.WebCacheView |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
Label |
cloneRevisionLabel(Label source,
java.lang.String name,
java.lang.String description,
boolean frozen)
Clones the specified "Revision" label. |
Label |
cloneViewLabel(Label source,
java.lang.String name,
java.lang.String description,
boolean buildLabel,
boolean frozen)
Clones the specified "View" label. |
void |
close()
Frees all cached resources associated with this view, and closes the associated view session. |
View |
copy()
Creates a copy of this View object, with view properties fully populated. |
CheckinManager |
createCheckinManager()
Constructs a CheckinManager with default options for this view. |
CheckinManager |
createCheckinManager(CheckinOptions options)
Constructs a CheckinManager using a specific set of options. |
CheckoutManager |
createCheckoutManager()
Constructs a CheckoutManager with default options for this view. |
CheckoutManager |
createCheckoutManager(CheckoutOptions options)
Constructs a CheckoutManager using a specific set of options. |
Label |
createRevisionLabel(java.lang.String name,
java.lang.String description,
boolean frozen)
Create a new "Revision" label with the specified properties. |
Label |
createViewLabel(java.lang.String name,
java.lang.String description,
DateTime time,
boolean buildLabel,
boolean frozen)
Create a new "View" label with the specified properties. |
void |
discard()
Discards all of the cached properties for this view. |
void |
discardActiveLabels()
Discard any cached active (non-deleted) labels. |
void |
discardFolders()
This implementation of refreshFolders does not affect the VCMFolder tree directly. |
Label[] |
fetchAllLabels()
Returns all the active (non-deleted) labels for this view. |
Label[] |
fetchAllLabels(View view)
Returns all the active (non-deleted) labels for the given project and view. |
Label[] |
getActiveLabels()
Returns all the active (non-deleted) labels for this view. |
ViewConfiguration |
getBaseConfiguration()
Returns the ViewConfiguration from which this View was derived. |
ViewConfiguration |
getConfiguration()
Returns this view's configuration. |
Item |
getDisembodiedItem(Item.Type type,
int itemID)
Retrieves an Item by Item ID. |
ViewMember |
getDisembodiedViewMember(ViewMember.Type type,
int itemID)
Retrieves a ViewMember by VMID. |
FileBasedStatusManager |
getFileStatusManager()
Get the FileBasedStatusManager that manages file status information for this View. |
java.lang.String |
getFullName()
Returns the full hierarchical name of this view--that is, the concatentation of the root view and each descendent to this view. |
boolean |
getHaveAccessRights()
Always returns true. |
Label[] |
getLabels()
Returns the labels that exist in this view, including both active and deleted labels. |
View |
getParentView()
Always returns null. |
Project |
getProject()
Returns the project to which this view belongs. |
PromotionModel |
getPromotionModel()
Returns the promotion model associated with this view. |
ACE[] |
getRights()
Always returns an empty ACE array. |
ACE[] |
getRights(Type type)
Always returns null |
Folder |
getRootFolder()
Gets the root folder of this view. |
Session |
getSession()
return the Session that this view belongs to |
StatusMethod |
getStatusMethodOverride()
Returns the status method used to determine status for files in this view. |
java.lang.Object |
getValue(Property property)
Return the value for the specified property. |
boolean |
hasNewNotificationItems(Item.Type type)
Return true if any new notification items are available in this view for the specified item type. |
boolean |
hasPermission(PermissionCollection permissions)
Always returns false |
boolean |
hasPermission(PermissionCollection permissions,
Type type)
Always returns false |
boolean |
isBranch()
Always returns false. |
boolean |
isBranchAll()
Always returns false. |
boolean |
isBranchNone()
Always returns true. |
boolean |
isBranchOnShare()
Always returns false |
boolean |
isDeleted()
Always returns false. |
boolean |
isEqualTo(View view)
Compares the properties of two Views. |
boolean |
isNonDerived()
Always returns false. |
boolean |
isReadOnly()
Returns true if the session is read only, false otherwise. |
boolean |
isReference()
Always returns true |
boolean |
isRefreshActiveLabelsRequired()
Always returns false. |
boolean |
isRefreshFoldersRequired()
Always returns true. |
boolean |
isRefreshLabelsRequired()
Always returns false. |
boolean |
isRefreshRequired()
Always returns false. |
boolean |
isRoot()
Always returns true |
void |
populate()
Populates target view properties, if they have not already been populated. |
void |
refreshActiveLabels()
Refreshes cached Label information for active (non-deleted) labels to reflect recent changes to the repository. |
void |
refreshFolders()
This implementation of refreshFolders does not affect the VCMFolder tree directly. |
void |
remove()
This implementation does nothing |
void |
setStatusMethodOverride(StatusMethod method)
Throws an UnsupportedOperation exception. |
void |
update()
Persists this view's properties to its Server. |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy |
| Methods inherited from class com.starteam.CacheRef |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.starteam.ISecurable |
|---|
getType |
| Method Detail |
|---|
public boolean isReadOnly()
isReadOnly in class ViewSession.isReadOnly()public boolean isReference()
isReference in class Viewpublic boolean isRoot()
isRoot in class Viewpublic boolean isBranch()
isBranch in class Viewpublic boolean isNonDerived()
isNonDerived in class Viewpublic boolean isBranchAll()
isBranchAll in class Viewpublic boolean isBranchNone()
isBranchNone in class Viewpublic boolean isBranchOnShare()
isBranchOnShare in class Viewpublic boolean getHaveAccessRights()
public CheckinManager createCheckinManager()
createCheckinManager in class Viewpublic CheckinManager createCheckinManager(CheckinOptions options)
Note that individual options can be overridden on a file-by-file basis by registering a CheckinListener, and changing options as necessary in the onStartFile event handler.
createCheckinManager in class Viewoptions - The specific CheckinOtions to be used.
CheckinOptions,
CheckinListener.startFile(com.starteam.events.CheckinEvent)public CheckoutManager createCheckoutManager()
createCheckoutManager in class Viewpublic CheckoutManager createCheckoutManager(CheckoutOptions options)
Note that individual options can be overridden on a file-by-file basis by registering a CheckoutListener, and changing options as necessary in the onStartFile event handler.
createCheckoutManager in class Viewoptions - The specific CheckoutOtions to be used.
CheckoutOptions,
CheckoutListener.startFile(com.starteam.events.CheckoutEvent)public Folder getRootFolder()
getRootFolder in class ViewMergePreview.refreshFolders(),
MergePreview.discardFolders()public PromotionModel getPromotionModel()
getPromotionModel in class Viewpublic ViewConfiguration getConfiguration()
getConfiguration in class View
public java.lang.Object getValue(Property property)
throws NoSuchPropertyException
getValue in class Viewproperty - the property to be retrieved
NoSuchPropertyException - if the named property does not existpublic void populate()
populate in class ViewMergePreview.refresh(com.starteam.ViewMember, com.starteam.Property[])public boolean isRefreshRequired()
isRefreshRequired in class ViewMergePreview.refresh(com.starteam.ViewMember, com.starteam.Property[]),
Server.enableMPX()public boolean isRefreshFoldersRequired()
isRefreshFoldersRequired in class ViewMergePreview.refreshFolders()public boolean isRefreshActiveLabelsRequired()
isRefreshActiveLabelsRequired in class ViewMergePreview.refreshActiveLabels(),
Server.enableMPX()public boolean isRefreshLabelsRequired()
isRefreshLabelsRequired in class ViewView.refreshLabels(),
Server.enableMPX()public Label[] getLabels()
getLabels in class ViewView.refreshLabels(),
MergePreview.getActiveLabels()public Label[] getActiveLabels()
getActiveLabels in class ViewMergePreview.refreshActiveLabels(),
MergePreview.getLabels()public Label[] fetchAllLabels()
The labels are not cached in the View object. Each call to fetchAllLabels() returns an up-to-date list consisting of newly allocated Label objects.
If MPX is enabled, fetchAllLabels() is optimized to avoid unnecessary server commands.
fetchAllLabels in class Viewpublic Label[] fetchAllLabels(View view)
The labels are not cached. Each call to fetchAllLabels() returns an up-to-date list consisting of newly allocated Label objects.
fetchAllLabelsFromView() is not MPX-enabled; the labels are always retrieved directly from the repository.
fetchAllLabels in class Viewview - the view whose labels are to be fetched
public void refreshActiveLabels()
refreshActiveLabels in class ViewMergePreview.isRefreshActiveLabelsRequired(),
MergePreview.getActiveLabels(),
MergePreview.discardActiveLabels(),
View.refreshLabels(),
Server.enableMPX()public void discardActiveLabels()
discardActiveLabels in class ViewMergePreview.getActiveLabels(),
MergePreview.refreshActiveLabels(),
Server.enableMPX()
public Label createViewLabel(java.lang.String name,
java.lang.String description,
DateTime time,
boolean buildLabel,
boolean frozen)
createViewLabel in class Viewname - the label name (may not be null)description - the label description (may not be null)time - the view configuration time (may not be null)buildLabel - true if the label is to be a "Build Label"frozen - true if the label is "frozen" (a frozen label can not be moved
from one revision to another)
public Label createRevisionLabel(java.lang.String name,
java.lang.String description,
boolean frozen)
createRevisionLabel in class Viewname - the label name (may not be null)description - the label description (may not be null)frozen - true if the label is "frozen" (a frozen label can not be moved
from one revision to another)
public Label cloneViewLabel(Label source,
java.lang.String name,
java.lang.String description,
boolean buildLabel,
boolean frozen)
cloneViewLabel in class Viewsource - the label to be cloned (it must be from the active view)name - the label name (may not be null)description - the label description (may not be null)buildLabel - true if the label is to be a "Build Label"frozen - true if the label is "frozen" (a frozen label can not be moved
from one revision to another)
public Label cloneRevisionLabel(Label source,
java.lang.String name,
java.lang.String description,
boolean frozen)
cloneRevisionLabel in class Viewsource - the label to be cloned (it must be from the active view)name - the label name (may not be null)description - the label description (may not be null)frozen - true if the label is "frozen" (a frozen label can not be moved
from one revision to another)
public View copy()
copy in class ViewMergePreview.isEqualTo(com.starteam.View)public boolean isEqualTo(View view)
isEqualTo in class Viewview - The view to be compared to this one.
MergePreview.copy()public StatusMethod getStatusMethodOverride()
getStatusMethodOverride in class Viewpublic void setStatusMethodOverride(StatusMethod method)
setStatusMethodOverride in class Viewmethod - the new status method to use, may not be null.
java.lang.UnsupportedOperationExceptionpublic FileBasedStatusManager getFileStatusManager()
getFileStatusManager in class ViewStatusMethod.getStatusManager(View)public ViewConfiguration getBaseConfiguration()
getBaseConfiguration in class ViewViewConfigurationpublic java.lang.String getFullName()
getFullName in class Viewpublic Project getProject()
getProject in class Viewpublic View getParentView()
getParentView in class Viewpublic boolean hasPermission(PermissionCollection permissions)
permissions - the desired permissions
Permission
public boolean hasPermission(PermissionCollection permissions,
Type type)
permissions - the desired permissionstype - the type for access to be tested on
Permissionpublic ACE[] getRights()
getRights in interface ISecurablegetRights in class ViewAccessRightsManager.getRights(com.starteam.ISecurable)public ACE[] getRights(Type type)
getRights in interface ISecurableContainergetRights in class Viewtype - the type being controlled by the returned ACL
ACE,
Typepublic boolean isDeleted()
isDeleted in interface ISecurableisDeleted in interface ISecurableContainerisDeleted in class Viewpublic void update()
Server. This
implementation does nothing unless this is a compare-only session. In
that case it throws an IllegalState exception.
update in class View
public Item getDisembodiedItem(Item.Type type,
int itemID)
Disembodied Items are useful for resolving LinkEndpoints, which can cross project and view boundaries. However, many normal Item operations are not supported for disembodied items.
getDisembodiedItem() is not MPX-enabled; each call to getDisembodiedItem() retrieves data directly from the server.
getDisembodiedItem in class Viewtype - the type of disembodied itemitemID - the id of the disembodied item
ViewMember.isDisembodied()
public ViewMember getDisembodiedViewMember(ViewMember.Type type,
int itemID)
Disembodied ViewMembers are useful for resolving LinkEndpoints, which can cross project and view boundaries. However, many normal ViewMember operations are not supported for disembodied ViewMembers.
getDisembodiedViewMember() is not MPX-enabled; each call to getDisembodiedViewMember() retrieves data directly from the server.
getDisembodiedViewMember in class Viewtype - the type of the disembodied view memberitemID - the id of the disembodied view member
ViewMember.isDisembodied()public void discard()
ViewIf the properties of a view are changed, and discard() is called without first calling update(), the changes will be lost.
discard in class ViewThis implementation does nothingpublic void refreshFolders()
refreshFolders in class ViewMergePreview.isRefreshFoldersRequired(),
MergePreview.getRootFolder(),
MergePreview.discardFolders()public void discardFolders()
discardFolders in class ViewMergePreview.getRootFolder(),
MergePreview.refreshFolders()public void remove()
remove in class Viewpublic boolean hasNewNotificationItems(Item.Type type)
hasNewNotificationItems in class Viewtype - the desired item type
public void close()
Many view-related resources, such as the folder tree, item lists and so on, can be discarded separately. Others, however, are freed only by an explicit call to close(), or to Server.disconnect().
After a view is closed, the view object is still useful. The view session is automatically re-opened when needed, and data is re-fetched from the server on demand.
close in class ViewMergePreview.discard(),
MergePreview.discardFolders(),
View.discardLabels(),
Folder.discardItems(com.starteam.Item.Type, int),
Server.disconnect()public Session getSession()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||