Class PrometheusControlKey
java.lang.Object
io.github.tonywasher.joceanus.metis.field.MetisFieldVersionedItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataItem
io.github.tonywasher.joceanus.prometheus.data.PrometheusControlKey
- All Implemented Interfaces:
MetisDataItem.MetisDataDeletableItem,MetisDataItem.MetisDataIndexedItem,MetisDataItem.MetisDataObjectFormat,MetisFieldItem,MetisFieldItem.MetisFieldTableItem,MetisFieldItem.MetisFieldUpdatableItem,PrometheusTableItem,Comparable<Object>
ControlKey definition and list. The Control Key represents the passwordHash that controls
securing of the dataKeys. It maintains a map of the associated DataKeys.
- Author:
- Tony Washer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classControlKey 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 intKeySetHash Length.static final StringName of Database.static final StringObject name.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 -
Method Summary
Modifier and TypeMethodDescriptionintcompareValues(PrometheusDataItem pThat) compareTo another dataItem.(package private) voidDelete the old set of ControlKey and DataKeys.getBase()Get the base item for this item.Get the CreationDate.Obtain the fieldSet.Get the factoryLock.getList()Obtain the list.byte[]Get the LockBytes.(package private) PrometheusDataKeySetObtain the next DataKeySet.Get the securityFactory.(package private) voidRegister ControlKeySet.(package private) voidupdateFactoryLock(String pSource) Update factoryLock.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, resolveDataSetLinks, 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. -
LOCKLEN
public static final int LOCKLENKeySetHash Length. -
NAME_DATABASE
Name of Database.
-
-
Method Details
-
getDataFieldSet
Description copied from interface:MetisFieldItemObtain the fieldSet.- Specified by:
getDataFieldSetin interfaceMetisFieldItem- Overrides:
getDataFieldSetin classMetisFieldVersionedItem- Returns:
- the fieldSet
-
getLockBytes
public byte[] getLockBytes()Get the LockBytes.- Returns:
- the hash bytes
-
getFactoryLock
Get the factoryLock.- Returns:
- the factoryLock
-
getSecurityFactory
Get the securityFactory.- Returns:
- the securityFactory
-
getCreationDate
Get the CreationDate.- Returns:
- the creationDate
-
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
-
getNextDataKeySet
PrometheusDataKeySet getNextDataKeySet()Obtain the next DataKeySet.- Returns:
- the next dataKeySet
-
compareValues
Description copied from class:PrometheusDataItemcompareTo another dataItem.- Specified by:
compareValuesin classPrometheusDataItem- Parameters:
pThat- the DataItem to compare- Returns:
- the order
-
deleteControlSet
void deleteControlSet()Delete the old set of ControlKey and DataKeys. -
updateFactoryLock
Update factoryLock.- Parameters:
pSource- the source of the data- Throws:
OceanusException- on error
-
registerControlKeySet
Register ControlKeySet.- Parameters:
pKeySet- the ControlKeySet to register
-