Collaboration API Documentation

com.filenet.bso.api.collaboration.data
Class SubjectInfo

java.lang.Object
  |
  +--com.filenet.bso.api.collaboration.data.SubjectInfo
All Implemented Interfaces:
java.io.Serializable

public class SubjectInfo
extends java.lang.Object
implements java.io.Serializable

The SubjectInfo class is a collection of data about a specific user or group.

See Also:
Serialized Form

Constructor Summary
protected SubjectInfo()
           
  SubjectInfo(com.filenet.wcm.api.SecurityGrantee subject, filenet.vw.api.VWSession vwSession)
           
  SubjectInfo(java.lang.String subjectID, int subjectType, java.lang.String displayName, java.lang.String shortName, java.lang.String domainName, java.lang.String emailAddress)
           
  SubjectInfo(java.lang.String subjectID, int subjectType, java.lang.String displayName, java.lang.String shortName, java.lang.String domainName, filenet.vw.api.VWSession vwSession)
           
  SubjectInfo(java.lang.String subjectID, java.lang.String displayName, java.lang.String emailAddress)
           
 
Method Summary
 java.lang.String getDisplayName()
          Returns the display name of the subject.
 java.lang.String getDomainName()
          Returns the full domain name of the subject.
 java.lang.String getEmailAddress()
          Returns the email address as configured in VWUserInfo.
 java.lang.String getID()
          Returns the subject ID.
 java.lang.String getShortName()
          Returns the short name of the subject.
 int getType()
          Returns the type of subject (TYPE_USER or TYPE_GROUP).
 boolean isEnterpriseUser()
           
 boolean isUser()
           
 void setEmailAddress(java.lang.String emailAddress)
          Sets a user's email address, precluding the retrieval of an address from the P8 LDAP.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectInfo

protected SubjectInfo()

SubjectInfo

public SubjectInfo(com.filenet.wcm.api.SecurityGrantee subject,
                   filenet.vw.api.VWSession vwSession)

SubjectInfo

public SubjectInfo(java.lang.String subjectID,
                   int subjectType,
                   java.lang.String displayName,
                   java.lang.String shortName,
                   java.lang.String domainName,
                   java.lang.String emailAddress)

SubjectInfo

public SubjectInfo(java.lang.String subjectID,
                   java.lang.String displayName,
                   java.lang.String emailAddress)

SubjectInfo

public SubjectInfo(java.lang.String subjectID,
                   int subjectType,
                   java.lang.String displayName,
                   java.lang.String shortName,
                   java.lang.String domainName,
                   filenet.vw.api.VWSession vwSession)
Method Detail

getID

public java.lang.String getID()
Returns the subject ID.

Returns:
A String containing the subject ID.

getDomainName

public java.lang.String getDomainName()
Returns the full domain name of the subject.

Returns:
A String containing the full domain name of the subject.

getDisplayName

public java.lang.String getDisplayName()
Returns the display name of the subject.

Returns:
A String containing the display name of the subject.

getShortName

public java.lang.String getShortName()
Returns the short name of the subject.

Returns:
A String containing the short name of the subject.

getEmailAddress

public java.lang.String getEmailAddress()
Returns the email address as configured in VWUserInfo. May return null if the VWSession is not provided or the user has not configured VWUserInfo with an email address.

Returns:
A String containing the email address of the user.

setEmailAddress

public void setEmailAddress(java.lang.String emailAddress)
Sets a user's email address, precluding the retrieval of an address from the P8 LDAP.
Parameters:
emailAddress - Email address to be used for email notifications. Throws an exception if the emailAddress is empty.

getType

public int getType()
Returns the type of subject (TYPE_USER or TYPE_GROUP).

Returns:
An int value that specifies subject type.

isUser

public boolean isUser()

isEnterpriseUser

public boolean isEnterpriseUser()

Collaboration API Documentation

Copyright © 2002 - 2004 FileNet Corporation. All rights reserved.