Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
spaceKeyGrouper
pageTitleNavigation

Use this class to add/edit/delete attestation on groups.

Sample call

 AttestationGroupSave attestationGroupSave = new AttestationGroupSave();
 AttributeAssign attributeAssign = attestationGroupSave
   .assignGroup(group)
   .addEmailAddress("test@example.com")
   .assignAttestationType(AttestationType.report)
   .assignDaysBeforeToRemind(5)
   .assignDaysUntilRecertify(10)
   .assignSendEmail(true)
   .save();
 System.out.println(attestationGroupSave.getSaveResultType()); // DELETE, INSERT, NO_CHANGE, or UPDATE
 


Sample call to remove attestation from a group

 new AttestationGroupSave()
  .assignGroup(group)
  .assignSaveMode(SaveMode.DELETE)
  .save();
 


Sample call to update only one attribute

 new AttestationGroupSave()
  .assignGroup(group)
  .assignReplaceAllSettings(false)
  .assignSendEmail(true);
  .save();

...