public class Binding
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Rights |
rights
instance of the Rights interface
|
private int[] |
subjects
array of numeric subject IDs
|
| Constructor and Description |
|---|
Binding(Rights rights,
int[] subjects)
Package private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Rights |
getRights()
Gets the embedded Rights object.
|
int[] |
getSubjects()
Gets the embedded subjects.
|
boolean |
matches(int sid)
Checks whether this binding matches the specified subject ID.
|
private Rights rights
private int[] subjects
Binding(Rights rights, int[] subjects)
rights - an instance of the Rights interfacesubjects - array of numeric subject IDspublic Rights getRights()
public int[] getSubjects()
public boolean matches(int sid)
sid - numeric subject ID to be checkedtrue if it does