|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorkspaceItem
Define a Workspace item like folder or folder-item.
| Method Summary | |
|---|---|
WorkspaceItem |
cloneItem(String cloneName)
Clone this item. |
Capabilities |
getCapabilities()
The item capabilities. |
List<? extends WorkspaceItem> |
getChildren()
Return this item children. |
Calendar |
getCreationTime()
This item creation time. |
String |
getDescription()
This item description. |
String |
getId()
This item id. |
WorkspaceItemAction |
getLastAction()
Return the last action on this Item. |
Calendar |
getLastModificationTime()
This item last modification time. |
String |
getName()
This item name. |
User |
getOwner()
This item owner. |
WorkspaceFolder |
getParent()
Return this item parent. |
String |
getPath()
Return the current item path. |
Properties |
getProperties()
The item properties. |
WorkspaceItemType |
getType()
Return this item type. |
boolean |
isRoot()
Says if this item is a root element. |
void |
move(WorkspaceFolder destination)
Move this item to a new folder. |
void |
remove()
Remove this item from the workspace. |
void |
removeChild(WorkspaceItem child)
Remove a child from this item. |
void |
rename(String name)
Change this item name. |
void |
setDescription(String description)
Set a new item description. |
| Method Detail |
|---|
String getId()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
String getName()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
String getDescription()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
void setDescription(String description)
throws InternalErrorException
description - the new description.
InternalErrorException - if an internal error occurs.
void rename(String name)
throws InternalErrorException,
InsufficientPrivilegesException,
ItemAlreadyExistException
name - the new name.
InternalErrorException - if an internal error occurs.
InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.
ItemAlreadyExistException - if an item with this name already exists in the containing folder.
Calendar getCreationTime()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
Calendar getLastModificationTime()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
WorkspaceItemAction getLastAction()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
User getOwner()
throws InternalErrorException
InternalErrorException - if an internal error occurs.Capabilities getCapabilities()
Properties getProperties()
throws InternalErrorException
InternalErrorException - if an internal error occurs.WorkspaceItemType getType()
WorkspaceFolder getParent()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
String getPath()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
boolean isRoot()
throws InternalErrorException
true if this element is a root, false otherwise.
InternalErrorException - if an internal error occurs.
List<? extends WorkspaceItem> getChildren()
throws InternalErrorException
InternalErrorException - if an internal error occurs.
void removeChild(WorkspaceItem child)
throws InternalErrorException,
InsufficientPrivilegesException
child - the child to remove.
InternalErrorException - if an internal error occurs.
InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.
void remove()
throws InternalErrorException,
InsufficientPrivilegesException
InternalErrorException - if an internal error occurs.
InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.
void move(WorkspaceFolder destination)
throws InternalErrorException,
WrongDestinationException,
InsufficientPrivilegesException,
ItemAlreadyExistException
destination - the destination folder.
InternalErrorException - if an internal error occurs.
WrongDestinationException - if the destination folder have a wrong type.
InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.
ItemAlreadyExistException - if an item with the new name already exist in the destination folder.
WorkspaceItem cloneItem(String cloneName)
throws InternalErrorException,
InsufficientPrivilegesException,
ItemAlreadyExistException
cloneName - the new clone name.
InternalErrorException - if an internal error occurs.
InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.
ItemAlreadyExistException - if an item with the new name already exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||