nl.innovationinvestments.docstore.storage
Interface PermissionValidator
- All Known Implementing Classes:
- PermissionValidatorHttp, PermissionValidatorHttpContent
public interface PermissionValidator
This interface is used to check for permissions of all kinds.
- Author:
- User
|
Method Summary |
java.lang.String |
checkFor(java.lang.String action,
java.lang.String storageId,
FilesContainer filesContainer,
FileContainer fileContainer,
java.util.Locale locale)
Returns null if the action is allowed, or not null (usually a error message, that is why the locale is for) when the action is not allowed. |
void |
sendEvent(java.lang.String event,
java.lang.String storageId,
FilesContainer filesContainer,
FileContainer fileContainer,
java.util.Locale locale)
|
READ_ACTION
static final java.lang.String READ_ACTION
- See Also:
- Constant Field Values
WRITE_ACTION
static final java.lang.String WRITE_ACTION
- See Also:
- Constant Field Values
DELETE_ACTION
static final java.lang.String DELETE_ACTION
- See Also:
- Constant Field Values
INSERT_EVENT
static final java.lang.String INSERT_EVENT
- See Also:
- Constant Field Values
UPDATE_EVENT
static final java.lang.String UPDATE_EVENT
- See Also:
- Constant Field Values
DELETE_EVENT
static final java.lang.String DELETE_EVENT
- See Also:
- Constant Field Values
checkFor
java.lang.String checkFor(java.lang.String action,
java.lang.String storageId,
FilesContainer filesContainer,
FileContainer fileContainer,
java.util.Locale locale)
- Returns null if the action is allowed, or not null (usually a error message, that is why the locale is for) when the action is not allowed.
- Parameters:
action - id -
- Returns:
sendEvent
void sendEvent(java.lang.String event,
java.lang.String storageId,
FilesContainer filesContainer,
FileContainer fileContainer,
java.util.Locale locale)
Copyright © 2010. All Rights Reserved.