use of org.sagebionetworks.repo.model.VariableContentPaginatedResults in project Synapse-Repository-Services by Sage-Bionetworks.
the class Synapse method getAccessRequirements.
public VariableContentPaginatedResults<AccessRequirement> getAccessRequirements(String entityId) throws SynapseException {
String uri = ENTITY + "/" + entityId + ACCESS_REQUIREMENT;
JSONObject jsonAccessRequirements = getEntity(uri);
JSONObjectAdapter adapter = new JSONObjectAdapterImpl(jsonAccessRequirements);
VariableContentPaginatedResults<AccessRequirement> results = new VariableContentPaginatedResults<AccessRequirement>();
try {
results.initializeFromJSONObject(adapter);
return results;
} catch (JSONObjectAdapterException e) {
throw new SynapseException(e);
}
}
use of org.sagebionetworks.repo.model.VariableContentPaginatedResults in project Synapse-Repository-Services by Sage-Bionetworks.
the class Synapse method getUnmetAccessReqAccessRequirements.
public VariableContentPaginatedResults<AccessRequirement> getUnmetAccessReqAccessRequirements(String entityId) throws SynapseException {
String uri = ENTITY + "/" + entityId + ACCESS_REQUIREMENT_UNFULFILLED;
JSONObject jsonAccessRequirements = getEntity(uri);
JSONObjectAdapter adapter = new JSONObjectAdapterImpl(jsonAccessRequirements);
VariableContentPaginatedResults<AccessRequirement> results = new VariableContentPaginatedResults<AccessRequirement>();
try {
results.initializeFromJSONObject(adapter);
return results;
} catch (JSONObjectAdapterException e) {
throw new SynapseException(e);
}
}
Aggregations