public interface MutableRepository extends Repository
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Modifier and Type | Method and Description |
---|---|
RepositoryItem |
addItem(MutableRepositoryItem pItem)
Adds the supplied item populated to the repository.
|
RepositoryItem |
addItem(RepositoryItem pItem,
java.lang.String pDescriptorName)
Deprecated.
|
MutableRepositoryItem |
createItem(java.lang.String pDescriptorName)
Returns a new item using an auto-generated unique id
|
MutableRepositoryItem |
createItem(java.lang.String pId,
java.lang.String pDescriptorName)
Returns a new item populated with the supplied id.
|
MutableRepositoryItem |
getItemForUpdate(java.lang.String pId)
Deprecated.
this method is replaced by
getItemForUpdate(String,String) .
If the second argument, i.e. the descriptor name, is unknown then
use getItemForUpdate(String,Repository.getDefaultViewName() ). |
MutableRepositoryItem |
getItemForUpdate(java.lang.String pId,
java.lang.String pDescriptorName)
If one wants write access to an item it should be retrieved
through this method.
|
MutableRepositoryItem[] |
getItemsForUpdate(java.lang.String[] pIds)
If one wants write access to a set of items they should be retrieved
through this method
|
MutableRepositoryItem[] |
getItemsForUpdate(java.lang.String[] pIds,
java.lang.String pDescriptorName)
If one wants write access to a set of items they should be retrieved
through this method.
|
void |
removeItem(java.lang.String pId)
Deprecated.
this method is replaced by
removeItem(String,String) .
If the second argument, i.e. the descriptor name is unknown, then
use removeItem(String,Repository.getDefaultViewName() ). |
void |
removeItem(java.lang.String pId,
java.lang.String pDescriptorName)
Removes an item from the Repository permanently.
|
void |
updateItem(MutableRepositoryItem pItem)
Updates the item's values into the Repository
|
getDefaultViewName, getItem, getItem, getItemDescriptor, getItemDescriptor, getItemDescriptorNames, getItems, getItems, getRepositoryName, getView, getView, getViewNames
static final java.lang.String CLASS_VERSION
MutableRepositoryItem getItemForUpdate(java.lang.String pId) throws RepositoryException
getItemForUpdate(String,String)
.
If the second argument, i.e. the descriptor name, is unknown then
use getItemForUpdate(String,Repository.getDefaultViewName()
).pId
- the id of the item to update.RepositoryException
- if the item could not be retreived for updateMutableRepositoryItem getItemForUpdate(java.lang.String pId, java.lang.String pDescriptorName) throws RepositoryException
pId
- the id of the item to update.pDescriptorName
- the name of the type of item to update.RepositoryException
- if the item could not be retreived for updateMutableRepositoryItem[] getItemsForUpdate(java.lang.String[] pIds) throws RepositoryException
RepositoryException
- if the item could not be retreived for updateMutableRepositoryItem[] getItemsForUpdate(java.lang.String[] pIds, java.lang.String pDescriptorName) throws RepositoryException
pIds
- the list of ids of items to retrieve for updatepDescriptorName
- the name of the item descriptor that contains
these items.RepositoryException
- if the item could not be retreived for updateMutableRepositoryItem createItem(java.lang.String pDescriptorName) throws RepositoryException
pDescriptorName
- the name of the RepositoryItemDescriptor
which should be used as the "template" to create the itemRepositoryException
- if the item could not be createdMutableRepositoryItem createItem(java.lang.String pId, java.lang.String pDescriptorName) throws RepositoryException
The new item is not added to the repository; addItem
must be called in order to change the repository.
pId
- the id to use in an attempt to create the RepositoryItempDescriptorName
- the name of the RepositoryItemDescriptor
which should be used as the "template" to create the itemRepositoryException
- if the item could not be createdDuplicateIdException
- if the id is already in useRepositoryItem addItem(RepositoryItem pItem, java.lang.String pDescriptorName) throws RepositoryException
pItem
- the item to addpDescriptorName
- the name of the RepositoryItemDescriptor
which should be used as the "template" to add the itemRepositoryException
- if the item could not be addedRepositoryItem addItem(MutableRepositoryItem pItem) throws RepositoryException
pItem
- the item to addRepositoryException
- if the item could not be addedvoid updateItem(MutableRepositoryItem pItem) throws RepositoryException
pItem
- the item to updateRepositoryException
- if the item could not be updatedConcurrentUpdateException
- if the item has been changed in
another transaction since this transaction started using this item.void removeItem(java.lang.String pId) throws RepositoryException
removeItem(String,String)
.
If the second argument, i.e. the descriptor name is unknown, then
use removeItem(String,Repository.getDefaultViewName()
).pItem
- the item to removeRepositoryException
- if the item could not be deletedvoid removeItem(java.lang.String pId, java.lang.String pDescriptorName) throws RepositoryException
pItem
- the item to removepDescriptorName
- the name of the item descriptor that contains
this item.RepositoryException
- if the item could not be deleted