|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RelationMBean
An interface to referable relations. It maintains direct handles to role actors in addition to their object names. It notifies about role updates with its own notifications instead of the ones provided by the relation service.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE |
| Method Summary | |
|---|---|
boolean |
addActorName(String theRoleName,
int index,
ObjectName actor)
Adds an actor to the specified index of the specified role. |
boolean |
addActorName(String theRoleName,
ObjectName actor)
Adds an actor to the specified role. |
boolean |
addActorNames(String theRoleName,
Collection actors)
Adds actors to the specified role. |
void |
addToService()
Adds the relation to the relation service. |
void |
clearRole(String theRoleName)
Clears all actors from the specified role without checking write mode. |
Object |
getActor(String theRoleName)
Gets the first actor of the specified role. |
Object |
getActor(String theRoleName,
int index)
Gets the indexed actor of the specified role. |
Object |
getActor(String theRoleName,
ObjectName actor)
Gets the named actor of the specified role. |
ObjectName |
getActorName(String theRoleName)
Gets the first actor of the specified role. |
ObjectName |
getActorName(String theRoleName,
int index)
Gets the indexed actor of the specified role. |
RelationServiceMBean |
getRelationService()
Gets the configurable relation service. |
List |
getRoleActors(String theRoleName)
Gets actors of the specified role. |
boolean |
isNamedActorInRole(String theRoleName,
ObjectName actor)
Checks whether an actor is in the specified role. |
ObjectName |
removeActorName(String theRoleName,
int index)
Removes an indexed actor from the specified role. |
boolean |
removeActorName(String theRoleName,
ObjectName actor)
Removes an actor from the specified role. |
boolean |
removeActorNames(String theRoleName,
Collection actors)
Removes actors from the specified role. |
void |
removeFromService()
Removes the relation the relation service. |
List |
retrieveRole(String theRoleName)
Retrieves actors from the specified role without checking read mode. |
ObjectName |
setActorName(String theRoleName,
int index,
ObjectName actor)
Sets the indexed actor of the specified role. |
void |
setActorName(String theRoleName,
ObjectName actor)
Sets an actor to be the only one for the specified role. |
| Methods inherited from interface javax.management.relation.RelationSupportMBean |
|---|
isInRelationService, setRelationServiceManagementFlag |
| Methods inherited from interface javax.management.relation.Relation |
|---|
getAllRoles, getReferencedMBeans, getRelationId, getRelationServiceName, getRelationTypeName, getRole, getRoleCardinality, getRoles, handleMBeanUnregistration, retrieveAllRoles, setRole, setRoles |
| Methods inherited from interface org.norther.tammi.core.base.ReferableMBean |
|---|
getMBean |
| Method Detail |
|---|
RelationServiceMBean getRelationService()
throws RelationServiceNotRegisteredException
RelationServiceNotRegisteredException - if the service is not
registered.List retrieveRole(String theRoleName)
theRoleName - the name of the role.
void clearRole(String theRoleName)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
boolean isNamedActorInRole(String theRoleName,
ObjectName actor)
throws RoleNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.actor - an actor for the role.
RoleNotFoundException - if there is no role with given name.
RelationServiceNotRegisteredException - if the service is not
registered.
void setActorName(String theRoleName,
ObjectName actor)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.actor - an actor for the role.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
ObjectName setActorName(String theRoleName,
int index,
ObjectName actor)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.index - the index of the actor.actor - an actor for the role.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
IndexOutOfBoundsException - if the index is not within the limits.
boolean addActorName(String theRoleName,
ObjectName actor)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.actor - an actor for the role.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
boolean addActorName(String theRoleName,
int index,
ObjectName actor)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.index - the index of the actor.actor - an actor for the role.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
IndexOutOfBoundsException - if the index is not within the limits.
boolean addActorNames(String theRoleName,
Collection actors)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.actors - a collection of actors for the role.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
boolean removeActorName(String theRoleName,
ObjectName actor)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.actor - an actor in the role.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
ObjectName removeActorName(String theRoleName,
int index)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.index - the index of the actor.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
IndexOutOfBoundsException - if the index is not within the limits.
boolean removeActorNames(String theRoleName,
Collection actors)
throws RoleNotFoundException,
InvalidRoleValueException,
RelationNotFoundException,
RelationTypeNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.actors - a collection of actors to remove.
RoleNotFoundException - if there is no role with given name.
InvalidRoleValueException - if the value provided for the role is
not valid.
RelationNotFoundException - if the relation has not been added in
the service.
RelationTypeNotFoundException - if the relation type has not been
declared.
RelationServiceNotRegisteredException - if the service is not
registered.
IndexOutOfBoundsException - if the index is not within the limits.
ObjectName getActorName(String theRoleName)
throws RoleNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.
RoleNotFoundException - if there is no role with given name.
RelationServiceNotRegisteredException - if the service is not
registered.
ObjectName getActorName(String theRoleName,
int index)
throws RoleNotFoundException,
RelationServiceNotRegisteredException
theRoleName - the name of the role.index - the index of the actor.
RoleNotFoundException - if there is no role with given name.
RelationServiceNotRegisteredException - if the service is not
registered.
IndexOutOfBoundsException - if the index is not within the limits.Object getActor(String theRoleName)
theRoleName - the name of the role.
Object getActor(String theRoleName,
int index)
theRoleName - the name of the role.index - the index of the actor.
IndexOutOfBoundsException - if the index is not within the limits.
Object getActor(String theRoleName,
ObjectName actor)
theRoleName - the name of the role.actor - an actor in the role.
List getRoleActors(String theRoleName)
theRoleName - the name of the role.
void addToService()
throws RoleNotFoundException,
InvalidRelationIdException,
InvalidRoleValueException,
InstanceNotFoundException,
RelationTypeNotFoundException,
InvalidRelationServiceException,
RelationServiceNotRegisteredException
RoleNotFoundException - if there is no role with given name.
InvalidRelationIdException - if the relation id is not valid.
InvalidRoleValueException - if the value provided for the role is
not valid.
InstanceNotFoundException - if the relation has not been
registered.
RelationTypeNotFoundException - if the relation type has not been
declared.
InvalidRelationServiceException - if the service is not the correct
one.
RelationServiceNotRegisteredException - if the service is not
registered.void removeFromService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||