Class GrouperAttestationJob
java.lang.Object
edu.internet2.middleware.grouper.app.loader.OtherJobBase
edu.internet2.middleware.grouper.app.attestation.GrouperAttestationJob
- All Implemented Interfaces:
org.quartz.Job
attestation daemon
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouper.app.loader.OtherJobBase
OtherJobBase.OtherJobInput, OtherJobBase.OtherJobOutput
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
attestationAuthorizedGroupIdstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
attestationEmailGroupIdstatic final String
attestationHasAttestationstatic final String
static final String
static final String
attestationReportIdstatic final String
static final String
static final String
attestationTypestatic final String
two weeks days left -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
protected static Map<String,
Set<EmailObject>> buildAttestationGroupEmails
(AttributeAssign stemAttributeAssign, Set<AttributeAssign> groupAttributeAssigns) get map of email addresses to email objects for group attributesstatic void
static AttributeAssign
findParentFolderAssign
(Stem stem) static void
run the daemonstatic void
remove direct group assignment in favor of stem assignmentstatic void
removeDirectGroupAttestation
(Group group, boolean changeToIndirect) remove direct group assignment in favor of stem assignmentstatic AttributeDef
static AttributeDefName
authorized group idstatic AttributeDefName
retrieveAttributeDefNameByName
(String nameOfAttributeDefName) static AttributeDefName
calculated days left attribute def namestatic AttributeDefName
date certified attribute def namestatic AttributeDefName
days before remind attribute def namestatic AttributeDefName
days until recertify attribute def namestatic AttributeDefName
direct assignment attribute def namestatic AttributeDefName
email addresses attribute def namestatic AttributeDefName
last emailed attribute def namestatic AttributeDefName
email group idstatic AttributeDefName
if this object has attestation assigned (either in group or stem)static AttributeDefName
min certified date attribute def namestatic AttributeDefName
report idstatic AttributeDefName
send email attribute def namestatic AttributeDefName
attribute def name of which scope when assigned to stemstatic AttributeDefName
type of attestation (group or report)static AttributeDefName
attribute def name assigned to stem or grouprun
(OtherJobBase.OtherJobInput otherJobInput) implement this method for the logic of the OtherJobstatic void
run standalonestatic boolean
stemAttestationProcess
(Stem stem, AttributeAssign markerAssignment, boolean isDelete, String newDateCertified, boolean useThreadToPropagate) process attestation for a stem or its ancestorstatic Map<String,
Set<EmailObject>> stemAttestationProcessHelper
(Stem stem, AttributeAssign stemAttributeAssign, String stemNameNewDateCertified, String newDateCertified) take a stem attribute assign and process itstatic 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 recertifystatic void
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) Methods inherited from class edu.internet2.middleware.grouper.app.loader.OtherJobBase
execute, execute, getOtherJobInput, otherJobLogUpdaterDeregister, otherJobLogUpdaterInit, otherJobLogUpdaterRegister, setOtherJobInput, storeLogInDb
-
Field Details
-
TWO_WEEKS_DAYS_LEFT
two weeks days left -
ATTESTATION_LAST_EMAILED_DATE
- See Also:
-
ATTESTATION_MIN_CERTIFIED_DATE
- See Also:
-
ATTESTATION_CALCULATED_DAYS_LEFT
- See Also:
-
ATTESTATION_SEND_EMAIL
- See Also:
-
ATTESTATION_TYPE
attestationType- See Also:
-
ATTESTATION_REPORT_CONFIGURATION_ID
attestationReportId- See Also:
-
ATTESTATION_AUTHORIZED_GROUP_ID
attestationAuthorizedGroupId- See Also:
-
ATTESTATION_EMAIL_GROUP_ID
attestationEmailGroupId- See Also:
-
ATTESTATION_HAS_ATTESTATION
attestationHasAttestation- See Also:
-
ATTESTATION_DATE_CERTIFIED
- See Also:
-
ATTESTATION_DAYS_UNTIL_RECERTIFY
- See Also:
-
ATTESTATION_DAYS_BEFORE_TO_REMIND
- See Also:
-
ATTESTATION_EMAIL_ADDRESSES
- See Also:
-
ATTESTATION_DIRECT_ASSIGNMENT
- See Also:
-
ATTESTATION_VALUE_DEF
- See Also:
-
ATTESTATION_STEM_SCOPE
- See Also:
-
-
Constructor Details
-
GrouperAttestationJob
public GrouperAttestationJob()
-
-
Method Details
-
stemAttestationProcess
public static boolean stemAttestationProcess(Stem stem, AttributeAssign markerAssignment, boolean isDelete, String newDateCertified, boolean useThreadToPropagate) process attestation for a stem or its ancestor- Parameters:
stem
-markerAssignment
-isDelete
-- Returns:
- true if finished, false if thread still running
-
retrieveAttributeDefNameEmailedDate
last emailed attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDefNameMinCertifiedDate
min certified date attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDefNameCalculatedDaysLeft
calculated days left attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDef
- Returns:
- the def
-
retrieveAttributeDefNameSendEmail
send email attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDefNameType
type of attestation (group or report)- Returns:
- the attribute def name
-
retrieveAttributeDefNameReportConfigurationId
report id- Returns:
- the attribute def name
-
retrieveAttributeDefNameAuthorizedGroupId
authorized group id- Returns:
- the attribute def name
-
retrieveAttributeDefNameEmailGroupId
email group id- Returns:
- the attribute def name
-
retrieveAttributeDefNameHasAttestation
if this object has attestation assigned (either in group or stem)- Returns:
- the attribute def name
-
retrieveAttributeDefNameByName
- Parameters:
nameOfAttributeDefName
-- Returns:
- the attribute def name
-
retrieveAttributeDefNameDateCertified
date certified attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDefNameDaysUntilRecertify
days until recertify attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDefNameDaysBeforeToRemind
days before remind attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDefNameEmailAddresses
email addresses attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDefNameDirectAssignment
direct assignment attribute def name- Returns:
- the attribute def name
-
retrieveAttributeDefNameValueDef
attribute def name assigned to stem or group- Returns:
- the attribute def name
-
retrieveAttributeDefNameStemScope
attribute def name of which scope when assigned to stem- Returns:
- the attribute def name
-
attestationStemName
- Returns:
- the stem name
-
updateObjectAttributesToPatch81
public static void updateObjectAttributesToPatch81(Group group, AttributeAssign groupAttributeAssign) - Parameters:
groupAttributeAssign
-group
-
-
findParentFolderAssign
- Parameters:
stem
-- Returns:
- attribute assign
-
updateAttestationMetadataForSingleObject
public static void updateAttestationMetadataForSingleObject(Group group, boolean resetCalculatedDaysLeft) - Parameters:
group
-resetCalculatedDaysLeft
-
-
updateCalculatedDaysLeft
public static int updateCalculatedDaysLeft(AttributeAssign attributeAssign, String attestationDateCertified, String configuredAttestationDaysUntilRecertify, boolean resetDateCertified, boolean[] madeChange) - Parameters:
attributeAssign
-attestationDateCertified
-configuredAttestationDaysUntilRecertify
-resetDateCertified
-- Returns:
- days needed until recertify
-
updateObjectAttributesToPatch81
public static void updateObjectAttributesToPatch81(Group group, AttributeAssign groupAttributeAssign, boolean updateLastCertified) - Parameters:
groupAttributeAssign
-group
-updateLastCertified
-
-
updateObjectAttributesToPatch81
- Parameters:
stemAttributeAssign
-stem
-
-
updateCalculatedDaysUntilRecertify
update the calculated days until recertify (i.e. if the stem has a report based attestation)- Parameters:
stem
- stem to calculate
-
updateCalculatedDaysUntilRecertify
update the calculated days until recertify- Parameters:
group
- group to calculateattributeAssign
- that has the settings, stem or group
-
buildAttestationGroupEmails
protected static Map<String,Set<EmailObject>> buildAttestationGroupEmails(AttributeAssign stemAttributeAssign, Set<AttributeAssign> groupAttributeAssigns) get map of email addresses to email objects for group attributes- Parameters:
stemAttributeAssign
-groupAttributeAssigns
-- Returns:
- the map of email objects
-
main
run the daemon- Parameters:
args
-
-
runDaemonStandalone
public static void runDaemonStandalone()run standalone -
run
Description copied from class:OtherJobBase
implement this method for the logic of the OtherJob- Specified by:
run
in classOtherJobBase
- Returns:
- the output
- See Also:
-
stemAttestationProcessHelper
public static Map<String,Set<EmailObject>> stemAttestationProcessHelper(Stem stem, AttributeAssign stemAttributeAssign, String stemNameNewDateCertified, String newDateCertified) take a stem attribute assign and process it- Parameters:
stem
- is the stem the attribute is onstemAttributeAssign
-- Returns:
- the email objects
-
removeDirectGroupAttestation
remove direct group assignment in favor of stem assignment- Parameters:
group
-
-
removeDirectGroupAttestation
remove direct group assignment in favor of stem assignment- Parameters:
group
-changeToIndirect
- means keep the indirect attributes
-
clearCache
public static void clearCache()
-