Class MarkProvider
java.lang.Object
ch.tocco.nice2.marking.impl.customdata.MarkProvider
- All Implemented Interfaces:
CustomDataProvider
Is entity marked or not
-
Constructor Summary
ConstructorDescriptionMarkProvider
(TypeManager typeManager, EntityMarkService entityMarkService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionreturn true if entity is marked, false if unmarked
-
Constructor Details
-
MarkProvider
public MarkProvider(TypeManager typeManager, EntityMarkService entityMarkService, SecurityManager securityManager)
-
-
Method Details
-
getData
public CustomDataValue<Boolean> getData(@Nullable @Nullable Entity entity) throws CustomDataProviderException return true if entity is marked, false if unmarked- Specified by:
getData
in interfaceCustomDataProvider
- Parameters:
entity
- the entity to mark- Returns:
- a
TypedValue
containing the custom data for this field. - Throws:
CustomDataProviderException
- in case of error.
-