public class PermissionEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
DOMAIN
The Constant DOMAIN.
|
static java.lang.String |
DOMAIN_ATR
The domain atr.
|
static byte |
OWNER
The Constant OWNER.
|
static java.lang.String |
OWNER_ATR
The domain atr.
|
static byte |
VISIBLE
The Constant VISIBLE.
|
static java.lang.String |
VISIBLE_ATR
The domain atr.
|
static byte |
WRITABLE
The Constant WRITABLE.
|
static java.lang.String |
WRITE_ATR
The domain atr.
|
Constructor and Description |
---|
PermissionEntry(EntryId id,
boolean owner,
boolean write,
boolean visible,
org.polarsys.chess.chessmlprofile.Core.Domain domain)
Instantiates a new permission entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(byte permission)
Check permission.
|
org.polarsys.chess.chessmlprofile.Core.Domain |
getDomain()
Gets the domain.
|
EntryId |
getId()
Gets the id.
|
static java.lang.String |
getPermissionType(byte permission)
Gets the permission type.
|
boolean |
isOwner()
Checks if is owner.
|
boolean |
isVisible()
Checks if is visible.
|
boolean |
isWriteable()
Checks if is writeable.
|
PermissionEntry |
match(EntryId id)
Match.
|
java.lang.String |
toString() |
public static final byte WRITABLE
public static final byte OWNER
public static final byte VISIBLE
public static final byte DOMAIN
public static java.lang.String OWNER_ATR
public static java.lang.String VISIBLE_ATR
public static java.lang.String WRITE_ATR
public static java.lang.String DOMAIN_ATR
public PermissionEntry(EntryId id, boolean owner, boolean write, boolean visible, org.polarsys.chess.chessmlprofile.Core.Domain domain)
id
- the idowner
- the ownerwrite
- the writevisible
- the visibledomain
- the domainpublic EntryId getId()
public boolean checkPermission(byte permission)
permission
- the permissionpublic org.polarsys.chess.chessmlprofile.Core.Domain getDomain()
public boolean isOwner()
public boolean isWriteable()
public boolean isVisible()
public PermissionEntry match(EntryId id)
id
- the idpublic java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getPermissionType(byte permission)
permission
- the permission