|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.sree.security.Permission
public class Permission
Default implementation of permission. A permission contains list of users and roles with permission to read, write, or delete.
| Constructor Summary | |
|---|---|
Permission()
|
|
| Method Summary | |
|---|---|
boolean |
check(inetsoft.uql.util.Identity identity,
char acc)
Check the if an identity is on the permission list. |
boolean |
check(String name,
char acc,
int type)
Check the if an identity is on the permission list. |
boolean |
checkGroup(String name,
char acc)
Check the if an role is on the permission list. |
boolean |
checkRole(String name,
char acc)
Check the if an role is on the permission list. |
boolean |
checkUser(String name,
char acc)
Check the if an user is on the permission list. |
Object |
clone()
|
boolean |
equals(Object obj)
Check if two permission setting is equals. |
String[] |
getDeleteGroups()
Get a list of groups that have delete permission. |
String[] |
getDeleteRoles()
Get a list of roles that have delete permission. |
String[] |
getDeleteUsers()
Get a list of users that have delete permission. |
String[] |
getReadGroups()
Get a list of groups that have read permission. |
String[] |
getReadRoles()
Get a list of roles that have read permission. |
String[] |
getReadUsers()
Get a list of users that have read permission. |
String[] |
getWriteGroups()
Get a list of groups that have write permission. |
String[] |
getWriteRoles()
Get a list of roles that have write permission. |
String[] |
getWriteUsers()
Get a list of users that have write permission. |
boolean |
isBlank()
Check if a permission setting is blank. |
void |
parseXML(Element tag)
Method to parse an xml segment. |
void |
setDeleteGroups(String[] groups)
Get a list of groups that have delete permission. |
void |
setDeleteRoles(String[] roles)
Set the roles that have delete permission. |
void |
setDeleteUsers(String[] users)
Set the users that have delete permission. |
void |
setReadGroups(String[] groups)
Set the groups that have read permission. |
void |
setReadRoles(String[] roles)
Set the roles that have read permission. |
void |
setReadUsers(String[] users)
Set the users that have read permission. |
void |
setWriteGroups(String[] groups)
Set the groups that have write permission. |
void |
setWriteRoles(String[] roles)
Set the roles that have write permission. |
void |
setWriteUsers(String[] users)
Set the users that have write permission. |
String |
toString()
|
void |
writeXML(PrintWriter writer)
Write the xml segment to print writer. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Permission()
| Method Detail |
|---|
public void setReadUsers(String[] users)
public String[] getReadUsers()
public void setReadRoles(String[] roles)
public String[] getReadRoles()
public void setReadGroups(String[] groups)
public String[] getReadGroups()
public void setWriteUsers(String[] users)
public String[] getWriteUsers()
public void setWriteRoles(String[] roles)
public String[] getWriteRoles()
public void setWriteGroups(String[] groups)
public String[] getWriteGroups()
public void setDeleteUsers(String[] users)
public String[] getDeleteUsers()
public void setDeleteRoles(String[] roles)
public String[] getDeleteRoles()
public String[] getDeleteGroups()
public void setDeleteGroups(String[] groups)
public boolean checkUser(String name,
char acc)
name - user name.acc - access right, 'r', 'w', or 'd'.
public boolean check(inetsoft.uql.util.Identity identity,
char acc)
public boolean check(String name,
char acc,
int type)
name - identity name.acc - access right, 'r', 'w', or 'd'.type - identity type.
public boolean checkRole(String name,
char acc)
name - role name.acc - access right, 'r', 'w', or 'd'.
public boolean checkGroup(String name,
char acc)
name - role name.acc - access right, 'r', 'w', or 'd'.public Object clone()
clone in class Objectpublic String toString()
toString in class Objectpublic boolean isBlank()
public boolean equals(Object obj)
equals in class Objectpublic void writeXML(PrintWriter writer)
writeXML in interface inetsoft.util.XMLSerializablewriter - the destination print writer.
public void parseXML(Element tag)
throws Exception
parseXML in interface inetsoft.util.XMLSerializableException
|
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 | ||||||||