|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.edu.archer.service.srb.impl.SRBServiceImpl
public class SRBServiceImpl
Service implementing SRBService.
| Field Summary |
|---|
| Fields inherited from interface au.edu.archer.service.srb.api.SRBService |
|---|
ADMN_GRP, DATAFILE, DATASET, EXPERIMENT, PROJECT, SAMPLE, SRB_ALL, SRB_ANNOTATE, SRB_NULL, SRB_READ, SRB_WRITE, TEAM_GRP |
| Constructor Summary | |
|---|---|
SRBServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addGroupPermissions(SRBGroupPermissionRequest request)
Modify group permissions. |
SRBLoginResponse |
authenticate(SRBLoginRequest request)
Authenticate SRB login request. |
void |
copyDataset(SRBCopyRequest request)
Copy Dataset. |
SRBContentInfo |
createDirectory(SRBContentRequest request)
Create Directory. |
void |
deleteContent(SRBContentRequest request)
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. |
edu.sdsc.grid.io.srb.SRBFileSystem |
getSrbFileSystem()
Get srbFileSystem. |
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 request)
List all sub-directories in the given directory. |
java.util.List<SRBContentInfo> |
listFile(SRBContentRequest request)
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. |
void |
setSrbFileSystem(edu.sdsc.grid.io.srb.SRBFileSystem srbFileSystem)
Set srbFileSystem. |
java.lang.String |
uploadContent(SRBUploadRequest request)
Upload file to SRB. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SRBServiceImpl()
| Method Detail |
|---|
public SRBLoginResponse authenticate(SRBLoginRequest request)
throws InvalidSRBRequestException
authenticate in interface SRBServicerequest - SRBLoginRequest object.
InvalidSRBRequestException - if the request parameters are invalid.
public boolean isAuthorised(SRBContentRequest request,
int operation)
throws InvalidSRBRequestException
isAuthorised in interface SRBServicerequest - SRBContentRequest.operation - operation code.
InvalidSRBRequestException - if any errors occur.
public java.util.Map<java.lang.String,java.lang.String> getAllSRBGroups(SRBRequest request)
throws InvalidSRBRequestException
getAllSRBGroups in interface SRBServicerequest - SRBRequest object.
InvalidSRBRequestException - if the request parameters are invalid.
public java.util.Map<java.lang.String,java.lang.String> getProjectGroups(SRBContentRequest request,
java.lang.String contentType)
throws InvalidSRBRequestException
getProjectGroups in interface SRBServicerequest - SRBContentRequest.contentType - content type.
InvalidSRBRequestException - if the request parameters are invalid.
public void addGroupPermissions(SRBGroupPermissionRequest request)
throws InvalidSRBRequestException
addGroupPermissions in interface SRBServicerequest - SRBGroupPermissionRequest.
InvalidSRBRequestException - if the request parameters are invalid.
public java.util.List<SRBContentInfo> listAll(SRBContentRequest request)
throws InvalidSRBRequestException
listAll in interface SRBServicerequest - SRBContentRequest object.
InvalidSRBRequestException - if the request parameters are invalid.
public java.util.List<SRBContentInfo> listScratchDirs(SRBContentRequest request)
throws InvalidSRBRequestException
listScratchDirs in interface SRBServicerequest - srbDirRequest request object.
InvalidSRBRequestException - if request is invalid.
public java.util.List<SRBContentInfo> listDir(SRBContentRequest request)
throws InvalidSRBRequestException
listDir in interface SRBServicerequest - request object.
InvalidSRBRequestException - if request is invalid.
public java.util.List<SRBContentInfo> listFile(SRBContentRequest request)
throws InvalidSRBRequestException
listFile in interface SRBServicerequest - request object.
InvalidSRBRequestException - if request is invalid.
public SRBContentInfo getContentInfo(SRBContentRequest request)
throws InvalidSRBRequestException
getContentInfo in interface SRBServicerequest - SRBContentRequest
InvalidSRBRequestException - if the request parameters are invalid
public SRBContentInfo createDirectory(SRBContentRequest request)
throws InvalidSRBRequestException,
SRBServiceException
createDirectory in interface SRBServicerequest - request object.
InvalidSRBRequestException - if request is invalid.
SRBServiceException - if error occurs in SRB service.
public SRBContentInfo renameContent(SRBRenameContentRequest request)
throws SRBServiceException
renameContent in interface SRBServicerequest - SRBRenameContentRequest object.
SRBServiceException - if failed to change name.
public java.lang.String uploadContent(SRBUploadRequest request)
throws InvalidSRBRequestException,
SRBServiceException
uploadContent in interface SRBServicerequest - request object.
InvalidSRBRequestException - if request is invalid.
SRBServiceException - if error occurs in SRB service.
public SRBDownloadResponse downloadContent(SRBDownloadRequest request)
throws InvalidSRBRequestException
downloadContent in interface SRBServicerequest - SRBFileRequest down file request.
InvalidSRBRequestException - if request is invalid.
public void deleteContent(SRBContentRequest request)
throws InvalidSRBRequestException,
SRBServiceException
deleteContent in interface SRBServicerequest - request object.
InvalidSRBRequestException - if request is invalid.
SRBServiceException - if error occurs in SRB service.public edu.sdsc.grid.io.srb.SRBFileSystem getSrbFileSystem()
public void setSrbFileSystem(edu.sdsc.grid.io.srb.SRBFileSystem srbFileSystem)
srbFileSystem - SRBFileSystem to set.
public void copyDataset(SRBCopyRequest request)
throws SRBServiceException
copyDataset in interface SRBServicerequest - 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 | |||||||||