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

Field Summary
 
Fields inherited from interface org.norther.tammi.core.base.ReferableMBean
DEFAULT_ID, ID, MBEAN, MBEAN_DESCRIPTION, TYPE
 
Method Summary
 Integer checkRoleWriting(Role theRole, Set oldActors, ObjectName addedActor, ObjectName removedActor, String theRelTypeName, Boolean theInitFlg)
          Checks if the given role can be set in a relation of given type.
 
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
 
Methods inherited from interface org.norther.tammi.core.base.ReferableMBean
getMBean
 

Method Detail

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.