|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Rule.java
Title: Knowledge Control System
Company: OntoText Lab. Sirma AI.
| 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. |
| Method Detail |
public int getId()
public void setId(int id)
id - the id to be setpublic String getName()
public void setName(String name)
throws NullParameterException
name - name of the rule
NullParameterException - whenever the parameter is null.public String getDescription()
public void setDescription(String descr)
throws NullParameterException
descr - the description to be set
NullParameterException - whenever the parameter is null.
public void setRestriction(Restriction restriction)
throws NullParameterException
restriction - restriction
NullParameterException - whenecer the parameter is nullpublic Restriction getRestriction()
public void setReadRight(boolean granted)
granted - whether this right to be granted or banned.public void setAddRight(boolean granted)
granted - whether this right to be granted or banned.public void setRemoveRight(boolean granted)
granted - whether this right to be granted or banned.public void setHistoryRight(boolean granted)
granted - whether this right to be granted or banned.public void setAdminRight(boolean granted)
granted - whether this right to be granted or banned.public boolean getReadRight()
public boolean getAddRight()
public boolean getRemoveRight()
public boolean getHistoryRight()
public boolean getAdminRight()
public ArrayList toSql()
public void grantRight(Right right)
right - the type of the rightpublic void setUri(String uri)
public String getUri()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||