wt.org
Class WTUser

java.lang.Object
  extended bywt.fc.WTObject
      extended bywt.fc.Item
          extended bywt.org.WTPrincipal
              extended bywt.org.WTUser
All Implemented Interfaces:
AccessControlled, AccessControlList, AdHocControlled, BusinessInformation, DisplayIdentification, DomainAdministered, Externalizable, Federatable, NetFactor, Notifiable, ObjectMappable, Persistable, Principal, RecentlyVisited, RemotelyLinkable, Serializable, SubjectOfNotebook
Direct Known Subclasses:
ProxyUser

public class WTUser
extends WTPrincipal
implements Notifiable, AdHocControlled, SubjectOfNotebook, Externalizable

The WTUser class represents users of the system. It holds information about the user and the groups to which he or she belongs.

Use the newWTUser static factory method(s), not the WTUser constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static String[] ATTRIBUTE_NAMES
           
private  AttributeHolder attributes
           
static String ATTRIBUTES
          Label for the attribute.
private static HashSet attributeSet
           
static String AUTHENTICATION_NAME
           
private  String authenticationName
           
static String CERTIFICATE
           
private  Certificate[] certificates
           
private static String CLASSNAME
           
private static String[] DEFAULT_DIR_ATTRIBUTE_NAMES
           
private static String defaultAdapter
           
private static String[] DIR_ATTRIBUTE_KEYS
           
private  String eMail
           
static String EMAIL
           
private  AclEntrySet entrySet
           
private  WTStringSet eventSet
           
static long EXTERNALIZATION_VERSION_UID
           
static String FAX_NUMBER
           
private  String faxNumber
           
static String FULL_NAME
           
private  String fullName
           
private static String INTROSPECTION_RESOURCE
           
private  Locale locale
           
static String LOCALE
           
static String MOBILE_PHONE_NUMBER
           
private  String mobilePhoneNumber
           
protected static long OLD_FORMAT_VERSION_UID
           
static String ORGANIZATION
           
private  String organizationName
           
static String POSTAL_ADDRESS
           
private  String postalAddress
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private static Hashtable serviceMaps
           
static String SURNAME
           
static String TELEPHONE_NUMBER
           
private  String telephoneNumber
           
private static boolean VERBOSE
           
protected static long VERSION_30_UID
           
protected static long VERSION_40_UID
           
protected static long VERSION_50_UID
           
static String WEB_SITE
           
private  URL webSite
           
 
Fields inherited from class wt.org.WTPrincipal
ALL, DISABLED, DN, INFLATED, NAME, OWNER, REPAIR_NEEDED, REPOSITORY
 
Fields inherited from class wt.fc.Item
VERSION_51_UID
 
Fields inherited from class wt.fc.WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMP
 
Fields inherited from interface wt.notify.Notifiable
EVENT_SET
 
Fields inherited from interface wt.access.AdHocControlled
ENTRY_SET
 
Fields inherited from interface wt.fc.Persistable
IDENTITY, PERSIST_INFO, TYPE
 
Fields inherited from interface wt.fc.BusinessInformation
BUSINESS_TYPE, IDENTITY
 
Fields inherited from interface wt.ufid.Federatable
FEDERATABLE_INFO
 
Fields inherited from interface wt.admin.DomainAdministered
DOMAIN_REF, INHERITED_DOMAIN
 
Fields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE
 
Constructor Summary
WTUser()
           
 
Method Summary
private  void _addValue(String name, Object value)
           
protected  void _mangleAuthName()
           
private  void _setAttribute(String attrName, Object value)
           
protected  Certificate _translateCertificate(Object obj, String certType)
           
private  Locale _translateLanguage(String language)
           
private  void _updateAttributeHolder(String attrName, Object[] values)
           
protected  void copyAttributes(WTPrincipal target)
          

Supported API: false
 boolean equals(Object obj)
          Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers.
 Enumeration getAllCertificates()
          

