@DisallowConcurrentExecution public class GrouperAttestationJob extends OtherJobBase
OtherJobBase.OtherJobInput, OtherJobBase.OtherJobOutput
Modifier and Type | Field and Description |
---|---|
static String |
ATTESTATION_AUTHORIZED_GROUP_ID
attestationAuthorizedGroupId
|
static String |
ATTESTATION_CALCULATED_DAYS_LEFT |
static String |
ATTESTATION_DATE_CERTIFIED |
static String |
ATTESTATION_DAYS_BEFORE_TO_REMIND |
static String |
ATTESTATION_DAYS_UNTIL_RECERTIFY |
static String |
ATTESTATION_DIRECT_ASSIGNMENT |
static String |
ATTESTATION_EMAIL_ADDRESSES |
static String |
ATTESTATION_EMAIL_GROUP_ID
attestationEmailGroupId
|
static String |
ATTESTATION_HAS_ATTESTATION
attestationHasAttestation
|
static String |
ATTESTATION_LAST_EMAILED_DATE |
static String |
ATTESTATION_MIN_CERTIFIED_DATE |
static String |
ATTESTATION_REPORT_CONFIGURATION_ID
attestationReportId
|
static String |
ATTESTATION_SEND_EMAIL |
static String |
ATTESTATION_STEM_SCOPE |
static String |
ATTESTATION_TYPE
attestationType
|
static String |
ATTESTATION_VALUE_DEF |
static Set<Object> |
TWO_WEEKS_DAYS_LEFT
two weeks days left
|
Constructor and Description |
---|
GrouperAttestationJob() |
Modifier and Type | Method and Description |
---|---|
static String |
attestationStemName() |
protected static Map<String,Set<EmailObject>> |
buildAttestationGroupEmails(AttributeAssign stemAttributeAssign,
Set<AttributeAssign> groupAttributeAssigns)
get map of email addresses to email objects for group attributes
|
static void |
clearCache() |
static AttributeAssign |
findParentFolderAssign(Stem stem) |
static void |
main(String[] args)
run the daemon
|
static void |
removeDirectGroupAttestation(Group group)
remove direct group assignment in favor of stem assignment
|
static void |
removeDirectGroupAttestation(Group group,
boolean changeToIndirect)
remove direct group assignment in favor of stem assignment
|
static AttributeDef |
retrieveAttributeDef() |
static AttributeDefName |
retrieveAttributeDefNameAuthorizedGroupId()
authorized group id
|
static AttributeDefName |
retrieveAttributeDefNameByName(String nameOfAttributeDefName) |
static AttributeDefName |
retrieveAttributeDefNameCalculatedDaysLeft()
calculated days left attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameDateCertified()
date certified attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameDaysBeforeToRemind()
days before remind attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameDaysUntilRecertify()
days until recertify attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameDirectAssignment()
direct assignment attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameEmailAddresses()
email addresses attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameEmailedDate()
last emailed attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameEmailGroupId()
email group id
|
static AttributeDefName |
retrieveAttributeDefNameHasAttestation()
if this object has attestation assigned (either in group or stem)
|
static AttributeDefName |
retrieveAttributeDefNameMinCertifiedDate()
min certified date attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameReportConfigurationId()
report id
|
static AttributeDefName |
retrieveAttributeDefNameSendEmail()
send email attribute def name
|
static AttributeDefName |
retrieveAttributeDefNameStemScope()
attribute def name of which scope when assigned to stem
|
static AttributeDefName |
retrieveAttributeDefNameType()
type of attestation (group or report)
|
static AttributeDefName |
retrieveAttributeDefNameValueDef()
attribute def name assigned to stem or group
|
OtherJobBase.OtherJobOutput |
run(OtherJobBase.OtherJobInput otherJobInput)
implement this method for the logic of the OtherJob
|
static void |
runDaemonStandalone()
run standalone
|
static boolean |
stemAttestationProcess(Stem stem,
AttributeAssign markerAssignment,
boolean isDelete,
String newDateCertified,
boolean useThreadToPropagate)
process attestation for a stem or its ancestor
|
static Map<String,Set<EmailObject>> |
stemAttestationProcessHelper(Stem stem,
AttributeAssign stemAttributeAssign,
String stemNameNewDateCertified,
String newDateCertified)
take a stem attribute assign and process it
|
static void |
updateAttestationMetadataForSingleObject(Group group,
boolean resetCalculatedDaysLeft) |
static int |
updateCalculatedDaysLeft(AttributeAssign attributeAssign,
String attestationDateCertified,
String configuredAttestationDaysUntilRecertify,
boolean resetDateCertified,
boolean[] madeChange) |
static void |
updateCalculatedDaysUntilRecertify(Group group,
AttributeAssign attributeAssign)
update the calculated days until recertify
|
static void |
updateCalculatedDaysUntilRecertify(Stem stem)
update the calculated days until recertify (i.e.
|
static void |
updateObjectAttributesToPatch81(Group group,
AttributeAssign groupAttributeAssign) |
static void |
updateObjectAttributesToPatch81(Group group,
AttributeAssign groupAttributeAssign,
boolean updateLastCertified) |
static void |
updateObjectAttributesToPatch81(Stem stem,
AttributeAssign stemAttributeAssign) |
execute, execute, getOtherJobInput, otherJobLogUpdaterDeregister, otherJobLogUpdaterInit, otherJobLogUpdaterRegister, setOtherJobInput, storeLogInDb
public static final String ATTESTATION_LAST_EMAILED_DATE
public static final String ATTESTATION_MIN_CERTIFIED_DATE
public static final String ATTESTATION_CALCULATED_DAYS_LEFT
public static final String ATTESTATION_SEND_EMAIL
public static final String ATTESTATION_TYPE
public static final String ATTESTATION_REPORT_CONFIGURATION_ID
public static final String ATTESTATION_AUTHORIZED_GROUP_ID
public static final String ATTESTATION_EMAIL_GROUP_ID
public static final String ATTESTATION_HAS_ATTESTATION
public static final String ATTESTATION_DATE_CERTIFIED
public static final String ATTESTATION_DAYS_UNTIL_RECERTIFY
public static final String ATTESTATION_DAYS_BEFORE_TO_REMIND
public static final String ATTESTATION_EMAIL_ADDRESSES
public static final String ATTESTATION_DIRECT_ASSIGNMENT
public static final String ATTESTATION_VALUE_DEF
public static final String ATTESTATION_STEM_SCOPE
public static boolean stemAttestationProcess(Stem stem, AttributeAssign markerAssignment, boolean isDelete, String newDateCertified, boolean useThreadToPropagate)
stem
- markerAssignment
- isDelete
- public static AttributeDefName retrieveAttributeDefNameEmailedDate()
public static AttributeDefName retrieveAttributeDefNameMinCertifiedDate()
public static AttributeDefName retrieveAttributeDefNameCalculatedDaysLeft()
public static AttributeDef retrieveAttributeDef()
public static AttributeDefName retrieveAttributeDefNameSendEmail()
public static AttributeDefName retrieveAttributeDefNameType()
public static AttributeDefName retrieveAttributeDefNameReportConfigurationId()
public static AttributeDefName retrieveAttributeDefNameAuthorizedGroupId()
public static AttributeDefName retrieveAttributeDefNameEmailGroupId()
public static AttributeDefName retrieveAttributeDefNameHasAttestation()
public static AttributeDefName retrieveAttributeDefNameByName(String nameOfAttributeDefName)
nameOfAttributeDefName
- public static AttributeDefName retrieveAttributeDefNameDateCertified()
public static AttributeDefName retrieveAttributeDefNameDaysUntilRecertify()
public static AttributeDefName retrieveAttributeDefNameDaysBeforeToRemind()
public static AttributeDefName retrieveAttributeDefNameEmailAddresses()
public static AttributeDefName retrieveAttributeDefNameDirectAssignment()
public static AttributeDefName retrieveAttributeDefNameValueDef()
public static AttributeDefName retrieveAttributeDefNameStemScope()
public static String attestationStemName()
public static void updateObjectAttributesToPatch81(Group group, AttributeAssign groupAttributeAssign)
groupAttributeAssign
- group
- public static AttributeAssign findParentFolderAssign(Stem stem)
stem
- public static void updateAttestationMetadataForSingleObject(Group group, boolean resetCalculatedDaysLeft)
group
- resetCalculatedDaysLeft
- public static int updateCalculatedDaysLeft(AttributeAssign attributeAssign, String attestationDateCertified, String configuredAttestationDaysUntilRecertify, boolean resetDateCertified, boolean[] madeChange)
attributeAssign
- attestationDateCertified
- configuredAttestationDaysUntilRecertify
- resetDateCertified
- public static void updateObjectAttributesToPatch81(Group group, AttributeAssign groupAttributeAssign, boolean updateLastCertified)
groupAttributeAssign
- group
- updateLastCertified
- public static void updateObjectAttributesToPatch81(Stem stem, AttributeAssign stemAttributeAssign)
stemAttributeAssign
- stem
- public static void updateCalculatedDaysUntilRecertify(Stem stem)
stem
- stem to calculatepublic static void updateCalculatedDaysUntilRecertify(Group group, AttributeAssign attributeAssign)
group
- group to calculateattributeAssign
- that has the settings, stem or groupprotected static Map<String,Set<EmailObject>> buildAttestationGroupEmails(AttributeAssign stemAttributeAssign, Set<AttributeAssign> groupAttributeAssigns)
stemAttributeAssign
- groupAttributeAssigns
- public static void main(String[] args)
args
- public static void runDaemonStandalone()
public OtherJobBase.OtherJobOutput run(OtherJobBase.OtherJobInput otherJobInput)
OtherJobBase
run
in class OtherJobBase
OtherJobBase.run(edu.internet2.middleware.grouper.app.loader.OtherJobBase.OtherJobInput)
public static Map<String,Set<EmailObject>> stemAttestationProcessHelper(Stem stem, AttributeAssign stemAttributeAssign, String stemNameNewDateCertified, String newDateCertified)
stem
- is the stem the attribute is onstemAttributeAssign
- public static void removeDirectGroupAttestation(Group group)
group
- public static void removeDirectGroupAttestation(Group group, boolean changeToIndirect)
group
- changeToIndirect
- means keep the indirect attributespublic static void clearCache()
Copyright © 2016 Internet2. All rights reserved.