Domain/Presentation provenance API's

From MWCSWiki

Jump to: navigation, search

Methods to add to the Relatable class:

  • List<Field> getUnaddressedFields(User u)
    • This method is handled first in presentation, so that the User is presented with the Fields in question first...this will encourage a more timely response.
  • List<Field> getAddressedFields(User u)
    • This method is handled second in presentation, so that the User is presented with the some of the Fields in question... an expand symbol will be present next to the list of possible options so that the user may be able to see the full list of possible FieldValues
  • List<Relationship> getUnaddressedRelationships()
    • This method is handled First, the user will need to weigh in via y/n radiobuttons, unaddressed relationships will be hidden until a soft indicator is clicked
  • List<Relationship> getDisagreedRelationships(User u)
    • Disagreed Relationships are hidden from the User unless they goto the edit page
  • List<Relationship> getAgreedRelationships(User u)
    • Agreed Relationships are shown to the User unless they goto the edit page to Disagree them.


Field Objects Need:

  • A List of FieldValues that different Users have asserted
  • List<FieldValue> getAssertedFieldValues(User u)
  • List<FieldValue> getRejectedFieldValues(User u)
  • List<FieldValue> getUnaddressedFieldValues(User u)

FieldValue Objects Need:

  • A List of Users that have asserted the given FieldValue
  • A List of Users that have rejected/disagreed with the given FieldValue



Relationship Objects Need:

  • A List of Users that have asserted the given Relationship
  • A List of Users that have rejected/disagreed with the given Relationship
  • ??? Boolean agree(User u)
  • ??? Boolean disagree(User u)

or

  • ??? int contribution(User u)
    • returns 1 for agree, 0 for unpolled, -1 for disagree
Personal tools