|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.util.AbstractIdentity
inetsoft.sree.security.Role
public class Role
This class defines the role.
| 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 |
|---|
public static String ADMINISTRATOR
public static String ADMINISTRATOR_R
public static String EVERYONE
protected String name
protected String[] roles
protected String desc
| Constructor Detail |
|---|
public Role()
public Role(String name)
name - the specified role's name.
public Role(String name,
String desc)
name - the specified role's name.desc - the specified description.
public Role(String name,
String[] roles)
name - the specified role's name.roles - the parent roles.| Method Detail |
|---|
public String getName()
public String[] getRoles()
getRoles in interface inetsoft.uql.util.IdentitygetRoles in class inetsoft.uql.util.AbstractIdentitypublic String getDescription()
public static boolean isAdmin(String roleid)
public Object clone()
clone in interface inetsoft.uql.util.Identityclone in class inetsoft.uql.util.AbstractIdentitypublic int getType()
public XPrincipal create()
public String toString()
toString in class inetsoft.uql.util.AbstractIdentity
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||