D
- The command endpoint definitionpublic class AbstractCommandEndpoint<D extends CommandEndpointDefinition>
extends info.magnolia.rest.AbstractEndpoint<D>
CommandEndpointDefinition
Modifier and Type | Field and Description |
---|---|
protected info.magnolia.commands.CommandsManager |
commandsManager |
protected static String |
STATUS_MESSAGE_COMMAND_NOT_FOUND |
protected static String |
STATUS_MESSAGE_ERROR_OCCURRED |
protected static String |
STATUS_MESSAGE_FORBIDDEN |
protected static String |
STATUS_MESSAGE_OK |
Constructor and Description |
---|
AbstractCommandEndpoint(D endpointDefinition,
info.magnolia.commands.CommandsManager commandsManager) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isCommandExecutableByCurrentUser(String catalogName,
String commandName)
Checks whether the current user is allowed to execute the requested command.
|
protected static final String STATUS_MESSAGE_OK
protected static final String STATUS_MESSAGE_FORBIDDEN
protected static final String STATUS_MESSAGE_COMMAND_NOT_FOUND
protected static final String STATUS_MESSAGE_ERROR_OCCURRED
protected final info.magnolia.commands.CommandsManager commandsManager
@Inject public AbstractCommandEndpoint(D endpointDefinition, info.magnolia.commands.CommandsManager commandsManager)
protected boolean isCommandExecutableByCurrentUser(String catalogName, String commandName)
catalogName
- The catalog name (might be null)commandName
- The command nameAccessDefinition
Copyright © 2020 Magnolia International Ltd.. All rights reserved.