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,MetisFieldVersion.MetisFieldUpdatableItem,MetisFieldVersion.MetisFieldVersionedItemCtl,PrometheusCryptographyData.PrometheusControlKeySetCtl,PrometheusData.PrometheusDataItemCtl,PrometheusTableItem,Comparable<Object>
public class PrometheusControlKeySet
extends PrometheusDataItem
implements PrometheusCryptographyData.PrometheusControlKeySetCtl
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.MetisFieldSetCtl<T extends MetisFieldItem>, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, 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, PrometheusControlKeySet pSource) Copy Constructor.protectedPrometheusControlKeySet(PrometheusControlKeySet.PrometheusControlKeySetList pList, PrometheusCryptographyData.PrometheusControlKeyCtl pControlKey) Constructor for a new DataKeySet. -
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.Get 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.Obtain the security factory.voidRegister 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, 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
isActive, isDeleted, setDeletedMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataIndexedItem
getIndexedIdMethods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataObjectFormat
formatObjectMethods inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldVersion.MetisFieldUpdatableItem
checkForHistory, getFieldErrors, getFieldErrors, getNextVersion, getOriginalValues, getValues, getValuesHistory, hasErrors, isEditable, popHistory, pushHistory, skipFieldMethods inherited from interface io.github.tonywasher.joceanus.prometheus.data.PrometheusData.PrometheusDataItemCtl
setIndexedIdMethods inherited from interface io.github.tonywasher.joceanus.prometheus.data.PrometheusTableItem
isHeader
-
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, PrometheusCryptographyData.PrometheusControlKeyCtl 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
Description copied from interface:PrometheusCryptographyData.PrometheusControlKeySetCtlObtain the security factory.- Specified by:
getSecurityFactoryin interfacePrometheusCryptographyData.PrometheusControlKeySetCtl- Returns:
- the security factory
-
getNextDataKeySet
PrometheusDataKeySet getNextDataKeySet()Obtain the next DataKeySet.- Returns:
- the next dataKeySet
-
getControlKey
Get the ControlKey.- Specified by:
getControlKeyin interfacePrometheusCryptographyData.PrometheusControlKeySetCtl- 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
Description copied from interface:PrometheusCryptographyData.PrometheusControlKeySetCtlGet the KeySet.- Specified by:
getKeySetin interfacePrometheusCryptographyData.PrometheusControlKeySetCtl- 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
Description copied from interface:PrometheusCryptographyData.PrometheusControlKeySetCtlRegister DataKeySet.- Specified by:
registerDataKeySetin interfacePrometheusCryptographyData.PrometheusControlKeySetCtl- Parameters:
pKeySet- the DataKeySet to register
-