Class SetStatusDateEntityListenerContribution
java.lang.Object
ch.tocco.nice2.entityoperation.api.SetStatusDateEntityListenerContribution
example:
set the "confirmed_datetime" field on the "Case" entity as soon as the "relCase_status" changes to "confirmed".
the type of the field is datetime and it will not be overwritten if it's already set.
@Bean
@SetStatusDateContribution
public SetStatusDateEntityListenerContribution donationRelDonationStatusRecallSetStatusDate() {
SetStatusDateEntityListenerContribution bean = new SetStatusDateEntityListenerContribution();
bean.setEntityName("Donation");
bean.setFieldName("recall_date");
bean.setRelationName("relDonation_status");
bean.setUniqueId("recall");
bean.setFieldType("date");
bean.setOverwrite(false);
return bean;
}
Use the identifier to remove contributions form standard modules in customer modules.
Identifiers do not have to be unique, every contribution with the given identifier will be removed!-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setEntityName
(String entityName) void
setFieldName
(String fieldName) void
setFieldType
(String fieldType) void
setIdentifier
(String identifier) void
setOverwrite
(boolean overwrite) void
setRelationName
(String relationName) void
setSecondaryFieldName
(String secondaryFieldName) void
setSecondaryFieldType
(String secondaryFieldType) void
setUniqueId
(String uniqueId)
-
Field Details
-
FIELD_TYPE_DATE
- See Also:
-
FIELD_TYPE_DATETIME
- See Also:
-
VALID_FIELD_TYPES
-
-
Constructor Details
-
SetStatusDateEntityListenerContribution
public SetStatusDateEntityListenerContribution()
-
-
Method Details
-
getEntityName
-
setEntityName
-
getRelationName
-
setRelationName
-
getUniqueId
-
setUniqueId
-
getFieldName
-
setFieldName
-
getIdentifier
-
setIdentifier
-
getFieldType
-
setFieldType
-
isOverwrite
public boolean isOverwrite() -
setOverwrite
public void setOverwrite(boolean overwrite) -
getSecondaryFieldName
-
setSecondaryFieldName
-
getSecondaryFieldType
-
setSecondaryFieldType
-