public interface ITextGridPermission
Modifier and Type | Field and Description |
---|---|
static int |
CREATE |
static int |
DELEGATE |
static int |
DELETE |
static int |
PUBLISH |
static int |
READ |
static int |
RESET
Indicates the current permissions are unknown and have been reset, e.g.,
due to a SID change.
|
static int |
UNKNOWN
Indicates the current permissions are unknown and have to be retrieved
yet.
|
static int |
UPDATE |
Modifier and Type | Method and Description |
---|---|
void |
assertPermission(int permission,
String errorMessage,
Object... arguments)
Asserts that the given permissions are available.
|
int |
getPermissions()
Return the user's permissions on the current resource.
|
boolean |
hasPermissions(int rights)
Convenience function that returns true when the user has at least the
given rights on the given resource.
|
static final int UNKNOWN
static final int RESET
static final int READ
static final int CREATE
static final int UPDATE
static final int DELETE
static final int PUBLISH
static final int DELEGATE
int getPermissions() throws CoreException
CoreException
- with further details when something goes wrong determining
the permissions. FIXME: This is subject to TG-23 refactoring.boolean hasPermissions(int rights) throws CoreException
rights
- the requested rights, bitwise or'edCoreException
- with further details when something goes wrong determining
the permissions. FIXME: This is subject to TG-23 refactoring.void assertPermission(int permission, String errorMessage, Object... arguments) throws CoreException
permission
- The permission requestederrorMessage
- Error message for the status object constructed when the
permission is not availablearguments
- Arguments for the errorMessage, see
MessageFormat.format(String, Object...)
CoreException
- when the requested permissions are not available, or when
something goes wrong determining them.
FIXME: This is subject to TG-23 refactoring.