|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.fc.Item
wt.org.WTPrincipal
Abstract class that represents a user or a group of users.
Supported API: true
Extendable: false
Field Summary | |
static String |
ALL
String by which the pseudo group"ALL" may be referred to. |
private static String |
CLASSNAME
|
private boolean |
disabled
|
static String |
DISABLED
Label for the attribute. |
private String |
dn
|
static String |
DN
Label for the attribute. |
static long |
EXTERNALIZATION_VERSION_UID
|
private FederatableInfo |
federatableInfo
|
private int |
hash
|
private boolean |
inflated
|
protected static String |
INFLATED
Label for the attribute. |
private String |
name
|
static String |
NAME
Label for the attribute; Name of the principal (user, group, or organization). |
private static int |
NAME_UPPER_LIMIT
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
OWNER
String by which the OWNER may be referred to. |
static String |
REPAIR_NEEDED
Label for the attribute. |
private boolean |
repairNeeded
|
private String |
repository
|
static String |
REPOSITORY
Label for the attribute. |
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Fields inherited from class wt.fc.Item |
VERSION_40_UID, VERSION_51_UID |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.fc.BusinessInformation |
BUSINESS_TYPE, IDENTITY |
Fields inherited from interface wt.ufid.Federatable |
FEDERATABLE_INFO |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
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 | |
WTPrincipal()
|
Method Summary | |
protected String |
_mangleName()
|
protected void |
_setDisabled(boolean disabled)
|
protected String |
_unmangleName()
|
protected abstract void |
copyAttributes(WTPrincipal target)
Supported API: false |
boolean |
equals(Object obj)
Determines if the current principal is equal to the one passed as argument. |
private void |
federatableInfoValidate(FederatableInfo a_FederatableInfo)
|
abstract HashMap |
getAttributeMap(String service)
Supported API: false |
String |
getBusinessType()
Deprecated. Replaced by IdentityFactory.getDispayType(object) to return a localizable equivalent of getBusinessType(). Another alternative is ((WTObject)obj).getDisplayType(). |
String |
getDn()
Gets the value of the attribute: DN. |
protected String |
getDn(boolean inflate)
Supported API: false |
FederatableInfo |
getFederatableInfo()
Gets the object for the association that plays role: FEDERATABLE_INFO. |
abstract HashMap |
getFieldValueMap()
Supported API: false |
IdentificationObject |
getIdentificationObject()
Deprecated. |
String |
getIdentity()
Deprecated. |
String |
getName()
Gets the value of the attribute: NAME. |
WTOrganization |
getOrganization()
Supported API: false |
String |
getRepository()
Gets the value of the attribute: REPOSITORY. |
protected String |
getRepository(boolean inflate)
Supported API: false |
int |
hashCode()
returns the hash code for users and groups. |
protected WTPrincipal |
inflate()
|
protected void |
initialize()
Supported API: false |
protected void |
initialize(String service)
|
boolean |
isDefaultDomain()
Indicates whether or not the domain currently assigned to the instance is the default domain for principals of the instance's class. |
boolean |
isDisabled()
Gets the value of the attribute: DISABLED. |
protected boolean |
isInflated()
Gets the value of the attribute: INFLATED. |
boolean |
isRepairNeeded()
Gets the value of the attribute: REPAIR_NEEDED. |
abstract void |
mapAttributes(HashMap attributes)
Supported API: false |
private void |
nameValidate(String a_Name)
|
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(WTPrincipal thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setDisabled(boolean a_Disabled)
Sets the value of the attribute: DISABLED. |
void |
setDn(String a_Dn)
Sets the value of the attribute: DN. |
void |
setDn(String dn,
boolean inflate)
|
void |
setFederatableInfo(FederatableInfo a_FederatableInfo)
Sets the object for the association that plays role: FEDERATABLE_INFO. |
protected void |
setInflated(boolean a_Inflated)
Sets the value of the attribute: INFLATED. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setRepairNeeded(boolean a_RepairNeeded)
Sets the value of the attribute: REPAIR_NEEDED. |
void |
setRepository(String a_Repository)
Sets the value of the attribute: REPOSITORY. |
void |
setRepository(String repository,
boolean inflate)
|
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.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, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
checkAttributes, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo, getConceptualClassname |
Methods inherited from interface java.security.Principal |
toString |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String NAME
private static int NAME_UPPER_LIMIT
private String name
public static final String OWNER
public static final String ALL
public static final String DISABLED
private boolean disabled
public static final String DN
private String dn
public static final String REPOSITORY
private String repository
public static final String REPAIR_NEEDED
private boolean repairNeeded
protected static final String INFLATED
private boolean inflated
private FederatableInfo federatableInfo
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private int hash
Constructor Detail |
public WTPrincipal()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Item
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Item
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTPrincipal 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
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Item
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Item
input
-
SQLException
DatastoreException
public String getName()
getName
in interface Principal
public void setName(String a_Name) throws UserNotFoundException, WTPropertyVetoException
a_Name
-
UserNotFoundException
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public boolean isDisabled()
public void setDisabled(boolean a_Disabled) throws WTException, WTPropertyVetoException
a_Disabled
-
WTException
WTPropertyVetoException
public String getDn()
public void setDn(String a_Dn)
a_Dn
- public String getRepository()
public void setRepository(String a_Repository)
a_Repository
- public boolean isRepairNeeded()
public void setRepairNeeded(boolean a_RepairNeeded)
a_RepairNeeded
- protected boolean isInflated()
protected void setInflated(boolean a_Inflated)
a_Inflated
- public int hashCode()
hashCode
in interface Principal
hashCode
in class Item
public boolean equals(Object obj)
equals
in interface Principal
equals
in class Item
obj
-
public String getIdentity()
getIdentity
in interface BusinessInformation
getIdentity
in class WTObject
public IdentificationObject getIdentificationObject() throws WTException
WTException
public WTOrganization getOrganization() throws WTException
WTException
public abstract HashMap getAttributeMap(String service) throws WTException
service
-
WTException
public abstract HashMap getFieldValueMap() throws WTException
WTException
public boolean isDefaultDomain() throws WTException
WTException
public abstract void mapAttributes(HashMap attributes) throws WTException, WTPropertyVetoException
attributes
-
WTException
WTPropertyVetoException
protected abstract void copyAttributes(WTPrincipal target) throws WTException, WTPropertyVetoException
target
-
WTException
WTPropertyVetoException
protected String getDn(boolean inflate)
inflate
-
protected String getRepository(boolean inflate)
inflate
-
public String getBusinessType()
getBusinessType
in interface BusinessInformation
public FederatableInfo getFederatableInfo()
getFederatableInfo
in interface Federatable
public void setFederatableInfo(FederatableInfo a_FederatableInfo) throws WTPropertyVetoException
setFederatableInfo
in interface Federatable
a_FederatableInfo
-
WTPropertyVetoException
private void federatableInfoValidate(FederatableInfo a_FederatableInfo) throws WTPropertyVetoException
a_FederatableInfo
-
WTPropertyVetoException
protected void initialize() throws WTException
Item
initialize
in class Item
WTException
protected void initialize(String service) throws WTException
WTException
protected void _setDisabled(boolean disabled)
protected String _mangleName() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
protected String _unmangleName()
protected WTPrincipal inflate()
public void setDn(String dn, boolean inflate)
public void setRepository(String repository, boolean inflate)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |