public abstract class ResourcePermissionManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
context |
protected static org.slf4j.Logger |
LOGGER |
| Modifier | Constructor and Description |
|---|---|
protected |
ResourcePermissionManager(org.springframework.context.ApplicationContext context) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
grantPermissionsToTaskResources(eu.europeana.cloud.service.dps.DpsTask task,
String topologyName,
String topologyUserName,
String authorizationHeader)
Grants permissions to all the resources inside the task.
|
protected void |
grantPermissionToVersion(String authorizationHeader,
String topologyUserName,
String cloudId,
String representationName,
String version)
Grants permissions to the current user for the specified version.
|
protected org.springframework.context.ApplicationContext context
protected static final org.slf4j.Logger LOGGER
protected ResourcePermissionManager(org.springframework.context.ApplicationContext context)
public abstract int grantPermissionsToTaskResources(eu.europeana.cloud.service.dps.DpsTask task,
String topologyName,
String topologyUserName,
String authorizationHeader)
throws TaskSubmissionException
TaskSubmissionExceptionprotected void grantPermissionToVersion(String authorizationHeader, String topologyUserName, String cloudId, String representationName, String version) throws eu.europeana.cloud.service.mcs.exception.MCSException, TaskSubmissionException
eu.europeana.cloud.service.mcs.exception.MCSExceptionTaskSubmissionExceptionCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.