|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.notify.WTDistributionList
Reference implementation of DistributionList.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private Vector |
principals
|
private static long |
R60_VERSION_UID
|
private boolean |
resolved
|
private Vector |
resolvedUsers
|
private static String |
RESOURCE
|
private Vector |
roleholders2
|
private Vector |
roles
|
(package private) static long |
serialVersionUID
|
private Vector |
userLocales
|
Constructor Summary | |
WTDistributionList()
no-arg constructor Supported API: false |
|
WTDistributionList(WTUser recipient)
Supported API: false |
Method Summary | |
void |
addPrincipal(WTPrincipal principal)
Adds a principal to the list. |
void |
addPrincipal(WTPrincipalReference principal_ref)
Adds a principal to the list. |
void |
addRecipient(Object object)
Add a recipient to the distribution list. |
void |
addRole(Role role)
Specifies which roles in the distribution list's roleholders should be resolved to users. |
void |
addRoleHolder(RoleHolder2 roleHolder2)
Supported API: false |
void |
addUser(WTUser user)
Add the given user to the list of WTUsers, and add that user's locale to the list of Locales. |
private void |
addUserLocale(WTUser user)
|
Enumeration |
getResolvedUsers()
Derives the unique set of WTUsers based on the users,
principals, and roles in the distribution list. |
Enumeration |
getUserLocales()
Returns the union of locales used by all the users in the distribution list. |
Enumeration |
getUsersFromLocale(Locale locale)
Returns an enumeration of users from a specified locale. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private Vector |
readObjectVector(ObjectInput input)
|
private Vector |
readObjRefVector(ObjectInput input)
|
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
private Vector |
readPrincipalRefVector(ObjectInput input)
|
protected boolean |
readVersion(WTDistributionList thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private Enumeration |
resolveRolesToPrincipals(Enumeration role_princ_enum,
RoleHolder2 role_map)
|
private void |
resolveToUsers(RoleHolder2 role_map)
|
private void |
resolveUsers()
|
protected void |
setResolvedUsers(Vector users)
Supported API: false |
String |
toString()
Returns string representation of the object. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
private void |
writeObjectVector(ObjectOutput output,
Vector vector)
|
private void |
writeObjRefVector(ObjectOutput output,
Vector vector)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private boolean resolved
private Vector resolvedUsers
private Vector userLocales
private Vector principals
private Vector roles
private Vector roleholders2
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final long R60_VERSION_UID
Constructor Detail |
public WTDistributionList()
public WTDistributionList(WTUser recipient) throws WTException
recipient
-
WTException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTDistributionList thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected void setResolvedUsers(Vector users)
users
- public void addPrincipal(WTPrincipal principal) throws WTException
addPrincipal
in interface DistributionList
principal
- the WTPrincipal object to be added to the rolePrincipalMap
WTException
public void addPrincipal(WTPrincipalReference principal_ref)
addPrincipal
in interface DistributionList
principal_ref
- public void addUser(WTUser user) throws WTException
addUser
in interface DistributionList
user
-
WTException
public void addRecipient(Object object) throws WTException
addRecipient
in interface DistributionList
object
-
WTException
public Enumeration getResolvedUsers() throws WTException
WTUsers
based on the users,
principals, and roles in the distribution list.
getResolvedUsers
in interface DistributionList
WTException
public Enumeration getUserLocales() throws WTException
getUserLocales
in interface DistributionList
WTException
public Enumeration getUsersFromLocale(Locale locale) throws WTException
getUsersFromLocale
in interface DistributionList
locale
-
WTException
public void addRole(Role role) throws WTException
addRole
in interface DistributionList
role
-
WTException
public void addRoleHolder(RoleHolder2 roleHolder2) throws WTException
addRoleHolder
in interface DistributionList
roleHolder2
-
WTException
private void addUserLocale(WTUser user) throws WTException
WTException
private void resolveToUsers(RoleHolder2 role_map) throws WTException
WTException
private Enumeration resolveRolesToPrincipals(Enumeration role_princ_enum, RoleHolder2 role_map) throws WTException
WTException
private void resolveUsers() throws WTException
WTException
private void writeObjRefVector(ObjectOutput output, Vector vector) throws IOException
IOException
private void writeObjectVector(ObjectOutput output, Vector vector) throws IOException
IOException
private Vector readPrincipalRefVector(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private Vector readObjRefVector(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
private Vector readObjectVector(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |