Search in sources :

Example 1 with ArrayOfTMetaDataSpace

use of org.dcache.srm.v2_2.ArrayOfTMetaDataSpace in project dcache by dCache.

the class SrmGetSpaceMetaData method srmGetSpaceMetaData.

private SrmGetSpaceMetaDataResponse srmGetSpaceMetaData() throws SRMException {
    String[] spaceTokens = request.getArrayOfSpaceTokens().getStringArray();
    if (spaceTokens == null || spaceTokens.length == 0) {
        throw new SRMInvalidRequestException("arrayOfSpaceToken is empty");
    }
    TMetaDataSpace[] array = storage.srmGetSpaceMetaData(user, spaceTokens);
    return new SrmGetSpaceMetaDataResponse(getSummaryReturnStatus(array), new ArrayOfTMetaDataSpace(array));
}
Also used : ArrayOfTMetaDataSpace(org.dcache.srm.v2_2.ArrayOfTMetaDataSpace) TMetaDataSpace(org.dcache.srm.v2_2.TMetaDataSpace) ArrayOfTMetaDataSpace(org.dcache.srm.v2_2.ArrayOfTMetaDataSpace) SRMInvalidRequestException(org.dcache.srm.SRMInvalidRequestException) SrmGetSpaceMetaDataResponse(org.dcache.srm.v2_2.SrmGetSpaceMetaDataResponse)

Aggregations

SRMInvalidRequestException (org.dcache.srm.SRMInvalidRequestException)1 ArrayOfTMetaDataSpace (org.dcache.srm.v2_2.ArrayOfTMetaDataSpace)1 SrmGetSpaceMetaDataResponse (org.dcache.srm.v2_2.SrmGetSpaceMetaDataResponse)1 TMetaDataSpace (org.dcache.srm.v2_2.TMetaDataSpace)1