Пример #1
0
 public Graph read(String spaceURI, String graphURI, SemanticFormat outputFormat, User user)
     throws SpaceNotExistsException, AuthorizationException {
   if (authz.isUserAuthorized(graphURI, user))
     return concreteRead(spaceURI, graphURI, outputFormat);
   throw new AuthorizationException("Unable to access to" + graphURI);
 }
Пример #2
0
 public Graph take(String spaceURI, String graphURI, SemanticFormat outputFormat, User authorized)
     throws SpaceNotExistsException, AuthorizationException, PersistenceException {
   if (authz.isUserAuthorized(graphURI, authorized))
     return concreteTake(spaceURI, graphURI, outputFormat);
   throw new AuthorizationException("Unable to access to" + graphURI);
 }