Lines Matching defs:role

109     //       <relation id> -> ArrayList of <role name>
266 * role infos (provided by the RoleInfo objects), and adds it in the
270 * @param roleInfoArray array of role infos
275 * <P>- the same name has been used for two different role infos
276 * <P>- no role info provided
277 * <P>- one null role info provided
315 * <P>- no role info provided
316 * <P>- one null role info provided
331 // Checks the role infos
334 String excMsg = "No role info provided.";
368 * Retrieves list of role infos (RoleInfo objects) of a given relation
400 * Retrieves role info for given role name of a given relation type.
403 * @param roleInfoName name of role
410 * @exception RoleInfoNotFoundException if the role is not part of the
519 * <P>Roles are initialized according to the role list provided in
528 * @param roleList role list to initialize roles of the relation (can
533 * @exception IllegalArgumentException if null parameter, except the role
534 * list which can be null if no role initialization
535 * @exception RoleNotFoundException if a value is provided for a role
541 * <P>- the same role name is used for two different roles
547 * class expected for that role
548 * <P>- an MBean provided for that role does not exist
607 * <P>- have roles conforming to the role info provided in the relation
631 * <P>- the number of referenced MBeans in a role is less than
633 * <P>- the number of referenced MBeans in a role exceeds expected
636 * class expected for that role
637 * <P>- an MBean provided for a role does not exist
638 * @exception RoleNotFoundException if a value is provided for a role
913 * @param roleName name of role to be checked
918 * <P>- 0 if role can be read
967 * @param role role to be checked
970 * initialization of a role, write access shall not be verified.
974 * <P>- 0 if role can be set
985 public Integer checkRoleWriting(Role role,
991 if (role == null ||
1000 new Object[] {role, relationTypeName, initFlag});
1005 String roleName = role.getRoleName();
1006 List<ObjectName> roleValue = role.getRoleValue();
1080 * Sends a notification (RelationNotification) for a role update in the
1087 * <P>It is called in relation MBean setRole() (for given role) and
1088 * setRoles() (for each role) methods (implementation provided in
1090 * <P>It is also called in Relation Service setRole() (for given role) and
1091 * setRoles() (for each role) methods.
1094 * @param newRole new role (name and new value)
1095 * @param oldValue old role value (List of ObjectName objects)
1127 StringBuilder ntfMsg = new StringBuilder("Value of role ");
1195 * Handles update of the Relation Service role map for the update of given
1196 * role in given relation.
1197 * <P>It is called in relation MBean setRole() (for given role) and
1198 * setRoles() (for each role) methods (implementation provided in
1200 * <P>It is also called in Relation Service setRole() (for given role) and
1201 * setRoles() (for each role) methods.
1204 * must be called when a role is updated.
1207 * @param newRole new role (name and new value)
1208 * @param oldValue old role value (List of ObjectName objects)
1465 * <P>The behavior depends on the cardinality of the role where the
1467 * <P>- if removing one MBean reference in the role makes its number of
1555 // regarding expected minimum role cardinality and current
1592 * where the MBean is referenced in that role will be returned. Else all
1597 * an ArrayList of role names (as an MBean can be referenced in several
1664 // Retrieves list of role names where the MBean is
1678 // referenced in // given role
1701 * where the MBean is referenced in that role will be considered. Else all
1727 // Retrieves the map <relation id> -> <role names> for those
1818 * Retrieves role value for given role name in given relation.
1821 * @param roleName name of role
1823 * @return the ArrayList of ObjectName objects being the role value
1830 * <P>- there is no role with given name
1832 * <P>- the role is not readable.
2036 * Retrieves the number of MBeans currently referenced in the given role.
2039 * @param roleName name of role
2041 * @return the number of currently referenced MBeans in that role
2045 * @exception RoleNotFoundException if there is no role with given name
2107 * Sets the given role in given relation.
2108 * <P>Will check the role according to its corresponding role definition
2114 * @param role role to be set (name and new value)
2120 * @exception RoleNotFoundException if the role does not exist or is not
2122 * @exception InvalidRoleValueException if value provided for role is not
2131 * class expected for that role
2133 * <P>- an MBean provided for that role does not exist
2138 Role role)
2145 if (relationId == null || role == null) {
2151 "setRole", new Object[] {relationId, role});
2168 ((RelationSupport)relObj).setRoleInt(role,
2180 params[0] = role;
2191 new Attribute("Role", role));
2220 * <P>Will check the role according to its corresponding role definition
2309 * <P> ObjectName -> ArrayList of String (role
2411 * referenced in a relation role or being a relation itself.
2668 // -param roleName name of the role where the MBean is referenced
2719 // Checks if already referenced in another role in current
2736 // role
2754 // -param roleName name of the role where the MBean was referenced
2788 // unregistered, the role is updated, then we arrive here.
2805 // Removes obsolete reference to role
2812 // Checks if there is still at least one role in current relation
2962 // -param roleList role list to initialize roles of the relation
2968 // -exception RoleNotFoundException if a value is provided for a role
2974 // - the same role name is used for two different roles
2980 // class expected for that role
2981 // - an MBean provided for that role does not exist
3034 // Checks that each provided role conforms to its role info provided in
3036 // First retrieves a local list of the role infos of the relation type
3047 // Retrieves corresponding role info
3057 // Checks that role conforms to role info,
3070 // Removes role info for that list from list of role infos for
3122 // Only role list parameter used, as default initialization of roles
3124 // uninitialized role to an empty value.
3127 // role value :)
3153 // Checks that given role conforms to given role info.
3158 // -param roleName role name
3159 // -param roleValue role value
3160 // -param roleInfo corresponding role info
3246 // role info, or of a subclass of it
3285 // Initializes roles associated to given role infos to default value (empty
3287 // It will succeed for every role except if the role info has a minimum
3299 // -param roleInfoList list of role infos for roles to be defaulted
3304 // -exception InvalidRoleValueException if role must have a non-empty
3340 // For each role info (corresponding to a role not initialized by the
3341 // role list provided by the user), try to set in the relation a role
3343 // A check is performed to verify that the role can be set to an
3351 // Creates a role
3352 Role role = new Role(roleName, emptyValue);
3359 // Will not throw RoleNotFoundException (role to be
3363 relationObj.setRoleInt(role, true, this, false);
3378 params[0] = role;
3393 new Attribute("Role", role));
3422 // -param roleName role name
3473 excMsgPart = " has an MBean reference to an MBean not of the expected class of references for that role.";
3505 // -param roleName role name
3506 // -param roleNewValue role new value (ArrayList of ObjectNames)
3507 // -param oldValue old role value (ArrayList of ObjectNames)
3627 // expected minimum role cardinality and current number of
3628 // references in each role after removal of the current one.
3641 // -exception RoleNotFoundException if one role given as parameter does
3682 // Retrieves number of MBeans currently referenced in role
3683 // BEWARE! Do not use getRole() as role may be not readable
3690 // Retrieves new number of element in role
3693 // Retrieves role info for that role
3722 // Updates each role in the relation using
3725 // BEWARE: this roleNameList list MUST BE A COPY of a role name
3728 // myRefedMBeanObjName2RelIdsMap!!!! Because each role
3731 // myRefedMBeanObjName2RelIdsMap to refelect the new role