|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The middleware level API for handling individual entries in the Metadata Catalog component. This is the interface that the service exposes to the other middleware components, which is not necessarily the final API seen by the user.
Method Summary | |
void |
createEntry(StringPair[] entries)
Creates new items/entries in the catalog. |
void |
removeEntry(java.lang.String[] items)
Removes existing items/entries from the catalog. |
Methods inherited from interface org.glite.data.catalog.service.meta.MetadataBase |
clearAttributes, getAttributes, listAttributes, query, setAttributes |
Methods inherited from interface org.glite.data.catalog.service.ServiceBase |
getInterfaceVersion, getSchemaVersion, getServiceMetadata, getVersion |
Methods inherited from interface org.glite.data.catalog.service.meta.MetadataSchema |
addSchemaAttributes, createSchema, describeSchema, dropSchema, listSchemas, removeSchemaAttributes |
Methods inherited from interface org.glite.data.catalog.service.fas.FASBase |
checkPermission, getPermission, setPermission |
Method Detail |
public void createEntry(StringPair[] entries) throws InvalidArgumentException, InternalException, ExistsException, NotExistsException, AuthorizationException
Each item/entry is associated with an existing schema, and though with the attributes which belong to this schema. If an implementation does not care about having different schemas associated with a group of entries in the catalog, then this attribute is ignored and the structure seen by the client is a flat catalog.
The entries passed in the method are pairs of {item identifier, schema name}. The item identifier is a string which must be unique in the catalog. The schema name is the name of the schema containing the attributes to be associated with the new entry.
entries
- The new entries to be inserted in the catalog as {item, schemaName} pairs.
AuthorizationException
- No access for creating new entries/items.
ExistsException
- The entry/item already exists in the catalog.
NotExistsException
- The schema does not exist in the catalog.
InvalidArgumentException
- The given string identifier for the new item/entry is invalid.
InternalException
- Any other error on the server side (i.e. database down).
AuthorizationException
.InvalidArgumentException
.ExistsException
.NotExistsException
.org.glite.data.catalog.service.meta
,
MetadataSchema
,
StringPair
public void removeEntry(java.lang.String[] items) throws AuthorizationException, NotExistsException, InternalException
The concrete semantics of this operation are left to the implementation. It may be that all entries should be deleted even if attributes are set, or that entries should only be deleted if no associated attributes have values set.
items
- The string identifiers of the items/entries to be removed from the catalog.
AuthorizationException
- No access for deleting entries/items.
NotExistsException
- The entry/item does not exist in the catalog.
InternalException
- Any other error on the server side (i.e. database down).
AuthorizationException
.NotExistsException
.org.glite.data.catalog.service.meta
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |