## ## Velocity Template for DisplayAttributeReleasePage view-state ## ## Velocity context will contain the following properties : ## ## attributeReleaseContext - context holding consentable attributes ## attributeReleaseFlowDescriptor - attribute consent flow descriptor ## attributeDisplayNameFunction - function to display attribute name ## attributeDisplayDescriptionFunction - function to display attribute description ## consentContext - context representing the state of a consent flow ## encoder - HTMLEncoder class ## flowExecutionKey - SWF execution key (this is built into the flowExecutionUrl) ## flowExecutionUrl - form action location ## flowRequestContext - Spring Web Flow RequestContext ## profileRequestContext - OpenSAML profile request context ## request - HttpServletRequest ## response - HttpServletResponse ## rpUIContext - context with SP UI information from the metadata ## environment - Spring Environment object for property resolution #set ($serviceName = $rpUIContext.serviceName) #set ($serviceDescription = $rpUIContext.serviceDescription) #set ($informationURL = $rpUIContext.informationURL) #set ($privacyStatementURL = $rpUIContext.privacyStatementURL) #set ($rpOrganizationLogo = $rpUIContext.getLogo()) #set ($rpOrganizationName = $rpUIContext.organizationDisplayName) #set ($replaceDollarWithNewline = true) #set ($releasetype = $attributeReleaseContext.getSubcontext('de.zedat.fudis.consent.audit.impl.FudisHiddenAttributeContext').getHiddenAttributes().get('dfnEduPersonAttributeReleaseType').values[0].getDisplayValue()) ## #springMessageText("idp.attribute-release.title", "Information Release")
#parse("csrf/csrf.vm")
#if ($rpOrganizationLogo) #end

#if ($serviceName)

#springMessageText("idp.attribute-release.serviceNameLabel", "You are about to access the service:")
$serviceName #if ($rpOrganizationName) #springMessageText("idp.attribute-release.of", "of") $encoder.encodeForHTML($rpOrganizationName) #end

#end #if ($serviceDescription)

#springMessageText("idp.attribute-release.serviceDescriptionLabel", "Description as provided by this service:")
$encoder.encodeForHTML($serviceDescription)

#end #if ($informationURL)

#springMessageText("idp.attribute-release.informationURLLabel", "Additional information about the service")

#end
#foreach ($attribute in $attributeReleaseContext.getConsentableAttributes().values()) #if ($attribute.id != "dfnEduPersonAttributeReleaseType") #end #end
#springMessageText("idp.attribute-release.attributesHeader", "Information to be Provided to Service")
$encoder.encodeForHTML($attributeDisplayNameFunction.apply($attribute)) #foreach ($value in $attribute.values) #if ($replaceDollarWithNewline) #set ($encodedValue = $encoder.encodeForHTML($value.getDisplayValue()).replaceAll($encoder.encodeForHTML('$'),"
")) #else #set ($encodedValue = $encoder.encodeForHTML($value.getDisplayValue())) #end #if ($attributeReleaseFlowDescriptor.perAttributeConsentEnabled) #else $encodedValue #end
#end
#if ($attributeReleaseFlowDescriptor.perAttributeConsentEnabled) #set ($inputType = "checkbox") #else #set ($inputType = "hidden") #end
#springMessageText("idp.attribute-release.name_ids", "Furthermore, a transient or persistent Id will be released")
#if ($privacyStatementURL)

#springMessageText("idp.attribute-release.privacyStatementURLLabel", "Data privacy information of the service")

#end
#if ($releasetype == "consent")
#springMessageText("idp.attribute-release.consentMethod", "Select an information release consent duration:") #if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed)

#end #if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed || $attributeReleaseFlowDescriptor.globalConsentAllowed)

#end #if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed) #springMessageText("idp.attribute-release.consentMethodRevoke", "This setting can be revoked at any time with the checkbox on the login page.")
#end

  #springMessageText("idp.attribute-release.print_page", "Print Page")  

#end #if ($releasetype == "info")

#springMessageText("idp.attribute-info.information", "Honestly, you have no choice...")

#end #if ($releasetype == "must")

#springMessageText("idp.attribute-must.information", "Honestly, you have no choice...")

#end