@Path(value="/topologies/{topologyName}")
@Component
public class TopologiesResource
extends Object
| Constructor and Description |
|---|
TopologiesResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
grantPermissionsToTopology(String userName,
String topology)
Grants user with given username read/ write permissions for the requested topology.
|
@Path(value="/permit")
@POST
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@Consumes(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response grantPermissionsToTopology(@FormParam(value="username")
String userName,
@PathParam(value="topologyName")
String topology)
throws eu.europeana.cloud.service.dps.exception.AccessDeniedOrTopologyDoesNotExistException
topology - REQUIRED Name of the topology.userName - REQUIRED Permissions are granted to the account with this unique usernameeu.europeana.cloud.service.dps.exception.AccessDeniedOrTopologyDoesNotExistExceptionCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.