Class PrometheusControlKeySet
java.lang.Object
io.github.tonywasher.joceanus.metis.field.MetisFieldVersionedItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusControlKeySet
- All Implemented Interfaces:
MetisDataItem.MetisDataDeletableItem,MetisDataItem.MetisDataIndexedItem,MetisDataItem.MetisDataObjectFormat,MetisFieldItem,MetisFieldItem.MetisFieldTableItem,MetisFieldItem.MetisFieldUpdatableItem,PrometheusTableItem,Comparable<Object>
ControlKeySet definition and list. The controlKeySet secures a set of dataKeySets.
- Author:
- Tony Washer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDataKeySet List.Nested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldUpdatableItem, MetisFieldItem.MetisFieldVersionedDefNested classes/interfaces inherited from interface io.github.tonywasher.joceanus.prometheus.data.PrometheusTableItem
PrometheusTableItem.PrometheusTableList<T extends PrometheusTableItem> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringList name.static final StringObject name.static final intKeySetWrapLength.Fields inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
DESCLEN, ERROR_CREATEITEM, ERROR_DISABLED, ERROR_DUPLICATE, ERROR_EXIST, ERROR_INVALIDCHAR, ERROR_LENGTH, ERROR_MISSING, ERROR_MULT, ERROR_NEGATIVE, ERROR_POSITIVE, ERROR_RANGE, ERROR_RESOLUTION, ERROR_UNKNOWN, ERROR_VALIDATION, ERROR_ZERO, NAMELEN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrometheusControlKeySet(PrometheusControlKeySet.PrometheusControlKeySetList pList, PrometheusControlKey pControlKey) Constructor for a new DataKeySet.protectedPrometheusControlKeySet(PrometheusControlKeySet.PrometheusControlKeySetList pList, PrometheusControlKeySet pSource) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintcompareValues(PrometheusDataItem pThat) compareTo another dataItem.protected voidDelete the old ControlKeySet and DataKeySets.getBase()Get the base item for this item.final PrometheusControlKeyGet the ControlKey.Get the ControlKeyId for this item.Obtain the fieldSet.Get the KeySet.getList()Obtain the list.(package private) PrometheusDataKeySetObtain the next DataKeySet.final byte[]Get the securedKeySetDef.(package private) GordianFactoryObtain the security factory.(package private) voidregisterDataKeySet(PrometheusDataKeySet pKeySet) Register DataKeySet.voidResolve all references to current dataSet.Methods inherited from class io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
addError, adjustMapForItem, applyChanges, byteLength, clearActive, clearTouches, compareId, compareTo, deRegister, equals, fieldChanged, formatObject, getBaseState, getDataSet, getFieldState, getItemState, getItemType, getNextVersion, getStyle, getTouchStatus, getValueSetVersion, hashCode, includeXmlField, indexOf, isActive, isDisabled, isEditable, isHeader, isListLocked, isLocked, popHistory, removeItem, resolveDataLink, rewindToVersion, setBase, setHeader, setHistory, setNewVersion, setValidEdit, touchItem, touchOnUpdate, touchUnderlyingItems, unLink, updateMaps, validate, validStringMethods inherited from class io.github.tonywasher.joceanus.metis.field.MetisFieldVersionedItem
adjustState, checkForHistory, clearErrors, clearHistory, condenseHistory, fieldChanged, getEditState, getFieldErrors, getFieldErrors, getFirstError, getIndexedId, getOriginalValues, getOriginalVersion, getState, getValidation, getValues, getValuesHistory, getVersion, getVersionedField, hasChanges, hasErrors, hasErrors, hasHistory, isDeleted, isValid, maybePopHistory, newVersionValues, pushHistory, pushHistory, resetHistory, setDeleted, setEditState, setHistory, setIndexedId, setItemType, setValuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataDeletableItem
isDeleted, setDeletedMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataIndexedItem
getIndexedIdMethods inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem.MetisFieldUpdatableItem
checkForHistory, getFieldErrors, getFieldErrors, getOriginalValues, getValues, getValuesHistory, hasErrors, pushHistory, skipField
-
Field Details
-
OBJECT_NAME
Object name. -
LIST_NAME
List name. -
WRAPLEN
public static final int WRAPLENKeySetWrapLength.
-
-
Constructor Details
-
PrometheusControlKeySet
protected PrometheusControlKeySet(PrometheusControlKeySet.PrometheusControlKeySetList pList, PrometheusControlKeySet pSource) Copy Constructor.- Parameters:
pList- the list the copy belongs topSource- The Key to copy
-
PrometheusControlKeySet
protected PrometheusControlKeySet(PrometheusControlKeySet.PrometheusControlKeySetList pList, PrometheusControlKey pControlKey) throws OceanusException Constructor for a new DataKeySet.- Parameters:
pList- the list to which to add the keySet topControlKey- the control key- Throws:
OceanusException- on error
-
-
Method Details
-
getDataFieldSet
Description copied from interface:MetisFieldItemObtain the fieldSet.- Specified by:
getDataFieldSetin interfaceMetisFieldItem- Overrides:
getDataFieldSetin classMetisFieldVersionedItem- Returns:
- the fieldSet
-
getSecurityFactory
GordianFactory getSecurityFactory()Obtain the security factory.- Returns:
- the security factory
-
getNextDataKeySet
PrometheusDataKeySet getNextDataKeySet()Obtain the next DataKeySet.- Returns:
- the next dataKeySet
-
getControlKey
Get the ControlKey.- Returns:
- the controlKey
-
getControlKeyId
Get the ControlKeyId for this item.- Returns:
- the ControlKeyId
-
getSecuredKeySetDef
public final byte[] getSecuredKeySetDef()Get the securedKeySetDef.- Returns:
- the securedKeySetDef
-
getKeySet
Get the KeySet.- Returns:
- the keySet
-
getBase
Description copied from class:PrometheusDataItemGet the base item for this item.- Overrides:
getBasein classPrometheusDataItem- Returns:
- the Base item or
null
-
getList
Description copied from class:PrometheusDataItemObtain the list.- Overrides:
getListin classPrometheusDataItem- Returns:
- the list
-
compareValues
Description copied from class:PrometheusDataItemcompareTo another dataItem.- Specified by:
compareValuesin classPrometheusDataItem- Parameters:
pThat- the DataItem to compare- Returns:
- the order
-
resolveDataSetLinks
Description copied from class:PrometheusDataItemResolve all references to current dataSet.- Overrides:
resolveDataSetLinksin classPrometheusDataItem- Throws:
OceanusException- on error
-
deleteControlKeySet
protected void deleteControlKeySet()Delete the old ControlKeySet and DataKeySets. -
registerDataKeySet
Register DataKeySet.- Parameters:
pKeySet- the DataKeySet to register
-