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));
}
Aggregations