|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.ObjectReference
wt.org.WTPrincipalReference
Reference to a principal object.
Use the newWTPrincipalReference
static factory method(s),
not the WTPrincipalReference
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
Field Summary | |
private static String |
ACCESS_RESOURCE
|
private boolean |
accessible
|
private boolean |
accessVerified
|
static WTPrincipalReference |
ALL
Constant reference that designates all existing users. |
static int |
ALL_ID
|
private static ObjectIdentifier |
allObjectId
|
private static String |
CLASSNAME
|
private boolean |
disabled
|
static String |
DISABLED
Label for the attribute. |
private String |
dn
|
static String |
DN
Label for the attribute. |
private String |
EMail
|
static String |
EMAIL
Label for the attribute; Non-persistent attribute that is filled in by the inflate in the query results thru the cached object. |
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
FULL_NAME
Label for the attribute; Non-persistent attribute that is filled in by the inflate in the query results thru the cached object. |
private String |
fullName
|
private boolean |
inflated
|
private String |
name
|
static String |
NAME
Label for the attribute; Non-persistent attribute that is filled in by the inflate in the query results thru the cached object. |
static String |
OBJECT
Label for the attribute. |
protected static long |
OLD_FORMAT_VERSION_UID
|
static WTPrincipalReference |
OWNER
Constant reference that designates the object's owner. |
static int |
OWNER_ID
|
private static ObjectIdentifier |
ownerObjectId
|
private static String |
PROXY_GROUP
|
private static String |
PROXY_USER
|
private String |
repository
|
static String |
REPOSITORY
Label for the attribute. |
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
private static boolean |
VERBOSE_INFLATION
|
Fields inherited from class wt.fc.ObjectReference |
KEY, object, OBJECT_ID |
Constructor Summary | |
WTPrincipalReference()
|
Method Summary | |
boolean |
equals(Object obj)
Overrides the equals method of the superclass. |
String |
getConceptualClassname()
Deprecated. |
String |
getDisplayName()
Supported API: true |
String |
getDn()
Gets the value of the attribute: DN. |
String |
getEMail()
Gets the value of the attribute: EMAIL. |
String |
getFullName()
Gets the value of the attribute: FULL_NAME. |
String |
getIdentity()
Return the nice string of the referenced object's identity. |
QueryKey |
getKey()
Overrides the getKey method of the superclass. |
String |
getName()
Gets the value of the attribute: NAME. |
Persistable |
getObject()
Overrides getObject method of superclass and returns a copy to guard against concurrent updates against cached instances. |
WTPrincipal |
getPrincipal()
Returns principal referenced by object. |
Persistable |
getReadOnlyObject()
Returns a read-only instance of the principal. |
String |
getRepository()
Gets the value of the attribute: REPOSITORY. |
int |
hashCode()
Overrides the hashCode method of the superclass to ensure that an ObjectIdentifier is available against which to compute the hash code. |
void |
inflate()
|
protected void |
initialize(ObjectIdentifier id)
Supports initialization, following construction of an instance. |
protected void |
initialize(String dn,
String repository)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTPrincipal principal)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTPrincipalReference principalReference)
Supports initialization, following construction of an instance. |
boolean |
isAccessible()
Determines whether the caller has the right to access the referenced principal. |
boolean |
isDisabled()
Gets the value of the attribute: DISABLED. |
boolean |
isInflated()
|
static WTPrincipalReference |
newWTPrincipalReference()
Supported API: true |
static WTPrincipalReference |
newWTPrincipalReference(ObjectIdentifier id)
Constructs a principal out of its database identifier. |
static WTPrincipalReference |
newWTPrincipalReference(String dn,
String repository)
Constructs a principal reference from a directory distinguished name and the name of the directory repository that holds the entry specified by the distinguished name. |
static WTPrincipalReference |
newWTPrincipalReference(WTPrincipal principal)
Creates reference given a principal. |
static WTPrincipalReference |
newWTPrincipalReference(WTPrincipalReference principalReference)
Creates reference given a principal reference. |
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(WTPrincipalReference thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
references(Persistable obj)
Overrides references method of the superclass. |
void |
refresh()
Refresh the WTPrincipalReference using the OrganizationService's principal cache. |
private ObjectIdentifier |
replaceProxy(ObjectIdentifier oid)
|
String |
toString()
Returns string representation of the reference. |
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.ObjectReference |
deflate, getClassInfo, getObjectId, getReferencedClass, getReferencedClass, hasPersistence, initialize, initialize, initialize, isObjectInflated, newObjectReference, newObjectReference, newObjectReference, newObjectReference, readVersion, setKey, setObject, setObjectId |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final WTPrincipalReference OWNER
public static final WTPrincipalReference ALL
public static final String EMAIL
private String EMail
public static final String NAME
private String name
public static final String FULL_NAME
private String fullName
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 OBJECT
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private boolean accessible
private boolean accessVerified
private boolean inflated
private static final String ACCESS_RESOURCE
private static boolean VERBOSE
private static boolean VERBOSE_INFLATION
private static final String PROXY_USER
private static final String PROXY_GROUP
public static final int OWNER_ID
public static final int ALL_ID
private static ObjectIdentifier allObjectId
private static ObjectIdentifier ownerObjectId
Constructor Detail |
public WTPrincipalReference()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class ObjectReference
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class ObjectReference
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTPrincipalReference 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 ObjectReference
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 ObjectReference
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class ObjectReference
public String getEMail()
public String getName()
public String getFullName()
public boolean isDisabled()
public String getDn()
public String getRepository()
public static WTPrincipalReference newWTPrincipalReference() throws WTException
WTException
public static WTPrincipalReference newWTPrincipalReference(WTPrincipal principal) throws WTException
principal
-
WTException
protected void initialize(WTPrincipal principal) throws WTException
principal
-
WTException
public static WTPrincipalReference newWTPrincipalReference(WTPrincipalReference principalReference) throws WTException
principalReference
-
WTException
protected void initialize(WTPrincipalReference principalReference) throws WTException
principalReference
-
WTException
public static WTPrincipalReference newWTPrincipalReference(ObjectIdentifier id) throws WTException
id
-
WTException
protected void initialize(ObjectIdentifier id) throws WTException
initialize
in class ObjectReference
id
-
WTException
public static WTPrincipalReference newWTPrincipalReference(String dn, String repository) throws WTException
dn
- repository
-
WTException
protected void initialize(String dn, String repository) throws WTException
dn
- repository
-
WTException
public String getDisplayName() throws WTException
WTException
public WTPrincipal getPrincipal() throws WTException
WTException
public String getIdentity()
public void refresh() throws WTException
refresh
in interface WTReference
refresh
in class ObjectReference
WTException
public String toString()
toString
in class ObjectReference
public boolean isAccessible() throws WTException
WTException
public Persistable getObject() throws WTRuntimeException
getObject
in interface WTReference
getObject
in class ObjectReference
WTRuntimeException
public Persistable getReadOnlyObject() throws WTRuntimeException
WTRuntimeException
public QueryKey getKey()
getKey
in interface WTReference
getKey
in class ObjectReference
public int hashCode()
hashCode
in interface WTReference
hashCode
in class ObjectReference
public boolean equals(Object obj)
equals
in interface WTReference
equals
in class ObjectReference
obj
- The object against which to compare this object.
public void inflate() throws WTException
WTException
public boolean isInflated()
public boolean references(Persistable obj)
references
in interface WTReference
references
in class ObjectReference
obj
- The object to compare against.
private ObjectIdentifier replaceProxy(ObjectIdentifier oid) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |