Skip to content

Commit

Permalink
Change interface to receive a parameters (storage, index)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiao committed Nov 4, 2015
1 parent bcf939c commit 8199553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sdk/src/main/java/pt/ua/dicoogle/sdk/IndexerInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public interface IndexerInterface extends DicooglePlugin {
* @param file directory or file to index
* @return a representation of the asynchronous indexation task
*/
public Task<Report> index(StorageInputStream file);
public Task<Report> index(StorageInputStream file, Object ... parameters);

/**
* Indexes multiple file paths to the database. Indexation procedures are asynchronous, and will return
Expand All @@ -49,7 +49,7 @@ public interface IndexerInterface extends DicooglePlugin {
* @param files a collection of directories and/or files to index
* @return a representation of the asynchronous indexation task
*/
public Task<Report> index(Iterable<StorageInputStream> files);
public Task<Report> index(Iterable<StorageInputStream> files, Object ... parameters);


/**
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/main/java/pt/ua/dicoogle/sdk/StorageInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public interface StorageInterface extends DicooglePlugin {
* @param dicomObject Object to be Stored
* @return The URI of the previously stored Object.
*/
public URI store(DicomObject dicomObject);
public URI store(DicomObject dicomObject, Object ... parameters);

/**
* Stores a new element into the storage.
Expand All @@ -78,7 +78,7 @@ public interface StorageInterface extends DicooglePlugin {
* @return the URI of the stored data
* @throws IOException if an I/O error occurs
*/
public URI store(DicomInputStream inputStream) throws IOException;
public URI store(DicomInputStream inputStream, Object ... parameters) throws IOException;

/** Removes an element at the given URI.
*
Expand Down

0 comments on commit 8199553

Please sign in to comment.