public static class DOFPermission.Unknown extends DOFPermission
DOFPermission.ActAs, DOFPermission.ActAsAny, DOFPermission.Binding, DOFPermission.Define, DOFPermission.Factory, DOFPermission.IAm, DOFPermission.Provider, DOFPermission.Requestor, DOFPermission.TunnelDomain, DOFPermission.UnknownACT_AS, BINDING, DEFINE, I_AM, PROVIDER, REQUESTOR, TUNNEL_DOMAIN| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Get the serialized bytes of the permission.
|
DOFPermissionSet |
getComplement()
Return the complement permission for this permission.
|
short |
getPermissionType()
Returns the type of the permission.
|
boolean |
isAllowedBy(DOFPermission permission)
Returns whether or not this Permission is a subset of the permissions
allowed by the specified Permission.
|
boolean |
isAllowedBy(DOFPermissionSet permissionSet)
Returns whether or not this permission is a subset of the permissions
allowed by the specified permission set.
|
boolean |
isIntersection(DOFPermission permission)
Returns whether or not this permission has an intersection with the specified permission.
|
boolean |
isTerminal()
Returns whether or not this permission is a terminal permission.
|
void |
marshal(DOFMarshalContext context,
java.lang.Object state,
DOFPacket p)
Write an object to a serialized form to the specified buffer, according
to the context specified and with the given state.
|
DOFPermissionSet |
normalize()
Normalize this permission.
|
addFactory, create, create, equals, hashCode, isExplicitpublic boolean isAllowedBy(DOFPermission permission)
DOFPermissionisAllowedBy in class DOFPermissionpermission - The Permission to compare permissions against.public boolean isIntersection(DOFPermission permission)
DOFPermissionDOFPermission.normalize())
where either is allowed by the other.isIntersection in class DOFPermissionpermission - The permission to determine an intersection.public boolean isAllowedBy(DOFPermissionSet permissionSet)
DOFPermissionisAllowedBy in class DOFPermissionpermissionSet - The permission set to compare permissions against.public boolean isTerminal()
DOFPermissionisTerminal in class DOFPermissionpublic DOFPermissionSet normalize()
DOFPermissionnormalize in class DOFPermissionpublic DOFPermissionSet getComplement()
DOFPermissionDOFPermission.REQUESTOR is
the complement of DOFPermission.PROVIDER.getComplement in class DOFPermissionpublic short getPermissionType()
DOFPermissiongetPermissionType in class DOFPermissionpublic void marshal(DOFMarshalContext context, java.lang.Object state, DOFPacket p) throws DOFMarshalException
DOFPermissionmarshal in interface org.opendof.core.internal.protocol.Marshallablemarshal in class DOFPermissioncontext - The context of the marshaling to be performed.state - The state in which the marshalling is done. This may affect the result.p - The buffer which will receive the marshaled data. Must not be null.DOFMarshalException - If there are errors in the data or the buffer.public byte[] getBytes()
DOFPermissiongetBytes in class DOFPermission