public interface AdminACC extends EnhancedACC
Modifier and Type | Method and Description |
---|---|
void |
add(AuthorisedAgent agent)
Adds an agent to the set of authorised agents, that is, those already
recognised by TuCSoN according to RBAC, in the default TuCSoN node
(installed on
localhost:20504 ). |
void |
add(Permission permission,
java.lang.String policyName)
Adds a permission, that is, a grant stating what is allowed to do in the
organisation, to the given RBAC policy already installed in default
TuCSoN node (installed on
localhost:20504 ). |
void |
add(Policy policy)
Adds a policy, that is, a set of permissions, to the RBAC structure
installed in the default TuCSoN node.
|
void |
add(Role role)
Adds a role, that is, a position in the organisation associated to an
RBAC policy, to the RBAC structure installed in default TuCSoN node
(installed on
localhost:20504 ). |
void |
install(RBACStructure rbac)
Adds an RBAC structure, that is, the set of roles, policies, permissions,
and their relationships, to the default TuCSoN node (installed on
localhost:20504 ). |
void |
install(RBACStructure rbac,
java.lang.Long timeout,
java.lang.String node,
int port)
Adds an RBAC structure, that is, the set of roles, policies, permissions,
and their relationships, to the given TuCSoN node (only local nodes are
supported atm, that is, this installed on
localhost ). |
void |
remove(java.lang.String agentName)
Removes an agent from the list of authorised agents installed in default
TuCSoN node (installed on
localhost:20504 ). |
void |
removePolicy(java.lang.String policyName)
Removes a policy from the RBAC structure installed in default TuCSoN node
(installed on
localhost:20504 ). |
void |
removeRBAC()
Removes the RBAC structure installed in default TuCSoN node (installed on
localhost:20504 ). |
void |
removeRBAC(java.lang.Long timeout,
java.lang.String node,
int port)
Removes the RBAC structure installed in the given TuCSoN node (only local
nodes are supported atm, that is, this installed on
localhost ). |
void |
removeRole(java.lang.String roleName)
Removes a role from the RBAC structure installed in default TuCSoN node
(installed on
localhost:20504 ). |
void |
setBasicAgentClass(java.lang.String newBasicAgentClass)
Sets the basic agent class, that is, the cohort of agents representing
un-authenticated agents (if allowed by the RBAC structure currently
installed) from the RBAC structure installed in default TuCSoN node
(installed on
localhost:20504 ). |
void |
setRoleAgentClass(java.lang.String roleName,
java.lang.String agentClass)
Sets the agent class associated to a role in the RBAC structure installed
in default TuCSoN node (installed on
localhost:20504 ). |
void |
setRolePolicy(java.lang.String roleName,
java.lang.String policyName)
Sets the association between a role and a policy in the RBAC structure
installed in default TuCSoN node (installed on
localhost:20504 ). |
get, in, inp, no, nop, out, rd, rdp, set, spawn
getS, inpS, inS, nopS, noS, outS, rdpS, rdS, setS, setS
inAll, noAll, outAll, rdAll
get, getCompletionEventsList, in, inp, no, nop, out, rd, rdp, set, spawn
getCompletionEventsList, getS, inpS, inS, nopS, noS, outS, rdpS, rdS, setS, setS
enterACC, exit, getPassword, getPendingOperationsMap, getUsername, getUUID, isACCEntered
getCompletionEventsList, inAll, noAll, outAll, rdAll
getCompletionEventsList, uin, uinp, uno, unop, urd, urdp
void add(AuthorisedAgent agent) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).agent
- the authorised agentTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid add(Permission permission, java.lang.String policyName) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).permission
- the permission to addpolicyName
- the name of the existing policy to extendTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid add(Policy policy) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
policy
- the policy to addTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid install(RBACStructure rbac) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException, OperationNotAllowedException
localhost:20504
).rbac
- the RBAC structure to addTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionOperationNotAllowedException
- if the requested TuCSoN operation is not allowed to the
requesting agentvoid install(RBACStructure rbac, java.lang.Long timeout, java.lang.String node, int port) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException, OperationNotAllowedException
localhost
).rbac
- the RBAC structure to addtimeout
- the maximum waiting time for the operation to completenode
- the IP address where the target TuCSoN node is installed (only
local nodes are supported atm, that is, on localhost
)port
- the TCP port where the target TuCSoN node is installedTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionOperationNotAllowedException
- if the requested TuCSoN operation is not allowed to the
requesting agentvoid add(Role role) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).role
- the role to addTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid remove(java.lang.String agentName)
localhost:20504
).agentName
- the name of the agent to removevoid removePolicy(java.lang.String policyName) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).policyName
- the name of the policy to removeTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid removeRBAC() throws OperationNotAllowedException, TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).TucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionOperationNotAllowedException
- if the requested TuCSoN operation is not allowed to the
requesting agentvoid removeRBAC(java.lang.Long timeout, java.lang.String node, int port) throws OperationNotAllowedException, TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost
).timeout
- the maximum waiting time for the operation to completenode
- the IP address where the target TuCSoN node is installed (only
local nodes are supported atm, that is, on localhost
)port
- the TCP port where the target TuCSoN node is installedOperationNotAllowedException
- if the requested TuCSoN operation is not allowed to the
requesting agentTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid removeRole(java.lang.String roleName) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).roleName
- the name of the role to removeTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid setBasicAgentClass(java.lang.String newBasicAgentClass) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).newBasicAgentClass
- the new basic agent classTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid setRoleAgentClass(java.lang.String roleName, java.lang.String agentClass) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).roleName
- the name of the role whose class association should be setagentClass
- the agent class to associate to the given roleTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completionvoid setRolePolicy(java.lang.String roleName, java.lang.String policyName) throws TucsonOperationNotPossibleException, UnreachableNodeException, OperationTimeOutException
localhost:20504
).roleName
- the name of the rolepolicyName
- the name of the policyTucsonOperationNotPossibleException
- if the requested TuCSoN operation cannot be performedUnreachableNodeException
- if the TuCSoN node target of this operation is not
network-reachableOperationTimeOutException
- if the operation timeout expired prior to operation
completion