|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.access.AccessControlSurrogate
The AccessControlSurrogate is a stand-in for query items when access control is applied. It contains attributes identical to those of the class that it is representing. An AccessControlSurrogate contains all possible attributes necessary for making the access control decision.
Use the newAccessControlSurrogate
static factory method(s),
not the AccessControlSurrogate
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: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private AdminDomainRef |
domainRef
|
private AclEntrySet |
entrySet
|
static long |
EXTERNALIZATION_VERSION_UID
|
private boolean |
inheritedDomain
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private Ownership |
ownership
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private LifeCycleState |
state
|
static String |
TARGET_CLASS_NAME
Label for the attribute. |
private static int |
TARGET_CLASS_NAME_UPPER_LIMIT
|
private String |
targetClassName
|
private TeamReference |
teamId
|
private TeamTemplateReference |
teamTemplateId
|
private AttributeContainer |
theAttributeContainer
|
private PersistInfo |
thePersistInfo
|
private TypeDefinitionReference |
typeDefinitionReference
|
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.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.ownership.Ownable |
OWNERSHIP |
Fields inherited from interface wt.lifecycle.LifeCycleManaged |
LIFE_CYCLE_AT_GATE, LIFE_CYCLE_BASIC, LIFE_CYCLE_NAME, LIFE_CYCLE_STATE, LIFE_CYCLE_TEMPLATE, STATE |
Fields inherited from interface wt.team.TeamManaged |
TEAM_ID, TEAM_IDENTITY, TEAM_NAME, TEAM_TEMPLATE_ID, TEAM_TEMPLATE_IDENTITY, TEAM_TEMPLATE_NAME |
Fields inherited from interface wt.type.Typed |
TYPE_DEFINITION_REFERENCE |
Fields inherited from interface wt.iba.value.IBAHolder |
ATTRIBUTE_CONTAINER |
Constructor Summary | |
AccessControlSurrogate()
|
Method Summary | |
void |
checkAttributes()
Validate the values of this Persistable object's attributes. |
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. |
AttributeContainer |
getAttributeContainer()
Gets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
ClassInfo |
getClassInfo()
Returns the ClassInfo object for this class. |
String |
getConceptualClassname()
Deprecated. |
AdminDomainRef |
getDomainRef()
Gets the object for the association that plays role: DOMAIN_REF. |
AclEntrySet |
getEntrySet()
Gets the value of the attribute: ENTRY_SET. |
String |
getIdentity()
Deprecated. Replaced by IdentityFactory.getDispayIdentifier(object) to return a localizable equivalent of getIdentity(). To return a localizable value which includes the object type, use IdentityFactory.getDisplayIdentity(object). Other alternatives are ((WTObject)obj).getDisplayIdentifier() and ((WTObject)obj).getDisplayIdentity(). |
String |
getLifeCycleName()
Gets the value of the attribute: LIFE_CYCLE_NAME. |
State |
getLifeCycleState()
Gets the value of the attribute: LIFE_CYCLE_STATE. |
LifeCycleTemplateReference |
getLifeCycleTemplate()
Gets the value of the attribute: LIFE_CYCLE_TEMPLATE. |
Ownership |
getOwnership()
Gets the object for the association that plays role: OWNERSHIP. |
PersistInfo |
getPersistInfo()
Gets the object for the association that plays role: PERSIST_INFO. |
LifeCycleState |
getState()
Gets the object for the association that plays role: STATE. |
String |
getTargetClassName()
Gets the value of the attribute: TARGET_CLASS_NAME. |
TeamReference |
getTeamId()
Gets the object for the association that plays role: TEAM_ID. |
String |
getTeamIdentity()
Gets the value of the attribute: TEAM_IDENTITY. |
String |
getTeamName()
Gets the value of the attribute: TEAM_NAME. |
TeamTemplateReference |
getTeamTemplateId()
Gets the object for the association that plays role: TEAM_TEMPLATE_ID. |
String |
getTeamTemplateIdentity()
Gets the value of the attribute: TEAM_TEMPLATE_IDENTITY. |
String |
getTeamTemplateName()
Gets the value of the attribute: TEAM_TEMPLATE_NAME. |
String |
getType()
Deprecated. Replaced by IdentityFactory.getDispayType(object) to return a localizable equivalent of getType(). Another alternative is ((WTObject)obj).getDisplayType(). |
TypeDefinitionReference |
getTypeDefinitionReference()
Gets the object for the association that plays role: TYPE_DEFINITION_REFERENCE. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize()
Supports initialization, following construction of an instance. |
boolean |
isInheritedDomain()
Gets the value of the attribute: INHERITED_DOMAIN. |
boolean |
isLifeCycleAtGate()
Gets the value of the attribute: LIFE_CYCLE_AT_GATE. |
boolean |
isLifeCycleBasic()
Gets the value of the attribute: LIFE_CYCLE_BASIC. |
static AccessControlSurrogate |
newAccessControlSurrogate()
Default factory for the class. |
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(AccessControlSurrogate thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAttributeContainer(AttributeContainer a_AttributeContainer)
Sets the object for the association that plays role: ATTRIBUTE_CONTAINER. |
void |
setDomainRef(AdminDomainRef a_DomainRef)
Sets the object for the association that plays role: DOMAIN_REF. |
void |
setEntrySet(AclEntrySet a_EntrySet)
Sets the value of the attribute: ENTRY_SET. |
void |
setInheritedDomain(boolean a_InheritedDomain)
Sets the value of the attribute: INHERITED_DOMAIN. |
void |
setOwnership(Ownership a_Ownership)
Sets the object for the association that plays role: OWNERSHIP. |
void |
setPersistInfo(PersistInfo a_PersistInfo)
Sets the object for the association that plays role: PERSIST_INFO. |
void |
setState(LifeCycleState a_State)
Sets the object for the association that plays role: STATE. |
void |
setTargetClassName(String a_TargetClassName)
Sets the value of the attribute: TARGET_CLASS_NAME. |
void |
setTeamId(TeamReference a_TeamId)
Sets the object for the association that plays role: TEAM_ID. |
void |
setTeamTemplateId(TeamTemplateReference a_TeamTemplateId)
Sets the object for the association that plays role: TEAM_TEMPLATE_ID. |
void |
setTypeDefinitionReference(TypeDefinitionReference a_TypeDefinitionReference)
Sets the object for the association that plays role: TYPE_DEFINITION_REFERENCE. |
private void |
stateValidate(LifeCycleState a_State)
|
private void |
targetClassNameValidate(String a_TargetClassName)
|
private void |
teamIdValidate(TeamReference a_TeamId)
|
private void |
teamTemplateIdValidate(TeamTemplateReference a_TeamTemplateId)
|
String |
toString()
Returns the conceptual (modeled) name for the class. |
private void |
typeDefinitionReferenceValidate(TypeDefinitionReference a_TypeDefinitionReference)
|
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 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 String TARGET_CLASS_NAME
private static int TARGET_CLASS_NAME_UPPER_LIMIT
private String targetClassName
private AclEntrySet entrySet
private PersistInfo thePersistInfo
private boolean inheritedDomain
private AdminDomainRef domainRef
private Ownership ownership
private LifeCycleState state
private TeamTemplateReference teamTemplateId
private TeamReference teamId
private TypeDefinitionReference typeDefinitionReference
private AttributeContainer theAttributeContainer
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public AccessControlSurrogate()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(AccessControlSurrogate 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
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String toString()
public ClassInfo getClassInfo() throws WTIntrospectionException
getClassInfo
in interface NetFactor
WTIntrospectionException
public String getTargetClassName()
public void setTargetClassName(String a_TargetClassName) throws WTPropertyVetoException
a_TargetClassName
-
WTPropertyVetoException
private void targetClassNameValidate(String a_TargetClassName) throws WTPropertyVetoException
a_TargetClassName
-
WTPropertyVetoException
public static AccessControlSurrogate newAccessControlSurrogate() throws WTException
WTException
protected void initialize() throws WTException
WTException
public AclEntrySet getEntrySet()
getEntrySet
in interface AdHocControlled
public void setEntrySet(AclEntrySet a_EntrySet)
setEntrySet
in interface AdHocControlled
a_EntrySet
- public String getIdentity()
getIdentity
in interface Persistable
public String getType()
getType
in interface Persistable
public void checkAttributes() throws InvalidAttributeException
checkAttributes
in interface Persistable
InvalidAttributeException
public PersistInfo getPersistInfo()
getPersistInfo
in interface Persistable
public void setPersistInfo(PersistInfo a_PersistInfo)
setPersistInfo
in interface Persistable
a_PersistInfo
- public boolean isInheritedDomain()
isInheritedDomain
in interface DomainAdministered
public void setInheritedDomain(boolean a_InheritedDomain) throws WTPropertyVetoException
setInheritedDomain
in interface DomainAdministered
a_InheritedDomain
-
WTPropertyVetoException
public AdminDomainRef getDomainRef()
getDomainRef
in interface DomainAdministered
public void setDomainRef(AdminDomainRef a_DomainRef)
setDomainRef
in interface DomainAdministered
a_DomainRef
- public Ownership getOwnership()
getOwnership
in interface Ownable
public void setOwnership(Ownership a_Ownership)
setOwnership
in interface Ownable
a_Ownership
- public String getLifeCycleName()
getLifeCycleName
in interface LifeCycleManaged
public State getLifeCycleState()
getLifeCycleState
in interface LifeCycleManaged
public boolean isLifeCycleAtGate()
isLifeCycleAtGate
in interface LifeCycleManaged
public LifeCycleTemplateReference getLifeCycleTemplate()
getLifeCycleTemplate
in interface LifeCycleManaged
public boolean isLifeCycleBasic()
isLifeCycleBasic
in interface LifeCycleManaged
public LifeCycleState getState()
getState
in interface LifeCycleManaged
public void setState(LifeCycleState a_State) throws WTPropertyVetoException
setState
in interface LifeCycleManaged
a_State
-
WTPropertyVetoException
private void stateValidate(LifeCycleState a_State) throws WTPropertyVetoException
a_State
-
WTPropertyVetoException
public String getTeamName()
getTeamName
in interface TeamManaged
public String getTeamIdentity()
getTeamIdentity
in interface TeamManaged
public String getTeamTemplateName()
getTeamTemplateName
in interface TeamManaged
public String getTeamTemplateIdentity()
getTeamTemplateIdentity
in interface TeamManaged
public TeamTemplateReference getTeamTemplateId()
getTeamTemplateId
in interface TeamManaged
public void setTeamTemplateId(TeamTemplateReference a_TeamTemplateId) throws WTPropertyVetoException
setTeamTemplateId
in interface TeamManaged
a_TeamTemplateId
-
WTPropertyVetoException
private void teamTemplateIdValidate(TeamTemplateReference a_TeamTemplateId) throws WTPropertyVetoException
a_TeamTemplateId
-
WTPropertyVetoException
public TeamReference getTeamId()
getTeamId
in interface TeamManaged
public void setTeamId(TeamReference a_TeamId) throws WTPropertyVetoException
setTeamId
in interface TeamManaged
a_TeamId
-
WTPropertyVetoException
private void teamIdValidate(TeamReference a_TeamId) throws WTPropertyVetoException
a_TeamId
-
WTPropertyVetoException
public TypeDefinitionReference getTypeDefinitionReference()
getTypeDefinitionReference
in interface Typed
public void setTypeDefinitionReference(TypeDefinitionReference a_TypeDefinitionReference) throws WTPropertyVetoException
setTypeDefinitionReference
in interface Typed
a_TypeDefinitionReference
-
WTPropertyVetoException
private void typeDefinitionReferenceValidate(TypeDefinitionReference a_TypeDefinitionReference) throws WTPropertyVetoException
a_TypeDefinitionReference
-
WTPropertyVetoException
public AttributeContainer getAttributeContainer()
getAttributeContainer
in interface IBAHolder
public void setAttributeContainer(AttributeContainer a_AttributeContainer)
setAttributeContainer
in interface IBAHolder
a_AttributeContainer
- 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
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |