javax.management.relation
public class: RoleResult [javadoc |
source]
java.lang.Object
javax.management.relation.RoleResult
All Implemented Interfaces:
java$io$Serializable
Represents the result of a multiple access to several roles of a relation
(either for reading or writing).
The serialVersionUID of this class is -6304063118040985512L
.
Constructor: |
public RoleResult(RoleList list,
RoleUnresolvedList unresolvedList) {
setRoles(list);
setRolesUnresolved(unresolvedList);
return;
}
Parameters:
list - list of roles successfully accessed.
unresolvedList - list of roles not accessed (with problem
descriptions).
|
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.management.relation.RoleResult Detail: |
public RoleList getRoles() {
return roleList;
}
Retrieves list of roles successfully accessed. |
public RoleUnresolvedList getRolesUnresolved() {
return unresolvedRoleList;
}
Retrieves list of roles unsuccessfully accessed. |
public void setRoles(RoleList list) {
if (list != null) {
roleList = new RoleList();
for (Iterator< ? > roleIter = list.iterator();
roleIter.hasNext();) {
Role currRole = (Role)(roleIter.next());
roleList.add((Role)(currRole.clone()));
}
} else {
roleList = null;
}
return;
}
Sets list of roles successfully accessed. |
public void setRolesUnresolved(RoleUnresolvedList unresolvedList) {
if (unresolvedList != null) {
unresolvedRoleList = new RoleUnresolvedList();
for (Iterator< ? > roleUnresIter = unresolvedList.iterator();
roleUnresIter.hasNext();) {
RoleUnresolved currRoleUnres =
(RoleUnresolved)(roleUnresIter.next());
unresolvedRoleList.add((RoleUnresolved)(currRoleUnres.clone()));
}
} else {
unresolvedRoleList = null;
}
return;
}
Sets list of roles unsuccessfully accessed. |