|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Title: Knowledge Control System
Company: OntoText Lab. Sirma AI.
| Method Summary | |
void |
addRule(Rule rule)
Add a new security rule for the Role |
String |
getDescription()
Gets the role description |
int |
getId()
Retireve the Id of that role |
String |
getName()
Retireve the Name of that role |
Set |
getParentRoles()
Retrieve a list of roleIDs of the parent roles. |
Set |
getRules(boolean direct)
Retrive a list of rules in the Role. |
String |
getUri()
|
void |
removeRule(Rule rule)
Remove a security Rule from the role |
void |
setDescription(String descr)
Sets role description |
void |
setId(int id)
Sets roles id. |
void |
setName(String roleName)
Change the role Name |
void |
setParentRoles(Set parents)
|
void |
setUri(String uri)
|
ArrayList |
toSql()
Creates update queries over the roles, roles_hierarchy and roles_rules tables. |
| Method Detail |
public int getId()
public void setId(int id)
id - the id to be setpublic void setDescription(String descr)
descr - the description of the rolepublic String getDescription()
public String getName()
public void setName(String roleName)
throws NullParameterException
roleName - New name for the role
NullParameterException - whenever the parameter is null
public void addRule(Rule rule)
throws NullParameterException
rule - the interface to a new rule
NullParameterException - whenever the parameter is null
public void removeRule(Rule rule)
throws NullParameterException
rule - rule to remove
NullParameterException - whenever the parameter is nullpublic Set getRules(boolean direct)
direct - depending on this the result will contain either the own rules of this role,
either all inherited rules.
public Set getParentRoles()
public void setParentRoles(Set parents)
throws NullParameterException
parents - set of the ids of the roles to be inherited
NullParameterException - whenever the parameter is nullpublic ArrayList toSql()
public void setUri(String uri)
public String getUri()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||