public class UserPermission extends Object implements ObjectPermission<String>
ObjectPermission.Type
Constructor and Description |
---|
UserPermission(ObjectPermission.Type type,
String identifier)
Creates a new UserPermission having the given type and identifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getObjectIdentifier()
Returns the identifier of the specific object affected by this
permission.
|
ObjectPermission.Type |
getType()
Returns the type of operation affected by this permission.
|
int |
hashCode() |
public UserPermission(ObjectPermission.Type type, String identifier)
type
- The type of operation affected by this permission.identifier
- The username of the User associated with the operation
affected by this permission.public String getObjectIdentifier()
ObjectPermission
getObjectIdentifier
in interface ObjectPermission<String>
public ObjectPermission.Type getType()
Permission
getType
in interface Permission<ObjectPermission.Type>
Copyright © 2013. All Rights Reserved.