public class WorkspacePreIngestPlugin extends Object implements PreIngestPlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE |
| Constructor and Description |
|---|
WorkspacePreIngestPlugin(WorkspaceSecurityConfiguration config,
org.osgi.service.event.EventAdmin eventAdmin) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
alertMissingClaim(String ownerAttribute) |
protected Map<String,SortedSet<String>> |
getSubjectAttributes() |
protected String |
getSubjectName() |
CreateRequest |
process(CreateRequest request)
Ensures a workspace has an owner.
|
DeleteRequest |
process(DeleteRequest input)
Processes the
DeleteRequest prior to the execution of the update operation. |
UpdateRequest |
process(UpdateRequest request)
Ensures the owner attribute is always present.
|
public static final String EXCEPTION_MESSAGE
public WorkspacePreIngestPlugin(WorkspaceSecurityConfiguration config, org.osgi.service.event.EventAdmin eventAdmin)
protected String getSubjectName()
protected void alertMissingClaim(String ownerAttribute)
public CreateRequest process(CreateRequest request) throws PluginExecutionException, StopProcessingException
process in interface PreIngestPluginrequest - the CreateRequest to processPluginExecutionExceptionStopProcessingException - - if the current subject doesn't have an email attributepublic UpdateRequest process(UpdateRequest request) throws PluginExecutionException, StopProcessingException
process in interface PreIngestPluginrequest - the UpdateRequest to processPluginExecutionExceptionStopProcessingExceptionpublic DeleteRequest process(DeleteRequest input) throws PluginExecutionException, StopProcessingException
PreIngestPluginDeleteRequest prior to the execution of the update operation.process in interface PreIngestPlugininput - the DeleteRequest to processDeleteRequest to pass to the next PreIngestPlugin, or if this is the last PreIngestPlugin to be calledPluginExecutionException - thrown when an error in processing occursStopProcessingExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.