|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.bristleback.server.bristle.rights.ConnectorRightsSet
public class ConnectorRightsSet
Wrapper class containing synchronized set of connector actual rights.
All operations on this set are thread safe.
New empty connector rights set is created automatically for every connector,
and it is stored as a connector variable with a name given in
BristleConstants class.
For more useful methods using connector rights set, see ConnectorRightsUtil.
| Constructor Summary | |
|---|---|
ConnectorRightsSet()
Creates empty connector rights set. |
|
| Method Summary | |
|---|---|
void |
addRight(java.lang.String right)
Adds right with given name. |
boolean |
hasRight(java.lang.String right)
Checks whether set contains given right. |
boolean |
hasRights(java.util.Collection rightsToCheck)
Checks whether connector rights set contains all rights given in collection. |
void |
removeRight(java.lang.String right)
Removes right given as a parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectorRightsSet()
| Method Detail |
|---|
public void addRight(java.lang.String right)
right - name of the right.public boolean hasRights(java.util.Collection rightsToCheck)
rightsToCheck - collection of checked rights.
public boolean hasRight(java.lang.String right)
right - name of the right to check.
public void removeRight(java.lang.String right)
right - right to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||