[MGNLPN-20] Create date trait so authors can create campaign pages that are only shown during a specific time frame Created: 07/Mar/14  Updated: 14/Mar/14  Resolved: 12/Mar/14

Status: Closed
Project: Magnolia Personalization
Component/s: Samples
Affects Version/s: None
Fix Version/s: 1.0

Type: Task Priority: Neutral
Reporter: Philip Mundt Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLPN-22 Create validator for the date trait f... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: Personalisation
Sprint: 5.3 Sprint 3, 5.3 Sprint 4

 Description   

We will currently only use the system time (instead of client time).
This tasks comprises of:

  • Creating a filter that stores the System time in the TraitCollector
    • For now we'll use Date.class as key (event though using two dates will not be possible then, i.e. if one is interested in system & client time)
  • A DateVoter with three properties
    • Date date
    • int duration
    • Enum durationType (hours, days, months)
  • "Complex" Field with Datepicker + Select for DurationType + Numbered input for duration
    • Validator?
    • Transformer
  • Package info.magnolia.p13n.date.system
  • See JodaTime (http://www.joda.org/) for simplified date calculations


 Comments   
Comment by Philip Mundt [ 11/Mar/14 ]
  • info.magnolia.p13n.trait.AbstractTraitTransformer
    • Doesn't need the generic type V anymore
    • Also remove from javadoc
  • info.magnolia.ui.form.field.definition.CompositeFieldDefinition
    • Make durationType a info.magnolia.ui.form.field.definition.SelectFieldDefinition field
    • duration should be of type Long in definition
  • Add basic javadoc to info.magnolia.p13n.trait.BaseTraitMultiFieldTransformerTest + inner class
    • Also rename from BaseTraitMultiFieldTransformerTest to BaseTraitMultifieldTransformerTest (or rename the underlying class)
Generated at Mon Feb 12 06:33:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.