Package com.webmethods.bpm.noodle
Interface IWorkspace
public interface IWorkspace
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addShare
(IShareInfo shareInfo) Adds a share to the workspace.void
Adds a user and rights to the share in the workspace.void
Adds a keyword tag to the workspace.Makes a copy of the workspace and places it in the target folder.void
delete()
Deletes the workspace.Get a List of aliases applied to this workspace.Gets the workspace context.Gets the date the workspace was created.Gets the workspace description.getID()
Gets the Workspace ID.Gets the date the workspace was last modified.getName()
Gets the workspace display name.Gets the workspace owner's UID.Gets the primary context URI of this workspace, usually the object this workspace is analyzing.Gets a list of IShareInfo shares for this workspacegetTags()
Gets a list of keyword tags associated with the workspace.getURL()
Gets the workspace link URL.int
Gets the workspace type, see Workspace Types.boolean
Determines if the workspace can be deleted by the current userboolean
isDirty()
Indicates that the workspace been modified since load.boolean
Determines if the workspace is editable by the current uservoid
refresh()
Refreshes the workspace, any unsaved changes are lostvoid
removeShare
(String principalID) Removes an existing share from the workspace for the specified user or role.;void
Removes a keyword tag from the workspace.boolean
Renames the workspace.void
save()
Saves any changes made to the workspace.void
setAliases
(List<String> aliases) Applies a list of aliases to the workspace.void
setDescription
(String description) Sets the workspace description.void
Sets the workspace display name.void
setOwnerUID
(String ownerUID) Sets the workspace owner's UID.void
setPrimaryContextURI
(String contextURI) Sets the primary context URI of this workspace; the URI of the object that is being analyzed by this workspace.void
setShares
(List<IShareInfo> shareList, boolean clearExistingShares) Updates the sharing for this workspacevoid
Sets the list of keyword tags associated with the workspace.void
setWorkspaceType
(int type) Set the workspace type, see Workspace Types.
-
Method Details
-
getID
Gets the Workspace ID. This is the unique identifier for the workspace.- Returns:
- Throws:
Exception
-
getURL
Gets the workspace link URL.- Returns:
- Throws:
Exception
-
getWorkspaceType
Gets the workspace type, see Workspace Types.- Returns:
- type The workspace type constant
- Throws:
Exception
-
setWorkspaceType
Set the workspace type, see Workspace Types.- Throws:
Exception
-
setName
Sets the workspace display name.- Parameters:
name
- The new workspace name string.- Throws:
Exception
-
getName
Gets the workspace display name.- Returns:
- Returns the workspace display name string.
- Throws:
Exception
-
setDescription
Sets the workspace description.- Parameters:
description
- The new workspace description string.- Throws:
Exception
-
getDescription
Gets the workspace description.- Returns:
- Returns the workspace description string.
- Throws:
Exception
-
getOwnerUID
Gets the workspace owner's UID.- Returns:
- Returns the workspace owner's UID as a string.
- Throws:
Exception
-
setOwnerUID
Sets the workspace owner's UID.- Parameters:
ownerUID
- Specifies the new user UID string to set as the workspace owner.- Throws:
Exception
-
getCreationDate
Gets the date the workspace was created.- Returns:
- Returns the date of workspace creation.
- Throws:
Exception
-
getLastModifiedDate
Gets the date the workspace was last modified.- Returns:
- Returns the date this workspace was last modified.
- Throws:
Exception
-
getAliases
Get a List of aliases applied to this workspace.- Returns:
- Returns a list of workspace alias strings.
- Throws:
Exception
-
setAliases
Applies a list of aliases to the workspace.- Parameters:
aliases
- Specifies the list of alias strings to apply to the workspace.- Throws:
Exception
-
addTag
Adds a keyword tag to the workspace.- Parameters:
tag
- Specified a workspace tag string to add to the workspace- Throws:
Exception
-
removeTag
Removes a keyword tag from the workspace.- Parameters:
tag
- Specifies the workspace tag string to remove- Throws:
Exception
-
getTags
Gets a list of keyword tags associated with the workspace.- Returns:
- Reutnrs a ist of workspace tag strings.
- Throws:
Exception
-
setTags
Sets the list of keyword tags associated with the workspace.- Parameters:
tags
- Specifies the list of tag strings to apply to the workspace.- Throws:
Exception
-
isDirty
boolean isDirty()Indicates that the workspace been modified since load.- Returns:
- Returns true if the workspace has unsaved changes.
-
getContext
Gets the workspace context.- Returns:
- Returns the workspace context.
- Throws:
Exception
-
rename
Renames the workspace.- Parameters:
newName
- Specifies the new name to apply to the workspace.- Returns:
- Returns true if the workspace has been successfully renamed.
- Throws:
Exception
-
delete
Deletes the workspace.- Throws:
Exception
-
save
Saves any changes made to the workspace.- Throws:
Exception
-
copy
Makes a copy of the workspace and places it in the target folder. If the targetFolderID is null, a copy will is placed in the original folder.- Parameters:
newName
- Specifies the new workspace name string.targetFolderID
- Specifies the folder ID of the new workspace parent folder.- Returns:
- Returns a copy of the workspace.
- Throws:
Exception
-
refresh
Refreshes the workspace, any unsaved changes are lost- Throws:
Exception
-
getPrimaryContextURI
Gets the primary context URI of this workspace, usually the object this workspace is analyzing.- Returns:
- Returns the ContextURI string.
- Throws:
Exception
-
isEditable
Determines if the workspace is editable by the current user- Returns:
- Returns true if the workspace is editable by the current user.
- Throws:
Exception
-
isDeletable
Determines if the workspace can be deleted by the current user- Returns:
- Returns true if the workspace can be deleted by the current user.
- Throws:
Exception
-
setPrimaryContextURI
Sets the primary context URI of this workspace; the URI of the object that is being analyzed by this workspace.- Parameters:
contextURI
- The URI string of the analyzed object- Throws:
Exception
-