/******************************************************************************* * Copyright 2014 Federal Chancellery Austria * MOA-ID has been developed in a cooperation between BRZ, the Federal * Chancellery Austria - ICT staff unit, and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. *******************************************************************************/ package at.gv.egovernment.moa.id.commons.db.dao.session; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import org.hibernate.annotations.DynamicUpdate; @Entity @DynamicUpdate(value=true) @Table(name = "interfederation") public class InterfederationSessionStore implements Serializable{ private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "id", unique=true, nullable=false) private long id; @Column(name = "idpurlprefix", unique=false, nullable=false) private String idpurlprefix; @Column(name = "sessionIndex", unique=false, nullable=false) private String sessionIndex; @Column(name = "nameID", unique=false, nullable=false) private String userNameID; @Column(name = "QAALevel", unique=false, nullable=false) private String QAALevel; @Column(name = "authURL", unique=false, nullable=false) private String authURL; @Column(name = "attributesRequested", unique=false, nullable=true) private boolean attributesRequested; @Column(name = "storeSSOInformation", unique=false, nullable=true) private boolean storeSSOInformation = false; @Column(name = "created", updatable=false, nullable=false) // @Temporal(TemporalType.TIMESTAMP) private Date created; // @PrePersist // protected void created() { // this.created = new Date(); // } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name = "moasession") private AuthenticatedSessionStore moasession; /** * @return the id */ public long getId() { return id; } /** * @param id the id to set */ public void setId(long id) { this.id = id; } /** * @return the idpurlprefix */ public String getIdpurlprefix() { return idpurlprefix; } /** * @param idpurlprefix the idpurlprefix to set */ public void setIdpurlprefix(String idpurlprefix) { this.idpurlprefix = idpurlprefix; } /** * @return the sessionIndex */ public String getSessionIndex() { return sessionIndex; } /** * @param sessionIndex the sessionIndex to set */ public void setSessionIndex(String sessionIndex) { this.sessionIndex = sessionIndex; } /** * @return the userNameID */ public String getUserNameID() { return userNameID; } /** * @param userNameID the userNameID to set */ public void setUserNameID(String userNameID) { this.userNameID = userNameID; } /** * @return the attributesRequested */ public boolean isAttributesRequested() { return attributesRequested; } /** * @param attributesRequested the attributesRequested to set */ public void setAttributesRequested(boolean attributesRequested) { this.attributesRequested = attributesRequested; } /** * @return the created */ public Date getCreated() { return created; } /** * @param created the created to set */ public void setCreated(Date created) { this.created = created; } /** * @return the moasession */ public AuthenticatedSessionStore getMoasession() { return moasession; } /** * @param moasession the moasession to set */ public void setMoasession(AuthenticatedSessionStore moasession) { this.moasession = moasession; } /** * @return the qAALevel */ public String getQAALevel() { return QAALevel; } /** * @param qAALevel the qAALevel to set */ public void setQAALevel(String qAALevel) { QAALevel = qAALevel; } /** * @return the storeSSOInformation */ public boolean isStoreSSOInformation() { return storeSSOInformation; } /** * @param storeSSOInformation the storeSSOInformation to set */ public void setStoreSSOInformation(boolean storeSSOInformation) { this.storeSSOInformation = storeSSOInformation; } /** * @return the authURL */ public String getAuthURL() { return authURL; } /** * @param authURL the authURL to set */ public void setAuthURL(String authURL) { this.authURL = authURL; } }