|
|||||||||||
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
wt.org.WTGroup
Group of users.
Use the newWTGroup
static factory method(s), not the WTGroup
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[] |
ATTRIBUTE_NAMES
|
private static String |
CLASSNAME
|
private static String[] |
DEFAULT_DIR_ATTRIBUTE_NAMES
|
private static String |
defaultAdapter
|
private String |
description
|
static String |
DESCRIPTION
|
private static String[] |
DIR_ATTRIBUTE_KEYS
|
private AclEntrySet |
entrySet
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
INTROSPECTION_RESOURCE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static Hashtable |
serviceMaps
|
protected static long |
VERSION_50_UID
|
Fields inherited from class wt.org.WTPrincipal |
ALL, DISABLED, DN, INFLATED, NAME, OWNER, REPAIR_NEEDED, REPOSITORY |
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.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 | |
WTGroup()
|
Method Summary | |
private void |
_inflate()
|
boolean |
addMember(WTPrincipal principal)
Adds a member to the group. |
WTPrincipal[] |
addMembers(WTPrincipal[] principals)
Add members to the group. |
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 ObjectIdentifier s. |
HashMap |
getAttributeMap(String service)
Supported API: false |
String |
getBusinessType()
Supported API: true |
String |
getConceptualClassname()
Deprecated. |
String |
getDescription()
Supported API: false |
String |
getDn()
Gets the value of the attribute: DN. |
AclEntrySet |
getEntrySet()
Gets the value of the attribute: ENTRY_SET. |
HashMap |
getFieldValueMap()
Supported API: false |
String |
getRepository()
Gets the value of the attribute: REPOSITORY. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
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,
String service)
Supports initialization, following construction of an instance. |
boolean |
isMember(WTPrincipal principal)
Tells whether a principal belongs to a group: returns true if it belongs, false otherwise. |
void |
mapAttributes(HashMap attributes)
Supported API: false |
Enumeration |
members()
Returns all the members of the group. |
static WTGroup |
newWTGroup(String name)
Constructor: constructs a group given its name. |
static WTGroup |
newWTGroup(String name,
DirectoryContextProvider context)
Constructor: constructs a group given its name and the organization with which it will be associated. |
static WTGroup |
newWTGroup(String name,
String dn,
String service)
Constructor: constructs a group given its name, dn, and Info*Engine service. |
Enumeration |
parentGroups()
Returns the groups to which the group 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(WTGroup thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
boolean |
removeMember(WTPrincipal principal)
Removes a member from the group. |
void |
setDescription(String description)
Supported API: false |
void |
setDisabled(boolean disabled)
Supported API: true |
void |
setDn(String dn)
Sets the value of the attribute: DN. |
void |
setEntrySet(AclEntrySet a_EntrySet)
Sets the value of the attribute: ENTRY_SET. |
void |
setRepository(String repository)
Sets the value of the attribute: REPOSITORY. |
String |
toString()
If the object has been persisted, return it's ObjectIdentifier. |
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, initialize, 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 |
private static final String RESOURCE
private static final String CLASSNAME
private String description
private AclEntrySet entrySet
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String INTROSPECTION_RESOURCE
protected static final long VERSION_50_UID
public static final String DESCRIPTION
private static final String[] ATTRIBUTE_NAMES
private static final String[] DIR_ATTRIBUTE_KEYS
private static final String[] DEFAULT_DIR_ATTRIBUTE_NAMES
private static String defaultAdapter
private static Hashtable serviceMaps
Constructor Detail |
public WTGroup()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WTPrincipal
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WTPrincipal
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTGroup 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 WTPrincipal
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 WTPrincipal
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public static WTGroup newWTGroup(String name) throws WTException
name
-
WTException
protected void initialize(String name) throws WTException
initialize
in class WTPrincipal
name
-
WTException
public static WTGroup newWTGroup(String name, String dn, String service) throws WTException
name
- dn
- service
-
WTException
protected void initialize(String name, String dn, String service) throws WTException
name
- dn
- service
-
WTException
public static WTGroup newWTGroup(String name, DirectoryContextProvider context) throws WTException
name
- context
-
WTException
protected void initialize(String name, DirectoryContextProvider context) throws WTException
name
- context
-
WTException
public String getBusinessType()
getBusinessType
in interface BusinessInformation
getBusinessType
in class WTPrincipal
public String getDescription() throws WTException
WTException
public void setDescription(String description) throws WTException, WTPropertyVetoException
description
-
WTException
WTPropertyVetoException
public void setDisabled(boolean disabled) throws WTException, WTPropertyVetoException
setDisabled
in class WTPrincipal
disabled
-
WTException
WTPropertyVetoException
public boolean addMember(WTPrincipal principal) throws WTException
principal
-
WTException
public WTPrincipal[] addMembers(WTPrincipal[] principals) throws WTException
principals
-
WTException
public boolean removeMember(WTPrincipal principal) throws WTException
principal
-
WTException
public boolean isMember(WTPrincipal principal) throws WTException
principal
-
WTException
public Enumeration members() throws WTException
WTException
public Enumeration parentGroups() throws WTException
WTException
public HashMap getAttributeMap(String service) throws WTException
getAttributeMap
in class WTPrincipal
service
-
WTException
public HashMap getFieldValueMap() throws WTException
getFieldValueMap
in class WTPrincipal
WTException
public void mapAttributes(HashMap attributes) throws WTException, WTPropertyVetoException
mapAttributes
in class WTPrincipal
attributes
-
WTException
WTPropertyVetoException
protected void copyAttributes(WTPrincipal target) throws WTException, WTPropertyVetoException
copyAttributes
in class WTPrincipal
target
-
WTException
WTPropertyVetoException
public AclEntrySet getEntrySet()
getEntrySet
in interface AdHocControlled
public void setEntrySet(AclEntrySet a_EntrySet)
setEntrySet
in interface AdHocControlled
a_EntrySet
- public boolean equals(Object obj)
ObjectIdentifier
s.
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
equals
in interface Principal
equals
in class WTPrincipal
obj
-
public int hashCode()
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
hashCode
in interface Principal
hashCode
in class WTPrincipal
public String toString()
WTObject
toString
in interface Principal
toString
in class WTObject
public String getDn()
WTPrincipal
getDn
in class WTPrincipal
public void setDn(String dn)
WTPrincipal
setDn
in class WTPrincipal
dn
- public String getRepository()
WTPrincipal
getRepository
in class WTPrincipal
public void setRepository(String repository)
WTPrincipal
setRepository
in class WTPrincipal
repository
- private void _inflate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |