public class Property extends TieSystemObject
Instances of Property are dedicated to a single PropertyBundle, which represents a collection of Propery.
PropertyDefinition
,
PropertyBundle
,
PropertyBundleDefinition
Modifier and Type | Field and Description |
---|---|
static String |
BOOLEANVALUE_ATTRIBUTE
The value of this Property if the datatype is a Boolean.
|
static String |
BOOLEANVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of Booleans.
|
static String |
BUNDLE_ATTRIBUTE
The PropertyBundle to which this property belongs.
|
static String |
CLASS_NAME
Name of this class.
|
static String |
DATATYPE_ATTRIBUTE
The datatype of this Property - either scalar or array of
integer, long, double, string, boolean, DirectoryObject,
PublicObject, SchemaObject, SystemObject.
|
static String |
DATEVALUE_ATTRIBUTE
The value of this Property if the datatype is a Date.
|
static String |
DATEVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of Dates.
|
static String |
DIRECTORYOBJECTVALUE_ATTRIBUTE
The value of this Property if the datatype is a DirectoryObject.
|
static String |
DIRECTORYOBJECTVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of DirectoryObjects.
|
static String |
DOUBLEVALUE_ATTRIBUTE
The value of this Property if the datatype is a Double.
|
static String |
DOUBLEVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of Doubles.
|
static String |
INTEGERVALUE_ATTRIBUTE
The value of this Property if the datatype is an Integer.
|
static String |
INTEGERVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of Integers.
|
static String |
LONGVALUE_ATTRIBUTE
The value of this Property if the datatype is a Long.
|
static String |
LONGVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of Longs.
|
protected boolean |
m_Resolved
Whether the member variable shadows of the attribute values of this
attribute have been populated.
|
protected AttributeValue |
m_Value
The attribute value of the Property attribute appropriate for its
datatype.
|
static String |
NAME_ATTRIBUTE
The name of the Property.
|
static String |
PUBLICOBJECTVALUE_ATTRIBUTE
The value of this Property if the datatype is a PublicObject.
|
static String |
PUBLICOBJECTVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of PublicObjects.
|
static String |
SCHEMAOBJECTVALUE_ATTRIBUTE
The value of this Property if the datatype is a SchemaObject.
|
static String |
SCHEMAOBJECTVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of SchemaObjects.
|
static String |
STRINGVALUE_ATTRIBUTE
The value of this Property if the datatype is a String.
|
static String |
STRINGVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of Strings.
|
static String |
SYSTEMOBJECTVALUE_ATTRIBUTE
The value of this Property if the datatype is a SystemObject.
|
static String |
SYSTEMOBJECTVALUES_ATTRIBUTE
The value of this Property if the datatype is an array of SystemObjects.
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
Property(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a Property.
|
Modifier and Type | Method and Description |
---|---|
protected static Property |
constructProperty(LibrarySession session,
S_LibraryObjectData data)
Constructs a Property from a S_LibraryObjectData.
|
protected static Property[] |
constructPropertyArray(LibrarySession sess,
Long[] ids)
Construct a Property array from an array of object IDs.
|
protected static Vector |
constructPropertyVector(LibrarySession sess,
Vector vector)
Constructs Vector of Property from Vector of S_LibraryObjectData.
|
PropertyBundle |
getBundle()
Gets the BUNDLE attribute of this Property.
|
int |
getDataType()
Gets the data type of this Property.
|
AttributeValue |
getValue()
Gets the value of this Property as an AttributeValue.
|
void |
handleEvent(IfsEvent event)
Handles the specified event.
|
boolean |
hasNameAttribute()
Override to return true for any PublicObject, indicating
that the instance has a NAME attribute.
|
protected void |
invalidate()
Invalidates the cached value, forcing a resolve next time this Property
is accessed.
|
void |
setValue(AttributeValue av)
Sets the value and data type of this Property.
|
protected static Property |
vectorPropertyElement(Vector vector,
int index)
Returns a specific Property from a Vector of Property, at a specified
index.
|
protected static Property[] |
vectorToPropertyArray(Vector vector)
Converts a Vector of Property to an array of Property.
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, preFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String BUNDLE_ATTRIBUTE
public static final String DATATYPE_ATTRIBUTE
public static final String BOOLEANVALUE_ATTRIBUTE
public static final String INTEGERVALUE_ATTRIBUTE
public static final String LONGVALUE_ATTRIBUTE
public static final String DOUBLEVALUE_ATTRIBUTE
public static final String STRINGVALUE_ATTRIBUTE
public static final String DATEVALUE_ATTRIBUTE
public static final String SCHEMAOBJECTVALUE_ATTRIBUTE
public static final String SYSTEMOBJECTVALUE_ATTRIBUTE
public static final String PUBLICOBJECTVALUE_ATTRIBUTE
public static final String DIRECTORYOBJECTVALUE_ATTRIBUTE
public static final String BOOLEANVALUES_ATTRIBUTE
public static final String INTEGERVALUES_ATTRIBUTE
public static final String LONGVALUES_ATTRIBUTE
public static final String DOUBLEVALUES_ATTRIBUTE
public static final String STRINGVALUES_ATTRIBUTE
public static final String DATEVALUES_ATTRIBUTE
public static final String SCHEMAOBJECTVALUES_ATTRIBUTE
public static final String SYSTEMOBJECTVALUES_ATTRIBUTE
public static final String PUBLICOBJECTVALUES_ATTRIBUTE
public static final String DIRECTORYOBJECTVALUES_ATTRIBUTE
protected AttributeValue m_Value
protected boolean m_Resolved
protected Property(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- the sessionid
- the idclassId
- the class iddata
- the Property dataIfsException
- if an error occurspublic boolean hasNameAttribute() throws IfsException
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public PropertyBundle getBundle() throws IfsException
IfsException
- if operation fails.public final int getDataType() throws IfsException
Equivalent to:
AttributeValue av = getAttributeByUpperCaseName(DATATYPE_ATTRIBUTE); return av.getInteger(getSession());
IfsException
- if the operation failspublic final AttributeValue getValue() throws IfsException
This method returns an AttributeValue whose type is appropriate for the data type of this Property.
IfsException
- if the operation failspublic void setValue(AttributeValue av) throws IfsException
av
- the AttributeValue containing the new value; implies the
data typeIfsException
- if the operation failspublic void handleEvent(IfsEvent event) throws IfsException
handleEvent
in interface IfsEventHandler
handleEvent
in class LibraryObject
event
- the eventIfsException
- if the operation failsprotected final void invalidate() throws IfsException
IfsException
- if the opertation failsprotected static Vector constructPropertyVector(LibrarySession sess, Vector vector) throws IfsException
sess
- the LibrarySessionvector
- Vector of S_LibraryObjectDataIfsException
- if operation fails.protected static Property[] constructPropertyArray(LibrarySession sess, Long[] ids) throws IfsException
sess
- the requesting sessionids
- the array of object IDsIfsException
- if operation fails.protected static Property constructProperty(LibrarySession session, S_LibraryObjectData data) throws IfsException
session
- the sessiondata
- the Property dataIfsException
- if an error occursprotected static Property[] vectorToPropertyArray(Vector vector)
vector
- Vector of Propertyprotected static Property vectorPropertyElement(Vector vector, int index) throws IndexOutOfBoundsException
vector
- Vector of Propertyindex
- index into the Vector of PropertyIndexOutOfBoundsException
- if index is invalid.Copyright © 2023. All rights reserved.