|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oclc.da.gdfr.registryprototype.pvt.CollectionBLVersioned
public class CollectionBLVersioned
| Constructor Summary | |
|---|---|
CollectionBLVersioned(Collection next)
|
|
| Method Summary | |
|---|---|
void |
add(CollectionItem item)
Adds the given CollectionItem to the collection preconditions: 1) The user is recognized and is allowed to execute this feature 2) The identifier given to the record is valid and does not already exist. |
CollectionItem |
create()
Creates a new instance of CollectionItem with a GUID associated with it preconditions: 1) The collection exists postconditions: 1) The GUID is in fact globally unique |
void |
delete(Ref ref)
Deletes the record identified by the given ref preconditions 1) The record with the given Ref exists postconditions 1) The record is deleted from the collection |
CollectionItem |
read(Ref ref)
Returns the CollectionItem identified by the given Ref preconditions 1) The record identified by the given identifier exists. |
AdminData |
readAdmin(Ref ref)
Returns the admin data of the CollectionItem identified by the given Ref preconditions 1) The record identified by the given identifier exists. |
Content |
readContent(Ref ref)
Returns the content data of the CollectionItem identified by the given Ref preconditions 1) The record identified by the given identifier exists. |
Abstract[] |
search(Query query)
Return a list (possibly empty if no matches) of abstracts of registry records, containing its known identifiers and some unique & relevant identifying attributes. |
void |
update(CollectionItem item)
Updates the given CollectionItem in the Collection preconditions: 1) The user is recognized and is allowed to execute this feature 2) The identifier given to the record is valid and already exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionBLVersioned(Collection next)
| Method Detail |
|---|
public void add(CollectionItem item)
throws RegistryException
Collection
add in interface Collectionitem - CollectionItem to add
RegistryException - if any erros occur.
public CollectionItem create()
throws RegistryException
Collection
create in interface CollectionRegistryException - if anything goes wrong
public void delete(Ref ref)
throws RegistryException
Collection
delete in interface Collectionref - The Ref of the record to delete
RegistryException - if anything goes wrong
public CollectionItem read(Ref ref)
throws RegistryException
Collection
read in interface Collectionref - The Ref of the CollectionItem
RegistryException - If anything goes wrong
public AdminData readAdmin(Ref ref)
throws RegistryException
Collection
readAdmin in interface Collectionref - The Ref of the CollectionItem
RegistryException - If anything goes wrong
public Content readContent(Ref ref)
throws RegistryException
Collection
readContent in interface Collectionref - The Ref of the CollectionItem
RegistryException - If anything goes wrong
public Abstract[] search(Query query)
throws RegistryException
Collection
search in interface Collectionquery - The query to search on
RegistryException
public void update(CollectionItem item)
throws RegistryException
Collection
update in interface Collectionitem - The new version of the CollectionItem
RegistryException - if anything goes wrong
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||