|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SRBService
Servicing for managing SRB.
| Field Summary | |
|---|---|
static java.lang.String |
ADMN_GRP
ADMN_GRP. |
static java.lang.String |
DATAFILE
DATAFILE. |
static java.lang.String |
DATASET
DATASET. |
static java.lang.String |
EXPERIMENT
EXPERIMENT. |
static java.lang.String |
PROJECT
PROJECT. |
static java.lang.String |
SAMPLE
SAMPLE. |
static int |
SRB_ALL
SRB_ALL. |
static int |
SRB_ANNOTATE
SRB_ANNOTATE. |
static int |
SRB_NULL
SRB_NULL. |
static int |
SRB_READ
SRB_READ. |
static int |
SRB_WRITE
SRB_WRITE. |
static java.lang.String |
TEAM_GRP
TEAM_GRP. |
| Method Summary | |
|---|---|
void |
addGroupPermissions(SRBGroupPermissionRequest request)
Modify group permissions. |
SRBLoginResponse |
authenticate(SRBLoginRequest request)
Authenticate SRB login request. |
void |
copyDataset(SRBCopyRequest copyRequest)
Copy Dataset. |
SRBContentInfo |
createDirectory(SRBContentRequest srbDirRequest)
Create Directory. |
void |
deleteContent(SRBContentRequest srbDirRequest)
Delete a SRB content[File, Directory, Collection ...]. |
SRBDownloadResponse |
downloadContent(SRBDownloadRequest request)
Get the content of the given file in the specified directory. |
java.util.Map<java.lang.String,java.lang.String> |
getAllSRBGroups(SRBRequest request)
Retrieve all SRB groups. |
SRBContentInfo |
getContentInfo(SRBContentRequest request)
Retrieve SRB content info. |
java.util.Map<java.lang.String,java.lang.String> |
getProjectGroups(SRBContentRequest request,
java.lang.String contentType)
Retrieve parent project groups. |
boolean |
isAuthorised(SRBContentRequest request,
int operation)
Check if user is authorised to perform a SRB operation. |
java.util.List<SRBContentInfo> |
listAll(SRBContentRequest request)
Retrieve staging area content. |
java.util.List<SRBContentInfo> |
listDir(SRBContentRequest srbDirRequest)
List all sub-directories in the given directory. |
java.util.List<SRBContentInfo> |
listFile(SRBContentRequest srbDirRequest)
List all files in the given directory. |
java.util.List<SRBContentInfo> |
listScratchDirs(SRBContentRequest request)
List all sub-directories in a scratch area directory that are 4 level down from the scratch area. |
SRBContentInfo |
renameContent(SRBRenameContentRequest request)
Rename SRB content. |
java.lang.String |
uploadContent(SRBUploadRequest srbUploadRequest)
Upload file to SRB. |
| Field Detail |
|---|
static final int SRB_READ
static final int SRB_WRITE
static final int SRB_ALL
static final int SRB_ANNOTATE
static final int SRB_NULL
static final java.lang.String ADMN_GRP
static final java.lang.String TEAM_GRP
static final java.lang.String PROJECT
static final java.lang.String EXPERIMENT
static final java.lang.String SAMPLE
static final java.lang.String DATASET
static final java.lang.String DATAFILE
| Method Detail |
|---|
SRBLoginResponse authenticate(SRBLoginRequest request)
throws InvalidSRBRequestException
request - SRBLoginRequest object.
InvalidSRBRequestException - if the request parameters are invalid.
boolean isAuthorised(SRBContentRequest request,
int operation)
throws InvalidSRBRequestException
request - SRBContentRequest.operation - operation code.
InvalidSRBRequestException - if any errors occur.
java.util.Map<java.lang.String,java.lang.String> getAllSRBGroups(SRBRequest request)
throws InvalidSRBRequestException
request - SRBRequest object.
InvalidSRBRequestException - if the request parameters are invalid.
java.util.Map<java.lang.String,java.lang.String> getProjectGroups(SRBContentRequest request,
java.lang.String contentType)
throws InvalidSRBRequestException
request - SRBContentRequest.contentType - content type.
InvalidSRBRequestException - if the request parameters are invalid.
void addGroupPermissions(SRBGroupPermissionRequest request)
throws InvalidSRBRequestException
request - SRBGroupPermissionRequest.
InvalidSRBRequestException - if the request parameters are invalid.
java.util.List<SRBContentInfo> listAll(SRBContentRequest request)
throws InvalidSRBRequestException
request - SRBContentRequest object.
InvalidSRBRequestException - if the request parameters are invalid.
java.util.List<SRBContentInfo> listDir(SRBContentRequest srbDirRequest)
throws InvalidSRBRequestException
srbDirRequest - request object.
InvalidSRBRequestException - if request is invalid.
java.util.List<SRBContentInfo> listScratchDirs(SRBContentRequest request)
throws InvalidSRBRequestException
request - srbDirRequest request object.
InvalidSRBRequestException - if request is invalid.
java.util.List<SRBContentInfo> listFile(SRBContentRequest srbDirRequest)
throws InvalidSRBRequestException
srbDirRequest - request object.
InvalidSRBRequestException - if request is invalid.
SRBContentInfo getContentInfo(SRBContentRequest request)
throws InvalidSRBRequestException
request - SRBContentRequest
InvalidSRBRequestException - if the request parameters are invalid
SRBContentInfo createDirectory(SRBContentRequest srbDirRequest)
throws InvalidSRBRequestException,
SRBServiceException
srbDirRequest - request object.
InvalidSRBRequestException - if request is invalid.
SRBServiceException - if error occurs in SRB service.
SRBContentInfo renameContent(SRBRenameContentRequest request)
throws SRBServiceException
request - SRBRenameContentRequest object.
SRBServiceException - if failed to change name.
java.lang.String uploadContent(SRBUploadRequest srbUploadRequest)
throws InvalidSRBRequestException,
SRBServiceException
srbUploadRequest - request object.
InvalidSRBRequestException - if request is invalid.
SRBServiceException - if error occurs in SRB service.
SRBDownloadResponse downloadContent(SRBDownloadRequest request)
throws InvalidSRBRequestException
request - SRBFileRequest down file request.
InvalidSRBRequestException - if request is invalid.
void deleteContent(SRBContentRequest srbDirRequest)
throws InvalidSRBRequestException,
SRBServiceException
srbDirRequest - request object.
InvalidSRBRequestException - if request is invalid.
SRBServiceException - if error occurs in SRB service.
void copyDataset(SRBCopyRequest copyRequest)
throws SRBServiceException
copyRequest - SRBCopyRequest copy request object.
SRBServiceException - throws SRBServiceException if error happens.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||