Supported API: false
 HashMap getAttributeMap(String service)
          

Supported API: false
 AttributeHolder getAttributes()
          Gets the object for the association that plays role: ATTRIBUTES.
 String getAuthenticationName()
          

Supported API: false
 String getBusinessType()
          Returns string representing WTUser'sd business type.
 Certificate getCertificate()
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
 String getDn()
          Gets the value of the attribute: DN.
 String getEMail()
          Return the user's e-mail address.
 AclEntrySet getEntrySet()
          Gets the value of the attribute: ENTRY_SET.
 WTStringSet getEventSet()
          Gets the value of the attribute: EVENT_SET.
 String getFaxNumber()
          

Supported API: false
 HashMap getFieldValueMap()
          

Supported API: false
 String getFullName()
          

Supported API: false
 Locale getLocale()
          Return the user's locale.
 String getMobilePhoneNumber()
          

Supported API: false
 String getOrganizationName()
          

Supported API: false
 String getPostalAddress()
          

Supported API: false
 String getRepository()
          Gets the value of the attribute: REPOSITORY.
 String getTelephoneNumber()
          

Supported API: false
 URL getWebSite()
          

Supported API: false
 int hashCode()
          Returns a hash code for this object based upon its ObjectIdentifier.
protected  void initialize()
          Supports initialization, following construction of an instance.
protected  void initialize(String name)
          Supports initialization, following construction of an instance.
protected  void initialize(String name, DirectoryContextProvider context)
          Supports initialization, following construction of an instance.
protected  void initialize(String name, String dn)
          Supports initialization, following construction of an instance.
protected  void initialize(String name, String dn, String service)
          Supports initialization, following construction of an instance.
 void mapAttributes(HashMap attributes)
          

Supported API: false
static WTUser newWTUser(String name)
          Constructor: takes the user's name as sole parameter.
static WTUser newWTUser(String name, DirectoryContextProvider context)
          Constructor: Constructs an instance with a specific name and organization.
static WTUser newWTUser(String name, String dn)
          

