| |
|
| java.lang.Object com.ibm.webdav.Resource com.ibm.webdav.Activity
Activity | public class Activity extends Resource (Code) | | An activity represents a named set of revisions to versioned
resources. A revision of a resource may be checked out in the
context of the current activity of the workspace. Edits are
made in the context of that activity, and the association is
maintained when the resource is checked back in. The same resource
can be checked out in many different activities at the same time
if the server supports parallel development on that resource. These
activities may be merged into other workspaces at some later time
to combine the changes. Activities may be used to manage units of
work required to update a set of resources in some related way.
|
Method Summary | |
public void | addDependent(Activity dependent) An activity may depend on a number of other activities in order to
be complete. | public void | addLabel(String label) Add a label to the latest revision of all resources mofified in this
activity. | public boolean | contains(Resource revision) See if an activity contains a resource. | public static Activity | create(java.net.URL url) Create an Activity at the given location. | public Enumeration | getDependents() An activity may depend on a number of other activities in order to
be complete. | public Enumeration | getMembers() The members of an activity are the revisions that were modified
in that activity. | public void | removeDependent(Activity dependent) An activity may depend on a number of other activities in order to
be complete. | public void | removeLabel(String label) Remove a label from the latest revision of all resource modified
in the context of this activity. |
addDependent | public void addDependent(Activity dependent) throws WebDAVException(Code) | | An activity may depend on a number of other activities in order to
be complete. When an activity is added to a workspace revision
selection rule, its dependent activities are also added.
Parameters: dependent - the dependent activity to add exception: com.ibm.webdav.WebDAVException - |
addLabel | public void addLabel(String label) throws WebDAVException(Code) | | Add a label to the latest revision of all resources mofified in this
activity. Any effected revision
must not already have the label, and the label cannot be the
ame as the revision id. The operation will fail if the collection
is not a versioned resource.
Labels are used to provide meaningful names that distinguish
revisions of versioned resources. They can be used in the revision
selection rule of the workspace to specify what revision should be
selected by that workspace. A specific label overriding the workspace
may also be used to access revisions.
Parameters: label - the label to add to this revision and potentiallyall its members exception: com.ibm.webdav.WebDAVException - |
contains | public boolean contains(Resource revision) throws WebDAVException(Code) | | See if an activity contains a resource. That is, see if a resource
was revised in the context of this activity.
Parameters: revision - the resource to check for true if the resource revision was updated in thisactivity exception: com.ibm.webdav.WebDAVException - |
getDependents | public Enumeration getDependents() throws WebDAVException(Code) | | An activity may depend on a number of other activities in order to
be complete. When an activity is added to a workspace revision
selection rule, its dependent activities are also added.
an Enumeration of the Activities this activity dependents on exception: com.ibm.webdav.WebDAVException - |
removeDependent | public void removeDependent(Activity dependent) throws WebDAVException(Code) | | An activity may depend on a number of other activities in order to
be complete. When an activity is added to a workspace revision
selection rule, its dependent activities are also added.
Parameters: dependent - the dependent activity to remove exception: com.ibm.webdav.WebDAVException - |
removeLabel | public void removeLabel(String label) throws WebDAVException(Code) | | Remove a label from the latest revision of all resource modified
in the context of this activity. An exception is raised if the revision
does not have this label.
Parameters: label - the label to remove from this revision and potentiallyall its members exception: com.ibm.webdav.WebDAVException - |
Methods inherited from com.ibm.webdav.Resource | public void addLabel(String label) throws WebDAVException(Code)(Java Doc) public MultiStatus addProperties(PropertyName[] names, Element[] values) throws WebDAVException(Code)(Java Doc) public void addProperty(PropertyName name, Element value) throws WebDAVException(Code)(Java Doc) public void cancelCheckOut() throws WebDAVException(Code)(Java Doc) public TargetSelector checkOut() throws WebDAVException(Code)(Java Doc) public TargetSelector checkOut(Workspace workspace) throws WebDAVException(Code)(Java Doc) public void checkPoint(boolean makeCurrentTarget, boolean overwrite) throws WebDAVException(Code)(Java Doc) public void checkin() throws WebDAVException(Code)(Java Doc) public void checkin(Activity activity, boolean makeCurrentTarget, boolean overwrite) throws WebDAVException(Code)(Java Doc) public void checkin(boolean makeCurrentTarget, boolean overwrite) throws WebDAVException(Code)(Java Doc) public void closeContentsOutputStream() throws WebDAVException(Code)(Java Doc) public void closeContentsOutputStream(String sContentType) throws WebDAVException(Code)(Java Doc) public MultiStatus copy(String destinationURL) throws WebDAVException(Code)(Java Doc) public MultiStatus copy(String destinationURL, boolean overwrite, Vector propertiesToCopy) throws WebDAVException(Code)(Java Doc) public MultiStatus delete() throws WebDAVException(Code)(Java Doc) public Document differencesWith(Resource resource) throws WebDAVException(Code)(Java Doc) public boolean equals(Resource resource) throws WebDAVException(Code)(Java Doc) public boolean exists() throws WebDAVException(Code)(Java Doc) public void flushCaches() throws WebDAVException(Code)(Java Doc) public ActiveLock getActiveLockFor(String principal) throws WebDAVException(Code)(Java Doc) public Activity getActivity() throws WebDAVException(Code)(Java Doc) public byte[] getContents() throws WebDAVException(Code)(Java Doc) public InputStream getContentsInputStream() throws WebDAVException(Code)(Java Doc) public OutputStream getContentsOutputStream() throws WebDAVException(Code)(Java Doc) public ResourceContext getContext()(Code)(Java Doc) public Enumeration getLabels() throws WebDAVException(Code)(Java Doc) public Vector getLocks() throws WebDAVException(Code)(Java Doc) public Enumeration getMergeCandidates() throws WebDAVException(Code)(Java Doc) public Enumeration getMergePredecessors() throws WebDAVException(Code)(Java Doc) public void getMetaInformation() throws WebDAVException(Code)(Java Doc) public Enumeration getMutableProperties() throws WebDAVException(Code)(Java Doc) public Element getOptions() throws WebDAVException(Code)(Java Doc) public Collection getParentCollection() throws WebDAVException(Code)(Java Doc) public Resource getPredecessor() throws WebDAVException(Code)(Java Doc) public MultiStatus getProperties() throws WebDAVException(Code)(Java Doc) public MultiStatus getProperties(PropertyName names) throws WebDAVException(Code)(Java Doc) public PropertyValue getProperty(PropertyName name) throws WebDAVException(Code)(Java Doc) public MultiStatus getPropertyNames() throws WebDAVException(Code)(Java Doc) public HTTPHeaders getRequestContext() throws WebDAVException(Code)(Java Doc) public HTTPHeaders getResponseContext() throws WebDAVException(Code)(Java Doc) public Document getRevisionHistory() throws WebDAVException(Code)(Java Doc) public String getRevisionId() throws WebDAVException(Code)(Java Doc) public int getStatusCode() throws WebDAVException(Code)(Java Doc) public String getStatusMessage() throws WebDAVException(Code)(Java Doc) public Enumeration getSuccessors() throws WebDAVException(Code)(Java Doc) public TargetSelector getTargetSelector() throws WebDAVException(Code)(Java Doc) public URL getURL() throws WebDAVException(Code)(Java Doc) public String getWorkingResourceId() throws WebDAVException(Code)(Java Doc) public Enumeration getWorkingResources() throws WebDAVException(Code)(Java Doc) protected void initialize(URL url, TargetSelector targetSelector) throws WebDAVException(Code)(Java Doc) public boolean isAutomaticallyVersioned() throws WebDAVException(Code)(Java Doc) public boolean isCheckedOut(Activity activity) throws WebDAVException(Code)(Java Doc) public boolean isCollection() throws WebDAVException(Code)(Java Doc) public boolean isLabeledWith(String label) throws WebDAVException(Code)(Java Doc) public boolean isLocked() throws WebDAVException(Code)(Java Doc) public boolean isLockedByMe() throws WebDAVException(Code)(Java Doc) public boolean isMutable() throws WebDAVException(Code)(Java Doc) boolean isVersioned() throws WebDAVException(Code)(Java Doc) public MultiStatus lock(Document document) throws WebDAVException(Code)(Java Doc) public MultiStatus lock(String scope, String type, int timeout, Element owner) throws WebDAVException(Code)(Java Doc) public MultiStatus move(String destinationURL) throws WebDAVException(Code)(Java Doc) public MultiStatus move(String destinationURL, boolean overwrite, Vector propertiesToMove) throws WebDAVException(Code)(Java Doc) public byte[] performWith(String args) throws WebDAVException(Code)(Java Doc) public MultiStatus refreshLock(String lockToken, int timeout) throws WebDAVException(Code)(Java Doc) public void removeLabel(String label) throws WebDAVException(Code)(Java Doc) public MultiStatus removeProperties(PropertyName[] names) throws WebDAVException(Code)(Java Doc) public void removeProperty(PropertyName name) throws WebDAVException(Code)(Java Doc) public void setContents(byte[] value) throws WebDAVException(Code)(Java Doc) public void setContents(byte[] value, String mimetype) throws WebDAVException(Code)(Java Doc) public MultiStatus setProperties(PropertyName[] names, Element[] values) throws WebDAVException(Code)(Java Doc) public MultiStatus setProperties(Document updates) throws WebDAVException(Code)(Java Doc) public void setProperty(PropertyName name, Element value) throws WebDAVException(Code)(Java Doc) public void setRequestContext(HTTPHeaders value) throws WebDAVException(Code)(Java Doc) public void setResponseContext(HTTPHeaders value) throws WebDAVException(Code)(Java Doc) public void setStatusCode(int value) throws WebDAVException(Code)(Java Doc) public String toString()(Code)(Java Doc) public MultiStatus unlock(String lockToken) throws WebDAVException(Code)(Java Doc)
|
|
|
|