org.norther.tammi.core.relation
Interface RelationServiceMBean
- All Superinterfaces:
- ReferableMBean, RelationServiceMBean
public interface RelationServiceMBean
- extends RelationServiceMBean, ReferableMBean
An interface to referable relation services.
- Author:
- Ilkka Priha
| Methods inherited from interface javax.management.relation.RelationServiceMBean |
addRelation, addRelationType, checkRoleReading, checkRoleWriting, createRelation, createRelationType, findAssociatedMBeans, findReferencingRelations, findRelationsOfType, getAllRelationIds, getAllRelationTypeNames, getAllRoles, getPurgeFlag, getReferencedMBeans, getRelationTypeName, getRole, getRoleCardinality, getRoleInfo, getRoleInfos, getRoles, hasRelation, isActive, isRelation, isRelationMBean, purgeRelations, removeRelation, removeRelationType, sendRelationCreationNotification, sendRelationRemovalNotification, sendRoleUpdateNotification, setPurgeFlag, setRole, setRoles, updateRoleMap |
checkRoleWriting
Integer checkRoleWriting(Role theRole,
Set oldActors,
ObjectName addedActor,
ObjectName removedActor,
String theRelTypeName,
Boolean theInitFlg)
throws RelationTypeNotFoundException
- Checks if the given role can be set in a relation of given type. If the
role has changed only by one added actor and/or one removed actor, they
can be given separately to speed up the check.
- Parameters:
theRole - the role to be checked.oldActors - a set of existing actors.addedActor - an optional added actor.removedActor - an optional removed actor.theRelTypeName - the name of the relation type.theInitFlg - an initialization flag ignoring write check.
- Returns:
- the status constant of the check from RoleStatus.
- Throws:
RelationTypeNotFoundException - if the relation type is unknown.
Copyright © 2004 The Norther Organization. All rights reserved.