Interface ChoiceList
-
- All Superinterfaces:
- EngineObject, IndependentlyPersistableObject, IndependentObject, Replicable, RepositoryObject, java.io.Serializable, Subscribable
public interface ChoiceList extends RepositoryObject, Replicable, Subscribable, IndependentlyPersistableObject
Represents a choice list in an object store. Each choice list contains a list collection ofChoiceobjects that, when associated with a property, provides a discrete set of possible values that the property can hold. By using a choice list, you can enforce restrictions on property values.There are two types of choice lists: integer and string. A choice list's type is specified by the following
TypeIDconstant values, which are stored in aChoiceListobject's DataType property:LONG: AChoiceListobject that represents a choice list that holds integer-typeChoiceobjects. EachChoiceobject in such a choice list must represent either an integer-type choice item or a group node that holds a nested collection of integer-typeChoiceobjects. An integer-type choice list cannot contain any string-typeChoiceobjects.STRING: AChoiceListobject that represents a choice list that holds string-typeChoiceobjects. EachChoiceobject in such a choice list must represent either a string-type choice item or a group node that holds a nested collection of string-typeChoiceobjects. A string-type choice list cannot contain any integer-typeChoiceobjects.
TypeIDconstants, onlyLONGandSTRINGare valid constants for aChoiceListobject's DataType property.A
ChoiceListobject is independently persistable (that is, it can be saved directly using itssavemethod) and controls the state of any dependently persistableChoiceobjects that belong to it. You can access eachChoiceobject that belong to aChoiceListobject in thecom.filenet.api.collection.ChoiceListcollection that is specified by its ChoiceValues property. EachChoiceobject in this collection represents either an individual choice item or a group node for a nested collection ofChoiceobjects.A choice list's display name is stored in its DisplayName property and must be unique within an object store. Unlike a
Choiceobject, aChoiceListobject does not have a mechanism for localizing its display name.Choice list hierarchy is specified by its HasHierarchy property. This read-only property indicates whether a given choice list has a hierarchical structure or not. If the choice list contains at least one
Choiceobject that represents a group node, the server automatically sets this property totrue.For a choice list to be useful, it must be associated with a property. You can either associate a choice list with a property template, therefore causing it to be automatically associated with every property definition created from that property template, or you can associate a choice list with an individual property definition. To associate a choice list with a property template or a property definition, set its ChoiceList property to the
com.filenet.api.admin.ChoiceListobject representing the choice list.To create a new
ChoiceListobject, call theFactory.ChoiceList.createInstancemethod. Set the appropriate properties and add anyChoiceobjects to thecom.filenet.api.collection.ChoiceListcollection specified by its ChoiceValues property. Call thesavemethod to save the new object to the persistent store. For the save to be successful you must, at a minimum, set the newChoiceListobject's DisplayName and DataType properties.Metadata
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description EventSetget_AuditedEvents()Returns the value of the AuditedEvents property.ChoiceListget_ChoiceValues()Returns the value of the ChoiceValues property.java.lang.Stringget_Creator()Returns the value of the Creator property.TypeIDget_DataType()Returns the value of the DataType property.java.util.Dateget_DateCreated()Returns the value of the DateCreated property.java.util.Dateget_DateLastModified()Returns the value of the DateLastModified property.java.lang.Stringget_DescriptiveText()Returns the value of the DescriptiveText property.java.lang.Stringget_DisplayName()Returns the value of the DisplayName property.java.lang.Booleanget_HasHierarchy()Returns the value of the HasHierarchy property.Idget_Id()Returns the value of the Id property.AddOnget_InstalledByAddOn()Returns the value of the InstalledByAddOn property.java.lang.Stringget_LastModifier()Returns the value of the LastModifier property.java.lang.Stringget_Name()Returns the value of the Name property.java.lang.Stringget_Owner()Returns the value of the Owner property.AccessPermissionListget_Permissions()Returns the value of the Permissions property.voidset_ChoiceValues(ChoiceList value)Sets the value of the ChoiceValues property.voidset_Creator(java.lang.String value)Sets the value of the Creator property.voidset_DataType(TypeID value)Sets the value of the DataType property.voidset_DateCreated(java.util.Date value)Sets the value of the DateCreated property.voidset_DateLastModified(java.util.Date value)Sets the value of the DateLastModified property.voidset_DescriptiveText(java.lang.String value)Sets the value of the DescriptiveText property.voidset_DisplayName(java.lang.String value)Sets the value of the DisplayName property.voidset_LastModifier(java.lang.String value)Sets the value of the LastModifier property.voidset_Owner(java.lang.String value)Sets the value of the Owner property.voidset_Permissions(AccessPermissionList value)Sets the value of the Permissions property.-
Methods inherited from interface com.filenet.api.core.RepositoryObject
getObjectStore
-
Methods inherited from interface com.filenet.api.replication.Replicable
get_ExternalReplicaIdentities, get_ReplicationGroup, set_ExternalReplicaIdentities, set_ReplicationGroup
-
Methods inherited from interface com.filenet.api.core.Subscribable
raiseEvent
-
Methods inherited from interface com.filenet.api.core.IndependentlyPersistableObject
addPendingAction, clearPendingActions, delete, getAccessAllowed, getPendingActions, getUpdateSequenceNumber, isCurrent, save, save, setUpdateSequenceNumber
-
Methods inherited from interface com.filenet.api.core.IndependentObject
fetchProperties, fetchProperties, fetchProperty, fetchProperty, getObjectReference, refresh, refresh, refresh
-
Methods inherited from interface com.filenet.api.core.EngineObject
get_ClassDescription, getClassName, getConnection, getProperties, getSuperClasses
-
-
-
-
Method Detail
-
get_Creator
java.lang.String get_Creator()
Returns the value of the Creator property. For more information, see Creator Property.
-
set_Creator
void set_Creator(java.lang.String value)
Sets the value of the Creator property. For more information, see Creator Property.
-
get_DateCreated
java.util.Date get_DateCreated()
Returns the value of the DateCreated property. For more information, see DateCreated Property.
-
set_DateCreated
void set_DateCreated(java.util.Date value)
Sets the value of the DateCreated property. For more information, see DateCreated Property.
-
get_LastModifier
java.lang.String get_LastModifier()
Returns the value of the LastModifier property. For more information, see LastModifier Property.
-
set_LastModifier
void set_LastModifier(java.lang.String value)
Sets the value of the LastModifier property. For more information, see LastModifier Property.
-
get_DateLastModified
java.util.Date get_DateLastModified()
Returns the value of the DateLastModified property. For more information, see DateLastModified Property.
-
set_DateLastModified
void set_DateLastModified(java.util.Date value)
Sets the value of the DateLastModified property. For more information, see DateLastModified Property.
-
get_Id
Id get_Id()
Returns the value of the Id property. For more information, see Id Property.
-
get_Name
java.lang.String get_Name()
Returns the value of the Name property. For more information, see Name Property.
-
get_AuditedEvents
EventSet get_AuditedEvents()
Returns the value of the AuditedEvents property. For more information, see AuditedEvents Property.
-
get_Owner
java.lang.String get_Owner()
Returns the value of the Owner property. For more information, see Owner Property.
-
set_Owner
void set_Owner(java.lang.String value)
Sets the value of the Owner property. For more information, see Owner Property.
-
get_Permissions
AccessPermissionList get_Permissions()
Returns the value of the Permissions property. For more information, see Permissions Property.
-
set_Permissions
void set_Permissions(AccessPermissionList value)
Sets the value of the Permissions property. For more information, see Permissions Property.
-
get_DisplayName
java.lang.String get_DisplayName()
Returns the value of the DisplayName property. For more information, see DisplayName Property.
-
set_DisplayName
void set_DisplayName(java.lang.String value)
Sets the value of the DisplayName property. For more information, see DisplayName Property.
-
get_DescriptiveText
java.lang.String get_DescriptiveText()
Returns the value of the DescriptiveText property. For more information, see DescriptiveText Property.
-
set_DescriptiveText
void set_DescriptiveText(java.lang.String value)
Sets the value of the DescriptiveText property. For more information, see DescriptiveText Property.
-
get_DataType
TypeID get_DataType()
Returns the value of the DataType property. For more information, see DataType Property.
-
set_DataType
void set_DataType(TypeID value)
Sets the value of the DataType property. For more information, see DataType Property.
-
get_ChoiceValues
ChoiceList get_ChoiceValues()
Returns the value of the ChoiceValues property. For more information, see ChoiceValues Property.
-
set_ChoiceValues
void set_ChoiceValues(ChoiceList value)
Sets the value of the ChoiceValues property. For more information, see ChoiceValues Property.
-
get_HasHierarchy
java.lang.Boolean get_HasHierarchy()
Returns the value of the HasHierarchy property. For more information, see HasHierarchy Property.
-
get_InstalledByAddOn
AddOn get_InstalledByAddOn()
Returns the value of the InstalledByAddOn property. For more information, see InstalledByAddOn Property.
-
-