com.groiss.dms
Interface IStore


public interface IStore

This is the interface providing methods for storing the content of documents and their versions.


Method Summary
 void delete(java.lang.String id, DMSObject obj)
          Deletes the content identified by id from the storage of the DMS.
 byte[] get(java.lang.String id, DMSObject obj)
          Returns the content identified by id from the storage of the DMS.
 void insert(java.lang.String id, byte[] content, DMSObject obj)
          Inserts the content identified by id into the storage of the DMS.
 void update(java.lang.String id, byte[] content, DMSObject obj)
          Updates the content identified by id in the storage of the DMS.
 

Method Detail

insert

void insert(java.lang.String id,
            byte[] content,
            DMSObject obj)
Inserts the content identified by id into the storage of the DMS.

Parameters:
id - identifies the content
content - the data to be stored
obj - the object to which the content belongs to. It is passed if some store implementiation needs additional information about the origin of the content.

update

void update(java.lang.String id,
            byte[] content,
            DMSObject obj)
Updates the content identified by id in the storage of the DMS.

Parameters:
id - identifies the content
content - the new data to be stored
obj - the object to which the content belongs to. It is passed if some store implementiation needs additional information about the origin of the content.

delete

void delete(java.lang.String id,
            DMSObject obj)
Deletes the content identified by id from the storage of the DMS.

Parameters:
id - identifies the content
obj - the object to which the content belongs to. It is passed if some store implementiation needs additional information about the origin of the content.

get

byte[] get(java.lang.String id,
           DMSObject obj)
Returns the content identified by id from the storage of the DMS. If there is no content for the passed id, null must be returned.

Parameters:
id - identifies the content
obj - the object to which the content belongs to. It is passed if some store implementiation needs additional information about the origin of the content.


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.