Fields Summary |
---|
private static final long | oldSerialVersionUID |
private static final long | newSerialVersionUID |
private static final ObjectStreamField[] | oldSerialPersistentFields |
private static final ObjectStreamField[] | newSerialPersistentFields |
private static final long | serialVersionUID |
private static final ObjectStreamField[] | serialPersistentFields |
private static boolean | compat |
private RoleList | roleList |
private RoleUnresolvedList | unresolvedRoleList |
Methods Summary |
---|
public javax.management.relation.RoleList | getRoles()Retrieves list of roles successfully accessed.
return roleList;
|
public javax.management.relation.RoleUnresolvedList | getRolesUnresolved()Retrieves list of roles unsuccessfully accessed.
return unresolvedRoleList;
|
private void | readObject(java.io.ObjectInputStream in)Deserializes a {@link RoleResult} from an {@link ObjectInputStream}.
if (compat)
{
// Read an object serialized in the old serial form
//
ObjectInputStream.GetField fields = in.readFields();
roleList = (RoleList) fields.get("myRoleList", null);
if (fields.defaulted("myRoleList"))
{
throw new NullPointerException("myRoleList");
}
unresolvedRoleList = (RoleUnresolvedList) fields.get("myRoleUnresList", null);
if (fields.defaulted("myRoleUnresList"))
{
throw new NullPointerException("myRoleUnresList");
}
}
else
{
// Read an object serialized in the new serial form
//
in.defaultReadObject();
}
|
public void | setRoles(javax.management.relation.RoleList theRoleList)Sets list of roles successfully accessed.
if (theRoleList != null) {
roleList = new RoleList();
for (Iterator roleIter = theRoleList.iterator();
roleIter.hasNext();) {
Role currRole = (Role)(roleIter.next());
roleList.add((Role)(currRole.clone()));
}
} else {
roleList = null;
}
return;
|
public void | setRolesUnresolved(javax.management.relation.RoleUnresolvedList theRoleUnresList)Sets list of roles unsuccessfully accessed.
if (theRoleUnresList != null) {
unresolvedRoleList = new RoleUnresolvedList();
for (Iterator roleUnresIter = theRoleUnresList.iterator();
roleUnresIter.hasNext();) {
RoleUnresolved currRoleUnres =
(RoleUnresolved)(roleUnresIter.next());
unresolvedRoleList.add((RoleUnresolved)(currRoleUnres.clone()));
}
} else {
unresolvedRoleList = null;
}
return;
|
private void | writeObject(java.io.ObjectOutputStream out)Serializes a {@link RoleResult} to an {@link ObjectOutputStream}.
if (compat)
{
// Serializes this instance in the old serial form
//
ObjectOutputStream.PutField fields = out.putFields();
fields.put("myRoleList", roleList);
fields.put("myRoleUnresList", unresolvedRoleList);
out.writeFields();
}
else
{
// Serializes this instance in the new serial form
//
out.defaultWriteObject();
}
|