Style Intelligence v12.0

inetsoft.sree.security
Class Role

java.lang.Object
  extended by inetsoft.uql.util.AbstractIdentity
      extended by inetsoft.sree.security.Role
All Implemented Interfaces:
inetsoft.uql.util.Identity, Serializable, Cloneable
Direct Known Subclasses:
FSRole

public class Role
extends inetsoft.uql.util.AbstractIdentity

This class defines the role.

See Also:
Serialized Form

Field Summary
static String ADMINISTRATOR
          The built-in adminstator role.
static String ADMINISTRATOR_R
          The built-in adminstator role which is read-only.
protected  String desc
           
static String EVERYONE
          The built-in everyone role.
protected  String name
           
protected  String[] roles
           
 
Fields inherited from interface inetsoft.uql.util.Identity
GROUP, ROLE, UNKNOWN_USER, USER
 
Constructor Summary
Role()
          Constructor.
Role(String name)
          Constructor.
Role(String name, String desc)
          Constructor.
Role(String name, String[] roles)
          Constructor.
 
Method Summary
 Object clone()
          Clone the object.
 XPrincipal create()
          Create one user.
 String getDescription()
          Get role description.
 String getName()
          Get the name of the role.
 String[] getRoles()
          Get the roles of the role inherit from.
 int getType()
          Get the type of the identity.
static boolean isAdmin(String roleid)
          Check if is admin.
 String toString()
          Get a string representation of this object.
 
Methods inherited from class inetsoft.uql.util.AbstractIdentity
equals, getGroups, hashCode, isEditable, toIdentifier
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ADMINISTRATOR

public static String ADMINISTRATOR
The built-in adminstator role.


ADMINISTRATOR_R

public static String ADMINISTRATOR_R
The built-in adminstator role which is read-only.


EVERYONE

public static String EVERYONE
The built-in everyone role.


name

protected String name

roles

protected String[] roles

desc

protected String desc
Constructor Detail

Role

public Role()
Constructor.


Role

public Role(String name)
Constructor.

Parameters:
name - the specified role's name.

Role

public Role(String name,
            String desc)
Constructor.

Parameters:
name - the specified role's name.
desc - the specified description.

Role

public Role(String name,
            String[] roles)
Constructor.

Parameters:
name - the specified role's name.
roles - the parent roles.
Method Detail

getName

public String getName()
Get the name of the role.


getRoles

public String[] getRoles()
Get the roles of the role inherit from.

Specified by:
getRoles in interface inetsoft.uql.util.Identity
Overrides:
getRoles in class inetsoft.uql.util.AbstractIdentity

getDescription

public String getDescription()
Get role description.


isAdmin

public static boolean isAdmin(String roleid)
Check if is admin.


clone

public Object clone()
Clone the object.

Specified by:
clone in interface inetsoft.uql.util.Identity
Overrides:
clone in class inetsoft.uql.util.AbstractIdentity

getType

public int getType()
Get the type of the identity.


create

public XPrincipal create()
Create one user.


toString

public String toString()
Get a string representation of this object.

Overrides:
toString in class inetsoft.uql.util.AbstractIdentity

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.