// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.07.20 at 12:19:30 PM CEST // package at.gv.egovernment.moa.id.commons.db.dao.config.deprecated; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.persistence.Transient; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlTransient; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; import org.jvnet.jaxb2_commons.lang.Equals; import org.jvnet.jaxb2_commons.lang.EqualsStrategy; import org.jvnet.jaxb2_commons.lang.HashCode; import org.jvnet.jaxb2_commons.lang.HashCodeStrategy; import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy; import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy; import org.jvnet.jaxb2_commons.locator.ObjectLocator; import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="AuthComponent_General" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <extension base="{http://www.buergerkarte.at/namespaces/moaconfig#}AuthComponentType">
 *               </extension>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="OnlineApplication" type="{http://www.buergerkarte.at/namespaces/moaconfig#}OnlineApplication" maxOccurs="unbounded"/>
 *         <element name="ChainingModes" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence maxOccurs="unbounded" minOccurs="0">
 *                   <element name="TrustAnchor">
 *                     <complexType>
 *                       <complexContent>
 *                         <extension base="{http://www.buergerkarte.at/namespaces/moaconfig#}X509IssuerSerialType">
 *                           <attribute name="mode" use="required" type="{http://www.buergerkarte.at/namespaces/moaconfig#}ChainingModeType" />
 *                         </extension>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *                 <attribute name="systemDefaultMode" type="{http://www.buergerkarte.at/namespaces/moaconfig#}ChainingModeType" default="pkix" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="TrustedCACertificates" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 *         <element name="GenericConfiguration" maxOccurs="unbounded" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="name" use="required">
 *                   <simpleType>
 *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *                       <enumeration value="DirectoryCertStoreParameters.RootDir"/>
 *                       <enumeration value="AuthenticationSession.TimeOut"/>
 *                       <enumeration value="AuthenticationData.TimeOut"/>
 *                       <enumeration value="TrustManager.RevocationChecking"/>
 *                       <enumeration value="FrontendServlets.EnableHTTPConnection"/>
 *                       <enumeration value="FrontendServlets.DataURLPrefix"/>
 *                       <enumeration value="AuthenticationServer.KeepAssertion"/>
 *                       <enumeration value="AuthenticationServer.WriteAssertionToFile"/>
 *                       <enumeration value="AuthenticationServer.SourceID"/>
 *                     </restriction>
 *                   </simpleType>
 *                 </attribute>
 *                 <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="DefaultBKUs">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="OnlineBKU" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 *                   <element name="HandyBKU" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *                   <element name="LocalBKU" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="SLRequestTemplates">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="OnlineBKU" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *                   <element name="HandyBKU" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *                   <element name="LocalBKU" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *       <attribute name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *       <attribute name="pvp2refresh" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "authComponentGeneral", "onlineApplication", "chainingModes", "trustedCACertificates", "genericConfiguration", "defaultBKUs", "slRequestTemplates" }) @XmlRootElement(name = "MOA-IDConfiguration") public class MOAIDConfiguration implements Serializable, Equals, HashCode { @XmlElement(name = "AuthComponent_General") protected AuthComponentGeneral authComponentGeneral; @XmlElement(name = "OnlineApplication", required = true) protected List onlineApplication; @XmlElement(name = "ChainingModes") protected ChainingModes chainingModes; @XmlElement(name = "TrustedCACertificates") @XmlSchemaType(name = "anyURI") protected String trustedCACertificates; @XmlElement(name = "GenericConfiguration") protected List genericConfiguration; @XmlElement(name = "DefaultBKUs", required = true) protected DefaultBKUs defaultBKUs; @XmlElement(name = "SLRequestTemplates", required = true) protected SLRequestTemplates slRequestTemplates; @XmlAttribute(name = "timestamp") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar timestamp; @XmlAttribute(name = "pvp2refresh") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar pvp2Refresh; @XmlAttribute(name = "Hjid") protected Long hjid; @XmlTransient protected String eventCodes = null; @XmlTransient protected String elgaMandateServiceURLs = null; /** * @return the eventCodes */ public String getEventCodes() { return eventCodes; } /** * @param eventCodes the eventCodes to set */ public void setEventCodes(String eventCodes) { this.eventCodes = eventCodes; } /** * Gets the value of the authComponentGeneral property. * * @return * possible object is * {@link AuthComponentGeneral } * */ @ManyToOne(targetEntity = AuthComponentGeneral.class, cascade = { CascadeType.ALL }) public AuthComponentGeneral getAuthComponentGeneral() { return authComponentGeneral; } /** * Sets the value of the authComponentGeneral property. * * @param value * allowed object is * {@link AuthComponentGeneral } * */ public void setAuthComponentGeneral(AuthComponentGeneral value) { this.authComponentGeneral = value; } /** * Gets the value of the onlineApplication property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the onlineApplication property. * *

* For example, to add a new item, do as follows: *

     *    getOnlineApplication().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link OnlineApplication } * * */ @OneToMany(targetEntity = OnlineApplication.class, cascade = { CascadeType.ALL }) public List getOnlineApplication() { if (onlineApplication == null) { onlineApplication = new ArrayList(); } return this.onlineApplication; } /** * * */ public void setOnlineApplication(List onlineApplication) { this.onlineApplication = onlineApplication; } /** * Gets the value of the chainingModes property. * * @return * possible object is * {@link ChainingModes } * */ @ManyToOne(targetEntity = ChainingModes.class, cascade = { CascadeType.ALL }) public ChainingModes getChainingModes() { return chainingModes; } /** * Sets the value of the chainingModes property. * * @param value * allowed object is * {@link ChainingModes } * */ public void setChainingModes(ChainingModes value) { this.chainingModes = value; } /** * Gets the value of the trustedCACertificates property. * * @return * possible object is * {@link String } * */ public String getTrustedCACertificates() { return trustedCACertificates; } /** * Sets the value of the trustedCACertificates property. * * @param value * allowed object is * {@link String } * */ public void setTrustedCACertificates(String value) { this.trustedCACertificates = value; } /** * Gets the value of the genericConfiguration property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the genericConfiguration property. * *

* For example, to add a new item, do as follows: *

     *    getGenericConfiguration().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link GenericConfiguration } * * */ @OneToMany(targetEntity = GenericConfiguration.class, cascade = { CascadeType.ALL }) public List getGenericConfiguration() { if (genericConfiguration == null) { genericConfiguration = new ArrayList(); } return this.genericConfiguration; } /** * * */ public void setGenericConfiguration(List genericConfiguration) { this.genericConfiguration = genericConfiguration; } /** * Gets the value of the defaultBKUs property. * * @return * possible object is * {@link DefaultBKUs } * */ @ManyToOne(targetEntity = DefaultBKUs.class, cascade = { CascadeType.ALL }) public DefaultBKUs getDefaultBKUs() { return defaultBKUs; } /** * Sets the value of the defaultBKUs property. * * @param value * allowed object is * {@link DefaultBKUs } * */ public void setDefaultBKUs(DefaultBKUs value) { this.defaultBKUs = value; } /** * Gets the value of the slRequestTemplates property. * * @return * possible object is * {@link SLRequestTemplates } * */ @ManyToOne(targetEntity = SLRequestTemplates.class, cascade = { CascadeType.ALL }) public SLRequestTemplates getSLRequestTemplates() { return slRequestTemplates; } /** * Sets the value of the slRequestTemplates property. * * @param value * allowed object is * {@link SLRequestTemplates } * */ public void setSLRequestTemplates(SLRequestTemplates value) { this.slRequestTemplates = value; } /** * Gets the value of the timestamp property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ @Transient public XMLGregorianCalendar getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setTimestamp(XMLGregorianCalendar value) { this.timestamp = value; } /** * Gets the value of the pvp2Refresh property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ @Transient public XMLGregorianCalendar getPvp2Refresh() { return pvp2Refresh; } /** * Sets the value of the pvp2Refresh property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setPvp2Refresh(XMLGregorianCalendar value) { this.pvp2Refresh = value; } /** * Gets the value of the hjid property. * * @return * possible object is * {@link Long } * */ public Long getHjid() { return hjid; } /** * @return the elgaMandateServiceURLs */ public String getElgaMandateServiceURLs() { return elgaMandateServiceURLs; } /** * @param elgaMandateServiceURLs the elgaMandateServiceURLs to set */ public void setElgaMandateServiceURLs(String elgaMandateServiceURLs) { this.elgaMandateServiceURLs = elgaMandateServiceURLs; } /** * Sets the value of the hjid property. * * @param value * allowed object is * {@link Long } * */ public void setHjid(Long value) { this.hjid = value; } @Temporal(TemporalType.TIMESTAMP) public Date getTimestampItem() { //return XmlAdapterUtils.unmarshall(XMLGregorianCalendarAsDateTime.class, this.getTimestamp()); return new Date(); } public void setTimestampItem(Date target) { //setTimestamp(XmlAdapterUtils.marshall(XMLGregorianCalendarAsDateTime.class, target)); } @Temporal(TemporalType.TIMESTAMP) public Date getPvp2RefreshItem() { //return XmlAdapterUtils.unmarshall(XMLGregorianCalendarAsDateTime.class, this.getPvp2Refresh()); return new Date(); } public void setPvp2RefreshItem(Date target) { //setPvp2Refresh(XmlAdapterUtils.marshall(XMLGregorianCalendarAsDateTime.class, target)); } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof MOAIDConfiguration)) { return false; } if (this == object) { return true; } final MOAIDConfiguration that = ((MOAIDConfiguration) object); { AuthComponentGeneral lhsAuthComponentGeneral; lhsAuthComponentGeneral = this.getAuthComponentGeneral(); AuthComponentGeneral rhsAuthComponentGeneral; rhsAuthComponentGeneral = that.getAuthComponentGeneral(); if (!strategy.equals(LocatorUtils.property(thisLocator, "authComponentGeneral", lhsAuthComponentGeneral), LocatorUtils.property(thatLocator, "authComponentGeneral", rhsAuthComponentGeneral), lhsAuthComponentGeneral, rhsAuthComponentGeneral)) { return false; } } { List lhsOnlineApplication; lhsOnlineApplication = (((this.onlineApplication!= null)&&(!this.onlineApplication.isEmpty()))?this.getOnlineApplication():null); List rhsOnlineApplication; rhsOnlineApplication = (((that.onlineApplication!= null)&&(!that.onlineApplication.isEmpty()))?that.getOnlineApplication():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "onlineApplication", lhsOnlineApplication), LocatorUtils.property(thatLocator, "onlineApplication", rhsOnlineApplication), lhsOnlineApplication, rhsOnlineApplication)) { return false; } } { ChainingModes lhsChainingModes; lhsChainingModes = this.getChainingModes(); ChainingModes rhsChainingModes; rhsChainingModes = that.getChainingModes(); if (!strategy.equals(LocatorUtils.property(thisLocator, "chainingModes", lhsChainingModes), LocatorUtils.property(thatLocator, "chainingModes", rhsChainingModes), lhsChainingModes, rhsChainingModes)) { return false; } } { String lhsTrustedCACertificates; lhsTrustedCACertificates = this.getTrustedCACertificates(); String rhsTrustedCACertificates; rhsTrustedCACertificates = that.getTrustedCACertificates(); if (!strategy.equals(LocatorUtils.property(thisLocator, "trustedCACertificates", lhsTrustedCACertificates), LocatorUtils.property(thatLocator, "trustedCACertificates", rhsTrustedCACertificates), lhsTrustedCACertificates, rhsTrustedCACertificates)) { return false; } } { List lhsGenericConfiguration; lhsGenericConfiguration = (((this.genericConfiguration!= null)&&(!this.genericConfiguration.isEmpty()))?this.getGenericConfiguration():null); List rhsGenericConfiguration; rhsGenericConfiguration = (((that.genericConfiguration!= null)&&(!that.genericConfiguration.isEmpty()))?that.getGenericConfiguration():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "genericConfiguration", lhsGenericConfiguration), LocatorUtils.property(thatLocator, "genericConfiguration", rhsGenericConfiguration), lhsGenericConfiguration, rhsGenericConfiguration)) { return false; } } { DefaultBKUs lhsDefaultBKUs; lhsDefaultBKUs = this.getDefaultBKUs(); DefaultBKUs rhsDefaultBKUs; rhsDefaultBKUs = that.getDefaultBKUs(); if (!strategy.equals(LocatorUtils.property(thisLocator, "defaultBKUs", lhsDefaultBKUs), LocatorUtils.property(thatLocator, "defaultBKUs", rhsDefaultBKUs), lhsDefaultBKUs, rhsDefaultBKUs)) { return false; } } { SLRequestTemplates lhsSLRequestTemplates; lhsSLRequestTemplates = this.getSLRequestTemplates(); SLRequestTemplates rhsSLRequestTemplates; rhsSLRequestTemplates = that.getSLRequestTemplates(); if (!strategy.equals(LocatorUtils.property(thisLocator, "slRequestTemplates", lhsSLRequestTemplates), LocatorUtils.property(thatLocator, "slRequestTemplates", rhsSLRequestTemplates), lhsSLRequestTemplates, rhsSLRequestTemplates)) { return false; } } { XMLGregorianCalendar lhsTimestamp; lhsTimestamp = this.getTimestamp(); XMLGregorianCalendar rhsTimestamp; rhsTimestamp = that.getTimestamp(); if (!strategy.equals(LocatorUtils.property(thisLocator, "timestamp", lhsTimestamp), LocatorUtils.property(thatLocator, "timestamp", rhsTimestamp), lhsTimestamp, rhsTimestamp)) { return false; } } { XMLGregorianCalendar lhsPvp2Refresh; lhsPvp2Refresh = this.getPvp2Refresh(); XMLGregorianCalendar rhsPvp2Refresh; rhsPvp2Refresh = that.getPvp2Refresh(); if (!strategy.equals(LocatorUtils.property(thisLocator, "pvp2Refresh", lhsPvp2Refresh), LocatorUtils.property(thatLocator, "pvp2Refresh", rhsPvp2Refresh), lhsPvp2Refresh, rhsPvp2Refresh)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { AuthComponentGeneral theAuthComponentGeneral; theAuthComponentGeneral = this.getAuthComponentGeneral(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "authComponentGeneral", theAuthComponentGeneral), currentHashCode, theAuthComponentGeneral); } { List theOnlineApplication; theOnlineApplication = (((this.onlineApplication!= null)&&(!this.onlineApplication.isEmpty()))?this.getOnlineApplication():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "onlineApplication", theOnlineApplication), currentHashCode, theOnlineApplication); } { ChainingModes theChainingModes; theChainingModes = this.getChainingModes(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "chainingModes", theChainingModes), currentHashCode, theChainingModes); } { String theTrustedCACertificates; theTrustedCACertificates = this.getTrustedCACertificates(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "trustedCACertificates", theTrustedCACertificates), currentHashCode, theTrustedCACertificates); } { List theGenericConfiguration; theGenericConfiguration = (((this.genericConfiguration!= null)&&(!this.genericConfiguration.isEmpty()))?this.getGenericConfiguration():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "genericConfiguration", theGenericConfiguration), currentHashCode, theGenericConfiguration); } { DefaultBKUs theDefaultBKUs; theDefaultBKUs = this.getDefaultBKUs(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "defaultBKUs", theDefaultBKUs), currentHashCode, theDefaultBKUs); } { SLRequestTemplates theSLRequestTemplates; theSLRequestTemplates = this.getSLRequestTemplates(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "slRequestTemplates", theSLRequestTemplates), currentHashCode, theSLRequestTemplates); } { XMLGregorianCalendar theTimestamp; theTimestamp = this.getTimestamp(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timestamp", theTimestamp), currentHashCode, theTimestamp); } { XMLGregorianCalendar thePvp2Refresh; thePvp2Refresh = this.getPvp2Refresh(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pvp2Refresh", thePvp2Refresh), currentHashCode, thePvp2Refresh); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }