|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Repository Manager interface implemented by RepositoryManagers that control inserting, updating and deleting repository items.
Method Summary | |
void |
delete(java.util.ArrayList ids)
Delete multiple repository items. |
void |
delete(java.lang.String id)
Delete the repository item. |
long |
getItemSize(java.lang.String itemId)
Get the size of a repository item in bytes. |
long |
getItemsSize(java.util.ArrayList ids)
Get the total size an ArrayList of repository item in bytes. |
RepositoryItem |
getRepositoryItem(java.lang.String id)
Returns the RepositoryItem with the given unique ID. |
java.lang.String |
getRepositoryItemPath(java.lang.String id)
Gets the path for a RepositoryItem given its id. |
void |
insert(RepositoryItem item)
Insert the repository item. |
java.util.ArrayList |
itemsExist(java.util.ArrayList ids)
Return a ArrayList of non-existent repository items |
void |
update(RepositoryItem item)
Updates a RepositoryItem. |
Method Detail |
public java.lang.String getRepositoryItemPath(java.lang.String id) throws RegistryException
RegistryException
public void insert(RepositoryItem item) throws RegistryException
item
- The repository item.
RegistryException
public RepositoryItem getRepositoryItem(java.lang.String id) throws RegistryException
id
- Unique id for repository item
RegistryException
public void delete(java.lang.String id) throws RegistryException
id
- A unique id (UUID or URN)
RegistryException
- if the item does not existpublic void delete(java.util.ArrayList ids) throws RegistryException
ids
- ArrayList of repositoryItem ids.
RegistryException
- if any of the item do not existpublic void update(RepositoryItem item) throws RegistryException
RegistryException
public java.util.ArrayList itemsExist(java.util.ArrayList ids) throws RegistryException
ids
- The ArrayList of repository items id.
RegistryException
public long getItemSize(java.lang.String itemId) throws RegistryException
itemId
- The id of repository item, with "urn:uuid:".
RegistryException
public long getItemsSize(java.util.ArrayList ids) throws RegistryException
ids
- ArrayList of repository item ids
RegistryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |