org.usergrid.persistence
Class SimpleRoleRef
java.lang.Object
org.usergrid.persistence.SimpleRoleRef
- All Implemented Interfaces:
- EntityRef, RoleRef
public class SimpleRoleRef
- extends Object
- implements RoleRef
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groupId
protected final UUID groupId
roleName
protected final String roleName
id
protected final UUID id
SimpleRoleRef
public SimpleRoleRef(String roleName)
SimpleRoleRef
public SimpleRoleRef(UUID groupId,
String roleName)
forRoleEntity
public static SimpleRoleRef forRoleEntity(Entity role)
forRoleName
public static SimpleRoleRef forRoleName(String roleName)
forGroupIdAndRoleName
public static SimpleRoleRef forGroupIdAndRoleName(UUID groupId,
String roleName)
getIdForRoleName
public static UUID getIdForRoleName(String roleName)
getIdForGroupIdAndRoleName
public static UUID getIdForGroupIdAndRoleName(UUID groupId,
String roleName)
getUuid
public UUID getUuid()
- Description copied from interface:
EntityRef
- Gets the id.
- Specified by:
getUuid
in interface EntityRef
- Returns:
- the id
getType
public String getType()
- Description copied from interface:
EntityRef
- Gets the type.
- Specified by:
getType
in interface EntityRef
- Returns:
- the type
getGroupRef
public EntityRef getGroupRef()
- Specified by:
getGroupRef
in interface RoleRef
getRoleName
public String getRoleName()
- Specified by:
getRoleName
in interface RoleRef
getGroupId
public UUID getGroupId()
- Specified by:
getGroupId
in interface RoleRef
getApplicationRoleName
public String getApplicationRoleName()
- Specified by:
getApplicationRoleName
in interface RoleRef
Copyright © 2013. All Rights Reserved.