GNDMS 0.6.0
RESTful verison of GNDMS
|
The interface of the Slice service. More...
Public Member Functions | |
ResponseEntity< Void > | setSliceConfiguration (String subspace, String sliceKind, String slice, Configuration config, String dn) |
Updates a slice with a new configuration. | |
ResponseEntity< Specifier< Void > > | transformSlice (String subspace, String sliceKind, String slice, Specifier< Void > newSliceKind, String dn) |
Changes the slice kind of a slice. | |
ResponseEntity< Specifier < Facets > > | deleteSlice (String subspace, String sliceKind, String slice, String dn) |
Deletes a whole slice. | |
ResponseEntity< List< FileStats > > | listFiles (String subspace, String sliceKind, String slice, String dn) |
Lists all files of a slice fulfilling the specified attributes. | |
ResponseEntity< Void > | deleteFiles (String subspace, String sliceKind, String slice, String dn) |
Deletes all files of a slice. | |
ResponseEntity< String > | getGridFtpUrl (String subspace, String sliceKind, String slice, String dn) |
Returns the URL of the slice for GridFTP access. | |
ResponseEntity< Void > | listFileContent (String subspace, String sliceKind, String slice, String fileName, List< String > attrs, String dn, OutputStream out) |
Selects a specific file. | |
ResponseEntity< Void > | setFileContent (String subspace, String sliceKind, String slice, String fileName, MultipartFile file, String dn) |
Selects a specific file. | |
ResponseEntity< Void > | deleteFile (String subspace, String sliceKind, String slice, String fileName, String dn) |
Deletes a specific file. | |
Package Functions | |
ResponseEntity< Facets > | listSliceFacets (String subspace, String sliceKind, String slice, String dn) |
Lists the facet of a slice. |
The interface of the Slice service.
Clients and resources which should provide the Slice service should implement this interface.
Some general remarks on the parameters:
ResponseEntity<Void> de.zib.gndms.common.dspace.service.SliceService.deleteFile | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
String | fileName, | ||
String | dn | ||
) |
Deletes a specific file.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
fileName | The file name. |
dn | The dn of the user invoking the method. |
ResponseEntity<Void> de.zib.gndms.common.dspace.service.SliceService.deleteFiles | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
String | dn | ||
) |
Deletes all files of a slice.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
dn | The dn of the user invoking the method. |
ResponseEntity<Specifier<Facets> > de.zib.gndms.common.dspace.service.SliceService.deleteSlice | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
String | dn | ||
) |
Deletes a whole slice.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
dn | The dn of the user invoking the method. |
ResponseEntity<String> de.zib.gndms.common.dspace.service.SliceService.getGridFtpUrl | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
String | dn | ||
) |
Returns the URL of the slice for GridFTP access.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
dn | The dn of the user invoking the method. |
ResponseEntity<Void> de.zib.gndms.common.dspace.service.SliceService.listFileContent | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
String | fileName, | ||
List< String > | attrs, | ||
String | dn, | ||
OutputStream | out | ||
) |
Selects a specific file.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
fileName | The file name. |
attrs | The attributed to be shown. |
dn | The dn of the user invoking the method. |
out | The outputstream the file information shall be written to. |
ResponseEntity< List< FileStats > > de.zib.gndms.common.dspace.service.SliceService.listFiles | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
String | dn | ||
) |
Lists all files of a slice fulfilling the specified attributes.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
attr | The requested attributes. |
dn | The dn of the user invoking the method. |
ResponseEntity< Facets > de.zib.gndms.common.dspace.service.SliceService.listSliceFacets | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
String | dn | ||
) | [package] |
Lists the facet of a slice.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
dn | The dn of the user invoking the method. |
ResponseEntity<Void> de.zib.gndms.common.dspace.service.SliceService.setFileContent | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
String | fileName, | ||
MultipartFile | file, | ||
String | dn | ||
) |
Selects a specific file.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
fileName | The file name. |
file | The content of the file. |
dn | The dn of the user invoking the method. |
ResponseEntity<Void> de.zib.gndms.common.dspace.service.SliceService.setSliceConfiguration | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
Configuration | config, | ||
String | dn | ||
) |
Updates a slice with a new configuration.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
config | The configuration of the slice. |
dn | The dn of the user invoking the method. |
ResponseEntity<Specifier<Void> > de.zib.gndms.common.dspace.service.SliceService.transformSlice | ( | String | subspace, |
String | sliceKind, | ||
String | slice, | ||
Specifier< Void > | newSliceKind, | ||
String | dn | ||
) |
Changes the slice kind of a slice.
subspace | The subspace identifier. |
sliceKind | The slice kind identifier. |
slice | The slice identifier. |
newSliceKind | The specifier of the target slice kind for the slice. |
dn | The dn of the user invoking the method. |