|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.omm.security.RuleImpl
RuleImpl.java
Title: Knowledge Control System
Company: OntoText Lab. Sirma AI.
| Constructor Summary | |
RuleImpl(int id,
String name,
String description)
|
|
RuleImpl(String name,
String description)
|
|
| Method Summary | |
boolean |
getAddRight()
Gets the Add right. |
boolean |
getAdminRight()
Gets the Admin right. |
String |
getDescription()
Gets rule's description. |
boolean |
getHistoryRight()
Gets the History right. |
int |
getId()
Get the Id of the rule |
String |
getName()
Gets the name of the rule |
boolean |
getReadRight()
Gets the Read right. |
boolean |
getRemoveRight()
Gets the Remove right. |
Restriction |
getRestriction()
Restrive the restriction of the rule |
String |
getUri()
|
void |
grantRight(Right right)
Grants a right through this rule. |
void |
setAddRight(boolean granted)
Sets the Add right. |
void |
setAdminRight(boolean granted)
Sets the Admin right. |
void |
setDescription(String descr)
Sets rule's description. |
void |
setHistoryRight(boolean granted)
Sets the History right. |
void |
setId(int id)
Sets the id of the rule. |
void |
setName(String name)
Sets the name of the rule. |
void |
setReadRight(boolean granted)
Sets the read right. |
void |
setRemoveRight(boolean granted)
Sets the Remove right. |
void |
setRestriction(Restriction restriction)
Set the restriction of the Rule. |
void |
setUri(String uri)
|
ArrayList |
toSql()
Creates update queries over the rules table. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RuleImpl(int id,
String name,
String description)
throws NullParameterException
public RuleImpl(String name,
String description)
throws NullParameterException
| Method Detail |
public void setRestriction(Restriction restriction)
throws NullParameterException
Rule
setRestriction in interface Rulerestriction - restriction
NullParameterException - whenecer the parameter is nullpublic Restriction getRestriction()
Rule
getRestriction in interface Rulepublic int getId()
Rule
getId in interface Rulepublic void setId(int id)
Rule
setId in interface Ruleid - the id to be setpublic String getName()
Rule
getName in interface Rule
public void setName(String name)
throws NullParameterException
Rule
setName in interface Rulename - name of the rule
NullParameterException - whenever the parameter is null.public String getDescription()
Rule
getDescription in interface Rule
public void setDescription(String descr)
throws NullParameterException
Rule
setDescription in interface Ruledescr - the description to be set
NullParameterException - whenever the parameter is null.public void setReadRight(boolean granted)
Rule
setReadRight in interface Rulegranted - whether this right to be granted or banned.public void setAddRight(boolean granted)
Rule
setAddRight in interface Rulegranted - whether this right to be granted or banned.public void setRemoveRight(boolean granted)
Rule
setRemoveRight in interface Rulegranted - whether this right to be granted or banned.public void setHistoryRight(boolean granted)
Rule
setHistoryRight in interface Rulegranted - whether this right to be granted or banned.public void setAdminRight(boolean granted)
Rule
setAdminRight in interface Rulegranted - whether this right to be granted or banned.public boolean getReadRight()
Rule
getReadRight in interface Rulepublic boolean getAddRight()
Rule
getAddRight in interface Rulepublic boolean getRemoveRight()
Rule
getRemoveRight in interface Rulepublic boolean getHistoryRight()
Rule
getHistoryRight in interface Rulepublic boolean getAdminRight()
Rule
getAdminRight in interface Rulepublic ArrayList toSql()
Rule
toSql in interface Rulepublic void grantRight(Right right)
Rule
grantRight in interface Ruleright - the type of the rightpublic void setUri(String uri)
setUri in interface Rulepublic String getUri()
getUri in interface Rule
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||