com.liferay.saml.persistence.model.SamlIdpSpSessionWrapper Maven / Gradle / Ivy
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.saml.persistence.model;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
*
* This class is a wrapper for {@link SamlIdpSpSession}.
*
*
* @author Mika Koivisto
* @see SamlIdpSpSession
* @generated
*/
public class SamlIdpSpSessionWrapper
extends BaseModelWrapper
implements ModelWrapper, SamlIdpSpSession {
public SamlIdpSpSessionWrapper(SamlIdpSpSession samlIdpSpSession) {
super(samlIdpSpSession);
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
attributes.put("samlIdpSpSessionId", getSamlIdpSpSessionId());
attributes.put("companyId", getCompanyId());
attributes.put("userId", getUserId());
attributes.put("userName", getUserName());
attributes.put("createDate", getCreateDate());
attributes.put("modifiedDate", getModifiedDate());
attributes.put("samlIdpSsoSessionId", getSamlIdpSsoSessionId());
attributes.put("samlPeerBindingId", getSamlPeerBindingId());
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Long samlIdpSpSessionId = (Long)attributes.get("samlIdpSpSessionId");
if (samlIdpSpSessionId != null) {
setSamlIdpSpSessionId(samlIdpSpSessionId);
}
Long companyId = (Long)attributes.get("companyId");
if (companyId != null) {
setCompanyId(companyId);
}
Long userId = (Long)attributes.get("userId");
if (userId != null) {
setUserId(userId);
}
String userName = (String)attributes.get("userName");
if (userName != null) {
setUserName(userName);
}
Date createDate = (Date)attributes.get("createDate");
if (createDate != null) {
setCreateDate(createDate);
}
Date modifiedDate = (Date)attributes.get("modifiedDate");
if (modifiedDate != null) {
setModifiedDate(modifiedDate);
}
Long samlIdpSsoSessionId = (Long)attributes.get("samlIdpSsoSessionId");
if (samlIdpSsoSessionId != null) {
setSamlIdpSsoSessionId(samlIdpSsoSessionId);
}
Long samlPeerBindingId = (Long)attributes.get("samlPeerBindingId");
if (samlPeerBindingId != null) {
setSamlPeerBindingId(samlPeerBindingId);
}
}
@Override
public SamlIdpSpSession cloneWithOriginalValues() {
return wrap(model.cloneWithOriginalValues());
}
/**
* Returns the company ID of this saml idp sp session.
*
* @return the company ID of this saml idp sp session
*/
@Override
public long getCompanyId() {
return model.getCompanyId();
}
/**
* Returns the create date of this saml idp sp session.
*
* @return the create date of this saml idp sp session
*/
@Override
public Date getCreateDate() {
return model.getCreateDate();
}
/**
* Returns the modified date of this saml idp sp session.
*
* @return the modified date of this saml idp sp session
*/
@Override
public Date getModifiedDate() {
return model.getModifiedDate();
}
/**
* Returns the primary key of this saml idp sp session.
*
* @return the primary key of this saml idp sp session
*/
@Override
public long getPrimaryKey() {
return model.getPrimaryKey();
}
/**
* Returns the saml idp sp session ID of this saml idp sp session.
*
* @return the saml idp sp session ID of this saml idp sp session
*/
@Override
public long getSamlIdpSpSessionId() {
return model.getSamlIdpSpSessionId();
}
/**
* Returns the saml idp sso session ID of this saml idp sp session.
*
* @return the saml idp sso session ID of this saml idp sp session
*/
@Override
public long getSamlIdpSsoSessionId() {
return model.getSamlIdpSsoSessionId();
}
/**
* Returns the saml peer binding ID of this saml idp sp session.
*
* @return the saml peer binding ID of this saml idp sp session
*/
@Override
public long getSamlPeerBindingId() {
return model.getSamlPeerBindingId();
}
/**
* Returns the user ID of this saml idp sp session.
*
* @return the user ID of this saml idp sp session
*/
@Override
public long getUserId() {
return model.getUserId();
}
/**
* Returns the user name of this saml idp sp session.
*
* @return the user name of this saml idp sp session
*/
@Override
public String getUserName() {
return model.getUserName();
}
/**
* Returns the user uuid of this saml idp sp session.
*
* @return the user uuid of this saml idp sp session
*/
@Override
public String getUserUuid() {
return model.getUserUuid();
}
@Override
public void persist() {
model.persist();
}
/**
* Sets the company ID of this saml idp sp session.
*
* @param companyId the company ID of this saml idp sp session
*/
@Override
public void setCompanyId(long companyId) {
model.setCompanyId(companyId);
}
/**
* Sets the create date of this saml idp sp session.
*
* @param createDate the create date of this saml idp sp session
*/
@Override
public void setCreateDate(Date createDate) {
model.setCreateDate(createDate);
}
/**
* Sets the modified date of this saml idp sp session.
*
* @param modifiedDate the modified date of this saml idp sp session
*/
@Override
public void setModifiedDate(Date modifiedDate) {
model.setModifiedDate(modifiedDate);
}
/**
* Sets the primary key of this saml idp sp session.
*
* @param primaryKey the primary key of this saml idp sp session
*/
@Override
public void setPrimaryKey(long primaryKey) {
model.setPrimaryKey(primaryKey);
}
/**
* Sets the saml idp sp session ID of this saml idp sp session.
*
* @param samlIdpSpSessionId the saml idp sp session ID of this saml idp sp session
*/
@Override
public void setSamlIdpSpSessionId(long samlIdpSpSessionId) {
model.setSamlIdpSpSessionId(samlIdpSpSessionId);
}
/**
* Sets the saml idp sso session ID of this saml idp sp session.
*
* @param samlIdpSsoSessionId the saml idp sso session ID of this saml idp sp session
*/
@Override
public void setSamlIdpSsoSessionId(long samlIdpSsoSessionId) {
model.setSamlIdpSsoSessionId(samlIdpSsoSessionId);
}
/**
* Sets the saml peer binding ID of this saml idp sp session.
*
* @param samlPeerBindingId the saml peer binding ID of this saml idp sp session
*/
@Override
public void setSamlPeerBindingId(long samlPeerBindingId) {
model.setSamlPeerBindingId(samlPeerBindingId);
}
/**
* Sets the user ID of this saml idp sp session.
*
* @param userId the user ID of this saml idp sp session
*/
@Override
public void setUserId(long userId) {
model.setUserId(userId);
}
/**
* Sets the user name of this saml idp sp session.
*
* @param userName the user name of this saml idp sp session
*/
@Override
public void setUserName(String userName) {
model.setUserName(userName);
}
/**
* Sets the user uuid of this saml idp sp session.
*
* @param userUuid the user uuid of this saml idp sp session
*/
@Override
public void setUserUuid(String userUuid) {
model.setUserUuid(userUuid);
}
@Override
public String toXmlString() {
return model.toXmlString();
}
@Override
protected SamlIdpSpSessionWrapper wrap(SamlIdpSpSession samlIdpSpSession) {
return new SamlIdpSpSessionWrapper(samlIdpSpSession);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy