public class AttestationStemSave extends Object
Use this class to add/edit/delete attestation on folders.
Sample call
AttestationStemSave attestationStemSave = new AttestationStemSave(); AttributeAssign attributeAssign = attestationStemSave .assignStem(stem) .addEmailAddress("test@example.com") .assignAttestationType(AttestationType.report) .assignDaysBeforeToRemind(5) .assignDaysUntilRecertify(10) .assignSendEmail(true) .save(); System.out.println(attestationStemSave.getSaveResultType()); // DELETE, INSERT, NO_CHANGE, or UPDATE
Sample call to remove attestation from a folder
new AttestationStemSave() .assignStem(stem) .assignSaveMode(SaveMode.DELETE) .save();
Sample call to update only one attribute
new AttestationStemSave() .assignStem(stem) .assignReplaceAllSettings(false) .assignSendEmail(true); .save();
Constructor and Description |
---|
AttestationStemSave() |
Modifier and Type | Method and Description |
---|---|
AttestationStemSave |
addEmailAddress(String theEmailAddress)
add email address
|
AttestationStemSave |
addEmailAddress(Subject subject)
add email address of the given subject
|
AttestationStemSave |
addEmailAddresses(Group group)
add email addresses from members of the given group
|
AttestationStemSave |
assignAttestationType(AttestationType theAttestationType)
add attestation type
|
AttestationStemSave |
assignDaysBeforeToRemind(int theDaysBeforeToRemind)
days before attestation to remind
|
AttestationStemSave |
assignDaysUntilRecertify(int theDaysUntilRecertify)
days until recertify
|
AttestationStemSave |
assignEmailAddresses(Set<String> theEmailAddresses)
assign email addresses
|
AttestationStemSave |
assignEmailAddresses(String theEmailAddresses)
assign email addresses (separated by semicolon)
|
AttestationStemSave |
assignEmailGroup(Group theGroup)
assign group to email for group attestation
|
AttestationStemSave |
assignEmailGroupId(String theGroupId)
assign group to email for group attestation
|
AttestationStemSave |
assignEmailGroupName(String theGroupName)
assign group to email for group attestation
|
AttestationStemSave |
assignGroupCanAttest(Group theGroup)
assign a group
|
AttestationStemSave |
assignGroupIdCanAttest(String theGroupId)
group id to add to, mutually exclusive with group name and group
|
AttestationStemSave |
assignGroupNameCanAttest(String theGroupName)
group name to add to, mutually exclusive with group id and group
|
AttestationStemSave |
assignMarkAsAttested(boolean theMarkAsAttested)
mark stem as attested
|
AttestationStemSave |
assignReplaceAllSettings(boolean theReplaceAllSettings)
replace all existing settings.
|
AttestationStemSave |
assignReportConfigName(String reportConfigName)
assign report config name
|
AttestationStemSave |
assignReportMarkerAttributeAssignId(String reportMarkerAttributeAssignId)
assign report attribute assign id
|
AttestationStemSave |
assignRunAsRoot(boolean runAsRoot)
set this to true to run as a root session
|
AttestationStemSave |
assignSaveMode(SaveMode theSaveMode)
assign save mode
|
AttestationStemSave |
assignSendEmail(boolean theSendEmail)
assign send email
|
AttestationStemSave |
assignStem(Stem theStem)
assign a stem
|
AttestationStemSave |
assignStemId(String theStemId)
stem id to add to, mutually exclusive with stem name and stem
|
AttestationStemSave |
assignStemName(String theStemName)
stem name to add to, mutually exclusive with stem id and stem
|
AttestationStemSave |
assignStemScope(Stem.Scope theStemScope)
assign stem scope for propagation, Stem.Scope.ONE or Stem.Scope.SUB
|
AttestationStemSave |
assignStemScope(String theStemScope)
assign stem scope for propagation, ONE or SUB
|
AttestationStemSave |
assignUseThreadForPropagation(boolean theUseThreadForPropagation)
Deprecated.
this is not used
|
SaveResultType |
getSaveResultType()
get the save result type after save call
|
boolean |
isFinished()
if this is finished
|
static void |
main(String[] args) |
AttributeAssign |
save()
create or update or delete attestation attributes on a stem
|
public static void main(String[] args)
args
- public AttestationStemSave assignReportMarkerAttributeAssignId(String reportMarkerAttributeAssignId)
theGroup
- public AttestationStemSave assignReportConfigName(String reportConfigName)
theGroup
- public AttestationStemSave assignGroupCanAttest(Group theGroup)
theGroup
- public AttestationStemSave assignGroupIdCanAttest(String theGroupId)
theGroupId
- public AttestationStemSave assignGroupNameCanAttest(String theGroupName)
theGroupName
- public AttestationStemSave assignDaysBeforeToRemind(int theDaysBeforeToRemind)
public AttestationStemSave assignDaysUntilRecertify(int theDaysUntilRecertify)
public AttestationStemSave assignEmailAddresses(String theEmailAddresses)
public AttestationStemSave addEmailAddress(String theEmailAddress)
public AttestationStemSave addEmailAddress(Subject subject)
public AttestationStemSave addEmailAddresses(Group group)
public AttestationStemSave assignEmailAddresses(Set<String> theEmailAddresses)
public AttestationStemSave assignEmailGroupId(String theGroupId)
public AttestationStemSave assignEmailGroupName(String theGroupName)
public AttestationStemSave assignEmailGroup(Group theGroup)
public AttestationStemSave assignStemScope(String theStemScope)
public AttestationStemSave assignStemScope(Stem.Scope theStemScope)
@Deprecated public AttestationStemSave assignUseThreadForPropagation(boolean theUseThreadForPropagation)
theUseThreadForPropagation
- public AttestationStemSave assignReplaceAllSettings(boolean theReplaceAllSettings)
public AttestationStemSave assignMarkAsAttested(boolean theMarkAsAttested)
public AttestationStemSave assignAttestationType(AttestationType theAttestationType)
public AttestationStemSave assignSendEmail(boolean theSendEmail)
theSendEmail
- public AttestationStemSave assignStem(Stem theStem)
theStem
- public AttestationStemSave assignStemId(String theStemId)
theStemId
- public AttestationStemSave assignStemName(String theStemName)
theStemName
- public AttestationStemSave assignSaveMode(SaveMode theSaveMode)
theSaveMode
- public SaveResultType getSaveResultType()
public AttestationStemSave assignRunAsRoot(boolean runAsRoot)
runAsRoot
- public AttributeAssign save() throws InsufficientPrivilegeException, GroupNotFoundException
create or update or delete attestation attributes on a stem
InsufficientPrivilegeException
GroupNotFoundException
public boolean isFinished()
Copyright © 2016 Internet2. All rights reserved.