Supported API: true
static WTUser newWTUser(String name, String dn, String service)
          Constructor: Constructs an instance with a specific name, LDAP distinguished name, and LDAP service.
 Enumeration parentGroupNames()
          Returns an enumeration containing the names of the groups to which the user belongs.
 Enumeration parentGroupObjects()
          Returns all the parent groups to which the user belongs.
 Enumeration parentGroups()
          Returns the groups to which the user belongs.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
 void readExternal(PersistentRetrieveIfc input)
          Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.
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.
protected  boolean readVersion(WTUser thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setAttributes(AttributeHolder a_Attributes)
          Sets the object for the association that plays role: ATTRIBUTES.
 void setAuthenticationName(String authenticationName)
          

Supported API: false
 void setDisabled(boolean disabled)
          

Supported API: true
 void setDn(String dn)
          Sets the value of the attribute: DN.
 void setEMail(String eMail)
          

Supported API: false
 void setEntrySet(AclEntrySet a_EntrySet)
          Sets the value of the attribute: ENTRY_SET.
 void setEventSet(WTStringSet a_EventSet)
          Sets the value of the attribute: EVENT_SET.
 void setFaxNumber(String faxNumber)
          

Supported API: false
 void setFullName(String fullName)
          

Supported API: false
 void setLocale(Locale locale)
          Set the user's locale.
 void setMobilePhoneNumber(String mobilePhoneNumber)
          

Supported API: false
 void setOrganizationName(String organizationName)
          

Supported API: false
 void setPostalAddress(String postalAddress)
          

Supported API: false
 void setRepository(String repository)
          Sets the value of the attribute: REPOSITORY.
protected  void setSurname(String sn)
           
 void setTelephoneNumber(String telephoneNumber)
          

Supported API: false
private  void setWebSite(String url)
           
 void setWebSite(URL webSite)
          

Supported API: false
 String toString()
          Returns a string representation of the user object.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 void writeExternal(PersistentStoreIfc output)
          Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.
 
Methods inherited from class wt.org.WTPrincipal
_mangleName, _setDisabled, _unmangleName, getDn, getFederatableInfo, getIdentificationObject, getIdentity, getName, getOrganization, getRepository, inflate, isDefaultDomain, isDisabled, isInflated, isRepairNeeded, readVersion, setDn, setFederatableInfo, setInflated, setName, setRepairNeeded, setRepository
 
Methods inherited from class wt.fc.Item
getDomainRef, isInheritedDomain, readVersion, setDomainRef, setInheritedDomain
 
Methods inherited from class wt.fc.WTObject
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.fc.NetFactor
getClassInfo
 
Methods inherited from interface wt.fc.Persistable
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

authenticationName

private String authenticationName

certificates

private Certificate[] certificates

eMail

private String eMail

faxNumber

private String faxNumber

fullName

private String fullName

locale

private Locale locale

mobilePhoneNumber

private String mobilePhoneNumber

organizationName

private String organizationName

postalAddress

private String postalAddress

telephoneNumber

private String telephoneNumber

webSite

private URL webSite

ATTRIBUTES

public static final String ATTRIBUTES
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

attributes

private AttributeHolder attributes

eventSet

private WTStringSet eventSet

entrySet

private AclEntrySet entrySet

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

INTROSPECTION_RESOURCE

private static final String INTROSPECTION_RESOURCE
See Also:
Constant Field Values

VERSION_30_UID

protected static final long VERSION_30_UID
See Also:
Constant Field Values

VERSION_40_UID

protected static final long VERSION_40_UID
See Also:
Constant Field Values

VERSION_50_UID

protected static final long VERSION_50_UID
See Also:
Constant Field Values

defaultAdapter

private static String defaultAdapter

VERBOSE

private static boolean VERBOSE

AUTHENTICATION_NAME

public static final String AUTHENTICATION_NAME
See Also:
Constant Field Values

CERTIFICATE

public static final String CERTIFICATE
See Also:
Constant Field Values

EMAIL

public static final String EMAIL
See Also:
Constant Field Values

FAX_NUMBER

public static final String FAX_NUMBER
See Also:
Constant Field Values

FULL_NAME

public static final String FULL_NAME
See Also:
Constant Field Values

LOCALE

public static final String LOCALE
See Also:
Constant Field Values

MOBILE_PHONE_NUMBER

public static final String MOBILE_PHONE_NUMBER
See Also:
Constant Field Values

ORGANIZATION

public static final String ORGANIZATION
See Also:
Constant Field Values

POSTAL_ADDRESS

public static final String POSTAL_ADDRESS
See Also:
Constant Field Values

SURNAME

public static final String SURNAME
See Also:
Constant Field Values

TELEPHONE_NUMBER

public static final String TELEPHONE_NUMBER
See Also:
Constant Field Values

WEB_SITE

public static final String WEB_SITE
See Also:
Constant Field Values

ATTRIBUTE_NAMES

public static final String[] ATTRIBUTE_NAMES

DIR_ATTRIBUTE_KEYS

private static final String[] DIR_ATTRIBUTE_KEYS

DEFAULT_DIR_ATTRIBUTE_NAMES

private static final String[] DEFAULT_DIR_ATTRIBUTE_NAMES

attributeSet

private static HashSet attributeSet

serviceMaps

private static Hashtable serviceMaps
Constructor Detail

WTUser

public WTUser()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class WTPrincipal
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class WTPrincipal
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(WTUser thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Overrides:
writeExternal in class WTPrincipal
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Overrides:
readExternal in class WTPrincipal
Parameters:
input -
Throws:
SQLException
DatastoreException

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Returns:
String

getAttributes

public AttributeHolder getAttributes()
Gets the object for the association that plays role: ATTRIBUTES.

Supported API: false

Returns:
AttributeHolder

setAttributes

public void setAttributes(AttributeHolder a_Attributes)
                   throws UserNotFoundException,
                          WTPropertyVetoException
Sets the object for the association that plays role: ATTRIBUTES.

Supported API: false

Parameters:
a_Attributes -
Throws:
UserNotFoundException
WTPropertyVetoException

newWTUser

public static WTUser newWTUser(String name)
                        throws WTException
Constructor: takes the user's name as sole parameter. The WTUser will have an attribute holder of class type StandardAttributeHolder.

Supported API: true

Parameters:
name -
Returns:
WTUser
Throws:
WTException
See Also:
StandardAttributeHolder

initialize

protected void initialize(String name)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Overrides:
initialize in class WTPrincipal
Parameters:
name -
Throws:
WTException

newWTUser

public static WTUser newWTUser(String name,
                               String dn)
                        throws WTException


Supported API: true

Parameters:
name -
dn -
Returns:
WTUser
Throws:
WTException

initialize

protected void initialize(String name,
                          String dn)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
name -
dn -
Throws:
WTException

newWTUser

public static WTUser newWTUser(String name,
                               String dn,
                               String service)
                        throws WTException
Constructor: Constructs an instance with a specific name, LDAP distinguished name, and LDAP service. The service and distinguished name will determine the directory service in which the instance is stored, and its location within that service, respectively.

Supported API: true

Parameters:
name -
dn -
service -
Returns:
WTUser
Throws:
WTException

initialize

protected void initialize(String name,
                          String dn,
                          String service)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
name -
dn -
service -
Throws:
WTException

newWTUser

public static WTUser newWTUser(String name,
                               DirectoryContextProvider context)
                        throws WTException
Constructor: Constructs an instance with a specific name and organization. The instance will be stored in the same LDAP directory service as the organization, and it will be stored as an immediate child of the organization's LDAP entry.

Supported API: true

Parameters:
name -
context -
Returns:
WTUser
Throws:
WTException

initialize

protected void initialize(String name,
                          DirectoryContextProvider context)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
name -
context -
Throws:
WTException

getAuthenticationName

public String getAuthenticationName()


Supported API: false

Returns:
String

setAuthenticationName

public void setAuthenticationName(String authenticationName)
                           throws WTException


Supported API: false

Parameters:
authenticationName -
Throws:
WTException

getAllCertificates

public Enumeration getAllCertificates()


Supported API: false

Returns:
Enumeration

getBusinessType

public String getBusinessType()
Returns string representing WTUser'sd business type. In the case this is simply 'WTUser'.

Supported API: true

Specified by:
getBusinessType in interface BusinessInformation
Overrides:
getBusinessType in class WTPrincipal
Returns:
String

getCertificate

public Certificate getCertificate()


Supported API: false

Returns:
Certificate

setDisabled

public void setDisabled(boolean disabled)
                 throws WTException,
                        WTPropertyVetoException


Supported API: true

Overrides:
setDisabled in class WTPrincipal
Parameters:
disabled -
Throws:
WTException
WTPropertyVetoException

getEMail

public String getEMail()
                throws WTException
Return the user's e-mail address.

Supported API: true

Returns:
String
Throws:
WTException

setEMail

public void setEMail(String eMail)
              throws WTException,
                     WTPropertyVetoException


Supported API: false

Parameters:
eMail -
Throws:
WTException
WTPropertyVetoException

getFaxNumber

public String getFaxNumber()
                    throws WTException


Supported API: false

Returns:
String
Throws:
WTException

setFaxNumber

public void setFaxNumber(String faxNumber)
                  throws WTException,
                         WTPropertyVetoException


Supported API: false

Parameters:
faxNumber -
Throws:
WTException
WTPropertyVetoException

getFullName

public String getFullName()


Supported API: false

Returns:
String

setFullName

public void setFullName(String fullName)
                 throws WTException


Supported API: false

Parameters:
fullName -
Throws:
WTException

getLocale

public Locale getLocale()
                 throws WTException
Return the user's locale.

Supported API: true

Returns:
Locale
Throws:
WTException

setLocale

public void setLocale(Locale locale)
               throws WTException
Set the user's locale.

Supported API: true

Parameters:
locale -
Throws:
WTException

getMobilePhoneNumber

public String getMobilePhoneNumber()
                            throws WTException


Supported API: false

Returns:
String
Throws:
WTException

setMobilePhoneNumber

public void setMobilePhoneNumber(String mobilePhoneNumber)
                          throws WTException,
                                 WTPropertyVetoException


Supported API: false

Parameters:
mobilePhoneNumber -
Throws:
WTException
WTPropertyVetoException

getOrganizationName

public String getOrganizationName()
                           throws WTException


Supported API: false

Returns:
String
Throws:
WTException

setOrganizationName

public void setOrganizationName(String organizationName)
                         throws WTException,
                                WTPropertyVetoException


Supported API: false

Parameters:
organizationName -
Throws:
WTException
WTPropertyVetoException

getPostalAddress

public String getPostalAddress()
                        throws WTException


Supported API: false

Returns:
String
Throws:
WTException

setPostalAddress

public void setPostalAddress(String postalAddress)
                      throws WTException,
                             WTPropertyVetoException


Supported API: false

Parameters:
postalAddress -
Throws:
WTException
WTPropertyVetoException

getTelephoneNumber

public String getTelephoneNumber()
                          throws WTException


Supported API: false

Returns:
String
Throws:
WTException

setTelephoneNumber

public void setTelephoneNumber(String telephoneNumber)
                        throws WTException,
                               WTPropertyVetoException


Supported API: false

Parameters:
telephoneNumber -
Throws:
WTException
WTPropertyVetoException

getWebSite

public URL getWebSite()
               throws WTException


Supported API: false

Returns:
URL
Throws:
WTException

setWebSite

public void setWebSite(URL webSite)
                throws WTException,
                       WTPropertyVetoException


Supported API: false

Parameters:
webSite -
Throws:
WTException
WTPropertyVetoException

parentGroups

public Enumeration parentGroups()
                         throws WTException
Returns the groups to which the user belongs. The result is a principal reference enumeration.

Supported API: true

Returns:
Enumeration
Throws:
WTException

parentGroupNames

public Enumeration parentGroupNames()
                             throws WTException
Returns an enumeration containing the names of the groups to which the user belongs.

Supported API: true

Returns:
Enumeration
Throws:
WTException

parentGroupObjects

public Enumeration parentGroupObjects()
                               throws WTException
Returns all the parent groups to which the user belongs. The result is an enumeration of WTPrincipal objects. This method should be used if any of the parent groups may be a non-persistent proxy.

Supported API: true

Returns:
Enumeration
Throws:
WTException

toString

public String toString()
Returns a string representation of the user object.

Supported API: true

Specified by:
toString in interface Principal
Overrides:
toString in class WTObject
Returns:
String

getAttributeMap

public HashMap getAttributeMap(String service)
                        throws WTException


Supported API: false

Specified by:
getAttributeMap in class WTPrincipal
Parameters:
service -
Returns:
HashMap
Throws:
WTException

getFieldValueMap

public HashMap getFieldValueMap()
                         throws WTException


Supported API: false

Specified by:
getFieldValueMap in class WTPrincipal
Returns:
HashMap
Throws:
WTException

mapAttributes

public void mapAttributes(HashMap attributes)
                   throws WTException,
                          WTPropertyVetoException


Supported API: false

Specified by:
mapAttributes in class WTPrincipal
Parameters:
attributes -
Throws:
WTException
WTPropertyVetoException

copyAttributes

protected void copyAttributes(WTPrincipal target)
                       throws WTException,
                              WTPropertyVetoException


Supported API: false

Specified by:
copyAttributes in class WTPrincipal
Parameters:
target -
Throws:
WTException
WTPropertyVetoException

getEventSet

public WTStringSet getEventSet()
Gets the value of the attribute: EVENT_SET. Sets of events for which the object has a subscriber.

Supported API: false

Specified by:
getEventSet in interface Notifiable
Returns:
WTStringSet

setEventSet

public void setEventSet(WTStringSet a_EventSet)
Sets the value of the attribute: EVENT_SET. Sets of events for which the object has a subscriber.

Supported API: false

Specified by:
setEventSet in interface Notifiable
Parameters:
a_EventSet -

getEntrySet

public AclEntrySet getEntrySet()
Gets the value of the attribute: ENTRY_SET.

Supported API: false

Specified by:
getEntrySet in interface AdHocControlled
Returns:
AclEntrySet

setEntrySet

public void setEntrySet(AclEntrySet a_EntrySet)
Sets the value of the attribute: ENTRY_SET.

Supported API: false

Specified by:
setEntrySet in interface AdHocControlled
Parameters:
a_EntrySet -

equals

public boolean equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers. Changed or stale copies are still considered equal by this method. Delegates to PersistenceHelper.equals(Persistable,Object).

Warning: Certain core Windchill operations may depend upon equals being ObjectIdentifier-based. Changes to the default implementation should be done with care, if at all.

Supported API: false

Specified by:
equals in interface Principal
Overrides:
equals in class WTPrincipal
Parameters:
obj -
Returns:
boolean

hashCode

public int hashCode()
Returns a hash code for this object based upon its ObjectIdentifier. Delegates to PersistenceHelper.hashCode(Persistable).

Warning: Certain core Windchill operations may depend upon hashCode being ObjectIdentifier-based. Changes to the default implementation should be done with care, if at all.

Supported API: false

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class WTPrincipal
Returns:
int

initialize

protected void initialize()
                   throws WTException
Supports initialization, following construction of an instance. Usually invoked by Federated subclasses.

Supported API: true

Overrides:
initialize in class WTPrincipal
Throws:
WTException

getDn

public String getDn()
Description copied from class: WTPrincipal
Gets the value of the attribute: DN.

Supported API: false

Overrides:
getDn in class WTPrincipal
Returns:
String

setDn

public void setDn(String dn)
Description copied from class: WTPrincipal
Sets the value of the attribute: DN.

Supported API: false

Overrides:
setDn in class WTPrincipal
Parameters:
dn -

getRepository

public String getRepository()
Description copied from class: WTPrincipal
Gets the value of the attribute: REPOSITORY.

Supported API: false

Overrides:
getRepository in class WTPrincipal
Returns:
String

setRepository

public void setRepository(String repository)
Description copied from class: WTPrincipal
Sets the value of the attribute: REPOSITORY.

Supported API: false

Overrides:
setRepository in class WTPrincipal
Parameters:
repository -

_translateLanguage

private Locale _translateLanguage(String language)

setSurname

protected void setSurname(String sn)
                   throws WTException
Throws:
WTException

setWebSite

private void setWebSite(String url)
                 throws WTException
Throws:
WTException

_translateCertificate

protected Certificate _translateCertificate(Object obj,
                                            String certType)
                                     throws WTException
Throws:
WTException

_setAttribute

private void _setAttribute(String attrName,
                           Object value)
                    throws WTException
Throws:
WTException

_updateAttributeHolder

private void _updateAttributeHolder(String attrName,
                                    Object[] values)
                             throws WTException
Throws:
WTException

_addValue

private void _addValue(String name,
                       Object value)
                throws WTException
Throws:
WTException

_mangleAuthName

protected void _mangleAuthName()
                        throws WTException,
                               WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException