public class OrgPositionChoiceCallback
extends javax.security.auth.callback.ChoiceCallback
ChoiceCallback. Therefore make check for specific classes before
checking for the superclass.| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<QualifiedAgent> |
agents
The
QualifiedAgents that are choices of this callback. |
| Constructor and Description |
|---|
OrgPositionChoiceCallback(java.util.List<QualifiedAgent> agents,
boolean multipleOrgPosAllowed)
Creates a new
ChoiceCallback for organisational positions (and
thus also QualifiedAgents). |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelection(QualifiedAgent agent)
Adds the designated agent to the selection of this choice callback in case
this agent is allowed.
|
java.util.List<QualifiedAgent> |
getAgents()
Gets the
QualifiedAgents that are choices of this callback. |
protected static java.lang.String[] |
getOrgPositions(java.util.List<QualifiedAgent> agents)
Returns the names of the organisational positions of the designated list of
QualifiedAgents in the corresponding order. |
java.util.List<QualifiedAgent> |
getSelectedAgents()
Gets the agents that are selected in the choice.
|
long[] |
getSelectedOrgPositionIDs()
Gets the IDs of the organisational positions that are selected in the
choice.
|
protected final java.util.List<QualifiedAgent> agents
QualifiedAgents that are choices of this callback.public OrgPositionChoiceCallback(java.util.List<QualifiedAgent> agents, boolean multipleOrgPosAllowed)
ChoiceCallback for organisational positions (and
thus also QualifiedAgents).agents - The QualifiedAgents that are choices of this
callback.multipleOrgPosAllowed - Whether multiple organisational positions
are allowed.public java.util.List<QualifiedAgent> getAgents()
QualifiedAgents that are choices of this callback.QualifiedAgents (as unmodifiable list) that are
choices of this callback.public void addSelection(QualifiedAgent agent)
agent - The agent which to add to the selection of this choice
callback in case it is allowed.public long[] getSelectedOrgPositionIDs()
public java.util.List<QualifiedAgent> getSelectedAgents()
protected static java.lang.String[] getOrgPositions(java.util.List<QualifiedAgent> agents)
QualifiedAgents in the corresponding order. This is required
for the constructor of the superclass.agents - The agents from which to retrieve the names of the
organisational positions.QualifiedAgents.