|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wvcm.ResourceImpl
org.apache.wvcm.ControllableResourceImpl
org.apache.wvcm.ControllableFolderImpl
org.apache.wvcm.WorkspaceImpl
public class WorkspaceImpl
Implementation of Workspace.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wvcm.ResourceImpl |
---|
ResourceImpl.LoadedProperties, ResourceImpl.XmlPropertyValue |
Nested classes/interfaces inherited from interface javax.wvcm.ControllableResource |
---|
ControllableResource.Conflict, ControllableResource.Ignore, ControllableResource.MergePreviewReport, ControllableResource.Update |
Nested classes/interfaces inherited from interface javax.wvcm.Folder |
---|
Folder.Binding |
Nested classes/interfaces inherited from interface javax.wvcm.Resource |
---|
Resource.GenericResourceImpl |
Field Summary |
---|
Fields inherited from class org.apache.wvcm.ResourceImpl |
---|
dnsp, MISSING_PROPERTY_VALUE |
Constructor Summary | |
---|---|
WorkspaceImpl(Location location)
Constructor |
Method Summary | |
---|---|
void |
doCreateResource()
Create a new persistent resource at the location identified by this ControllableResource . |
java.util.Iterator |
doMerge(java.util.List sourceList,
boolean checkinActivity,
boolean noAutoMerge,
boolean noCheckout,
boolean forkOK,
boolean unreserved,
java.util.List activityList,
boolean newActivity,
PropertyNameList wantedPropertyList)
Merge the versions specified in the sourceList into
this ControllableResource . |
java.util.Iterator |
doMergePreviewReport(java.util.List sourceList)
Return an iterator of MergePreviewReport objects, indicating what resources would be modified by a doMerge . |
java.util.List |
getActivityFolderList()
Return a list of Folder objects that identify folders that
can contain activities for this Workspace . |
java.util.List |
getBaselineControlledFolderList()
Return a list of Folder objects that identify the folders
that are the roots of the baseline-controlled
configurations in that workspace. |
java.util.List |
getCurrentActivityList()
Return a list of Activity objects that identify
the activities that will initialize the ActivityList property
of a version-controlled member of this Workspace when that member
is checked out and no explicit ActivityList is
specified in the checkout request. |
java.util.List |
getVersionHistoryFolderList()
Return a list of Folder objects that identify folders that
can contain version histories for this Workspace . |
java.util.List |
getWorkspaceCheckoutList()
Return a list of ControllableResource objects
that identify the members of this Workspace that are checked-out
version-controlled resources. |
void |
setCurrentActivityList(java.util.List activityList)
Set the CurrentActivityList property. |
void |
setServerState(Workspace workspace)
When this Workspace is located on the client,
this routine is used to specify the Workspace
on the server that maintains the server state for
this Workspace
This property must be set before creating a workspace that
is located on the client. |
Methods inherited from class org.apache.wvcm.ControllableFolderImpl |
---|
doBaselineControl, doBaselineControl, doLocateByHistoryReport, doReadMemberList, getBaselineControllable, getBindingList, getEclipsedList, readMemberList |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.wvcm.Workspace |
---|
doLocateByHistoryReport |
Methods inherited from interface javax.wvcm.ControllableFolder |
---|
doBaselineControl, doBaselineControl, getBaselineControllable, getEclipsedList, readMemberList |
Methods inherited from interface javax.wvcm.Folder |
---|
doReadMemberList, getBindingList |
Constructor Detail |
---|
public WorkspaceImpl(Location location)
Method Detail |
---|
public void doCreateResource() throws WvcmException
ControllableResourceImpl
ControllableResource
. The request will
fail if a resource already exists at that location.
doCreateResource
in interface ControllableResource
doCreateResource
in class ControllableFolderImpl
WvcmException
- Preconditions:
public void setServerState(Workspace workspace)
Workspace
is located on the client,
this routine is used to specify the Workspace
on the server that maintains the server state for
this Workspace
This property must be set before creating a workspace that
is located on the client.
setServerState
in interface Workspace
workspace
- The Workspace
located
on the server that maintains the server state
for this Workspace
.ControllableResource.getServerState()
public java.util.List getWorkspaceCheckoutList() throws WvcmException
ControllableResource
objects
that identify the members of this Workspace
that are checked-out
version-controlled resources.
getWorkspaceCheckoutList
in interface Workspace
WvcmException
- if this Workspace
was not created with
PropertyName.WORKSPACE_CHECKOUT_LIST
as a wanted property.public java.util.List getActivityFolderList() throws WvcmException
Folder
objects that identify folders that
can contain activities for this Workspace
.
This list is empty if this Workspace
does not provide activity support.
getActivityFolderList
in interface Workspace
WvcmException
- if this Workspace
was not created with
PropertyName.ACTIVITY_FOLDER_LIST
as a wanted property.public java.util.Iterator doMerge(java.util.List sourceList, boolean checkinActivity, boolean noAutoMerge, boolean noCheckout, boolean forkOK, boolean unreserved, java.util.List activityList, boolean newActivity, PropertyNameList wantedPropertyList) throws WvcmException
sourceList
into
this ControllableResource
.
The "target" of a particular source version is the version-controlled
member of the workspace identified by this Workspace
that is associated with the version history for that version.
doMerge
in interface Workspace
sourceList
- A list of Resource
objects that
identifies the versions to be merged.
If a member of sourceList is an activity,
each version in the ActivityVersionList is a source version.
If a member of sourceList is a version-controlled resource,
the checked-in version of the member is a source version.
If a member of sourceList is a folder, all members of the configuration
rooted at that folder are considered members of the sourceList.checkinActivity
- If a member of the sourceList is an activity,
apply doCheckin to that activity before performing the merge.noAutoMerge
- See ControllableResource#doMerge.noCheckout
- See ControllableResource#doMerge.forkOK
- See ControllableResource#doMerge.unreserved
- See ControllableResource#doMerge.activityList
- See ControllableResource#doMerge.newActivity
- See ControllableResource#doMerge.wantedPropertyList
- See ControllableResource#doMerge.
ControllableResource
objects that
identifies the resources modified by the merge.
WvcmException
- Preconditions:
public java.util.List getVersionHistoryFolderList() throws WvcmException
Folder
objects that identify folders that
can contain version histories for this Workspace
.
This list is empty if this Workspace
does not provide versioning support.
getVersionHistoryFolderList
in interface Workspace
WvcmException
- if this Workspace
was not created with
PropertyName.VERSION_HISTORY_FOLDER_LIST
as a wanted property.public java.util.List getBaselineControlledFolderList() throws WvcmException
Folder
objects that identify the folders
that are the roots of the baseline-controlled
configurations in that workspace.
getBaselineControlledFolderList
in interface Workspace
WvcmException
- if this Workspace
was not created with
PropertyName.BASELINE_CONTROLLED_FOLDER_LIST
as a wanted property.public java.util.List getCurrentActivityList() throws WvcmException
Activity
objects that identify
the activities that will initialize the ActivityList property
of a version-controlled member of this Workspace
when that member
is checked out and no explicit ActivityList is
specified in the checkout request.
getCurrentActivityList
in interface Workspace
WvcmException
- if this Workspace
was not created with
PropertyName.CURRENT_ACTIVITY_LIST
as a wanted property.public void setCurrentActivityList(java.util.List activityList)
setCurrentActivityList
in interface Workspace
activityList
- The list of Activity
objects that
identify the new CurrentActivityList for this Workspace
.public java.util.Iterator doMergePreviewReport(java.util.List sourceList) throws WvcmException
doMerge
.
doMergePreviewReport
in interface Workspace
sourceList
- A list of Resource
objects that identify
the versions to be merged.
WvcmException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |