Package mc.core.model.base
Enum Class LifeCycleFlag
- All Implemented Interfaces:
Serializable,Comparable<LifeCycleFlag>,Constable
Enumeration that is used to differentiate between primary states of an object. Objects get the flag RELEASED on
creation. When an object is deleted asynchronously it gets the flag DELETED until the background job permanently
removes it from the database. entities are often filtered in queries by the LifeCycleFlag.DELETED to hide them in GUI
or skip them in exports.
IMPORTANT: enumeration is mapped by ordinal so do not change declaration order of enumeration constants!
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMarks an object as archived.Marks an object as deleted.Reserved, not usedReserved, not usedMarks an object as "moved" to recycle bin, which is only a marker to hide it for the usual user.Default flag for all inserted entities -
Method Summary
Modifier and TypeMethodDescriptionstatic List<LifeCycleFlag>hidden()booleanisHidden()booleanstatic LifeCycleFlagReturns the enum constant of this class with the specified name.static LifeCycleFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.static List<LifeCycleFlag>visible()Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
EDIT
Reserved, not used -
RELEASED
Default flag for all inserted entities -
IMPORTED
Reserved, not used -
DELETED
Marks an object as deleted. References to such objects might still be returned by outdated/delayed indices but the flag allows to filter them. -
ARCHIVED
Marks an object as archived. Data or partial data may have been deleted or exported from system to a backend storage. The exact definition of this flag depends on objectclass and business logic. hidden for the usual user since 7.6 (see MC-4587) -
RECYCLED
Marks an object as "moved" to recycle bin, which is only a marker to hide it for the usual user. Object is still in place, referenced and keeps all data. If moved back from recycle bin it get's the Flag RELEASED.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isVisible
public boolean isVisible() -
isHidden
public boolean isHidden() -
visible
-