|
Compoze Software, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class implements a root container, which can be used to fetch any item or container in the hierarchy.
Field Summary | |
static RootContainerClass |
CLASS
The default type of root container for collaboration services. |
static Key[] |
MINIMUM_ROOT_CONTAINER_KEYS
The minimum required keys when fetching a root container. |
Fields inherited from interface com.compoze.collab.IContainer |
CONTAINER_CLASS, HAS_SUBCONTAINERS, HOLDS_ITEMS, HOLDS_SUBCONTAINERS, KEYID_CONTAINER_CLASS, KEYID_HAS_SUBCONTAINERS, KEYID_HOLDS_ITEMS, KEYID_HOLDS_SUBCONTAINERS, KEYID_NAME, KEYID_SUBCONTAINER_COUNT, MINIMUM_CONTAINER_KEYS, NAME, SUBCONTAINER_COUNT |
Fields inherited from interface com.compoze.collab.IItem |
ID, ITEM_CLASS, KEYID_ID, KEYID_ITEM_CLASS, KEYID_PARENT_ID, MINIMUM_ITEM_KEYS, PARENT_ID |
Method Summary | |
void |
deleteItems(java.lang.String[] sIDs)
Deletes one or more items anywhere in this root container. |
IContainer |
getContainerByID(java.lang.String sID)
Gets a container from the root container by its ID. |
IContainer |
getContainerByID(java.lang.String sID,
FetchProfile profile)
Gets a container from the root container by its ID. |
IItem |
getItemByID(java.lang.String sID)
Gets an item from the root container by its ID. |
IItem |
getItemByID(java.lang.String sID,
FetchProfile profile)
Gets an item from the root container by its ID. |
IItem[] |
getItemsByID(java.lang.String[] sIDs,
FetchProfile profile)
Gets an array of items from the root container by their IDs. |
void |
moveItems(java.lang.String[] sIDs,
IContainer target)
Moves one or more items anywhere in this root container to a target container. |
Methods inherited from interface com.compoze.collab.IContainer |
add, add, add, addSubcontainer, copyTo, getContainerClass, getItemCount, getItemCount, getItems, getItems, getItems, getItems, getItems, getName, getSubcontainer, getSubcontainer, getSubcontainers, getSubcontainers, hasSubcontainer, holdsItems, holdsSubcontainers, isUnder, moveTo, setName |
Methods inherited from interface com.compoze.collab.IItem |
commit, containsKey, containsKey, copyProperties, delete, fetchProperties, getAttribute, getEnum, getID, getInputStream, getItemClass, getOutputStream, getParent, getParent, getParentID, getProperties, getProperties, getProperties, getProperty, getProperty, getProperty, getReader, getRootContainer, getSession, getWriter, isMissing, removeAttribute, removeProperty, setAttribute, setProperties, setProperty, setProperty, setProperty |
Field Detail |
public static final Key[] MINIMUM_ROOT_CONTAINER_KEYS
public static final RootContainerClass CLASS
Method Detail |
public IContainer getContainerByID(java.lang.String sID) throws CollaborationException
sID
- the container ID
null
if no container with the specified
ID was found
CollaborationException
- if there was a problem with the
provider when retrieving the containerpublic IContainer getContainerByID(java.lang.String sID, FetchProfile profile) throws CollaborationException
sID
- the container IDprofile
- the profile to use that defines the keys
null
if no container with the specified
ID was found
CollaborationException
- if there was a problem with the
provider when retrieving the containerpublic IItem getItemByID(java.lang.String sID) throws CollaborationException
sID
- the item ID
null
if no item with the specified
ID was found)
CollaborationException
- if there was a problem with the
provider when retrieving the itempublic IItem getItemByID(java.lang.String sID, FetchProfile profile) throws CollaborationException
sID
- the item IDprofile
- the profile to use that defines the keys
null
).
CollaborationException
- if there was a problem with the
provider when retrieving the item (possible nested exceptions include:
ItemNotFoundException
).public IItem[] getItemsByID(java.lang.String[] sIDs, FetchProfile profile) throws CollaborationException
sIDs.length
number
of calls to retrieve each item individually by their ID.
sIDs
- the IDs of the items to retrieve (may not be null
)profile
- the profile to use to fetch the items
sIDs
. If an item was
unable to be retrieved, an IMissingItem
instance will be created in place of that item.
CollaborationException
- if there was a problem with the
provider when retrieving the itemspublic void deleteItems(java.lang.String[] sIDs) throws CollaborationException
sIDs
- the IDs of the items to delete (may not be null
).
CollaborationException
- if there was a problem with the provider
or with deleting any of the items.public void moveItems(java.lang.String[] sIDs, IContainer target) throws CollaborationException
sIDs
- the IDs of the items to delete (may not be null
).target
- the container the items will be moved to.
ContainerCycleException
- if any of the items being moved is
an ancestor of target
ContainerAlreadyExistsException
- if an item being moved is a
container and a container with the same name already exists
in the target
CollaborationException
- if there was a problem with the provider
or with moving any of the items.
|
Compoze Software, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |