All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.workflow.kaleo.model.KaleoInstanceWrapper Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.portal.workflow.kaleo.model;

import aQute.bnd.annotation.ProviderType;

import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.service.ServiceContext;

import java.io.Serializable;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

/**
 * 

* This class is a wrapper for {@link KaleoInstance}. *

* * @author Brian Wing Shun Chan * @see KaleoInstance * @generated */ @ProviderType public class KaleoInstanceWrapper implements KaleoInstance, ModelWrapper { public KaleoInstanceWrapper(KaleoInstance kaleoInstance) { _kaleoInstance = kaleoInstance; } @Override public Class getModelClass() { return KaleoInstance.class; } @Override public String getModelClassName() { return KaleoInstance.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("kaleoInstanceId", getKaleoInstanceId()); attributes.put("groupId", getGroupId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("userName", getUserName()); attributes.put("createDate", getCreateDate()); attributes.put("modifiedDate", getModifiedDate()); attributes.put( "kaleoDefinitionVersionId", getKaleoDefinitionVersionId()); attributes.put("kaleoDefinitionName", getKaleoDefinitionName()); attributes.put("kaleoDefinitionVersion", getKaleoDefinitionVersion()); attributes.put( "rootKaleoInstanceTokenId", getRootKaleoInstanceTokenId()); attributes.put("className", getClassName()); attributes.put("classPK", getClassPK()); attributes.put("completed", isCompleted()); attributes.put("completionDate", getCompletionDate()); attributes.put("workflowContext", getWorkflowContext()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long kaleoInstanceId = (Long)attributes.get("kaleoInstanceId"); if (kaleoInstanceId != null) { setKaleoInstanceId(kaleoInstanceId); } Long groupId = (Long)attributes.get("groupId"); if (groupId != null) { setGroupId(groupId); } 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 kaleoDefinitionVersionId = (Long)attributes.get( "kaleoDefinitionVersionId"); if (kaleoDefinitionVersionId != null) { setKaleoDefinitionVersionId(kaleoDefinitionVersionId); } String kaleoDefinitionName = (String)attributes.get( "kaleoDefinitionName"); if (kaleoDefinitionName != null) { setKaleoDefinitionName(kaleoDefinitionName); } Integer kaleoDefinitionVersion = (Integer)attributes.get( "kaleoDefinitionVersion"); if (kaleoDefinitionVersion != null) { setKaleoDefinitionVersion(kaleoDefinitionVersion); } Long rootKaleoInstanceTokenId = (Long)attributes.get( "rootKaleoInstanceTokenId"); if (rootKaleoInstanceTokenId != null) { setRootKaleoInstanceTokenId(rootKaleoInstanceTokenId); } String className = (String)attributes.get("className"); if (className != null) { setClassName(className); } Long classPK = (Long)attributes.get("classPK"); if (classPK != null) { setClassPK(classPK); } Boolean completed = (Boolean)attributes.get("completed"); if (completed != null) { setCompleted(completed); } Date completionDate = (Date)attributes.get("completionDate"); if (completionDate != null) { setCompletionDate(completionDate); } String workflowContext = (String)attributes.get("workflowContext"); if (workflowContext != null) { setWorkflowContext(workflowContext); } } @Override public Object clone() { return new KaleoInstanceWrapper((KaleoInstance)_kaleoInstance.clone()); } @Override public int compareTo(KaleoInstance kaleoInstance) { return _kaleoInstance.compareTo(kaleoInstance); } /** * Returns the class name of this kaleo instance. * * @return the class name of this kaleo instance */ @Override public String getClassName() { return _kaleoInstance.getClassName(); } /** * Returns the class pk of this kaleo instance. * * @return the class pk of this kaleo instance */ @Override public long getClassPK() { return _kaleoInstance.getClassPK(); } /** * Returns the company ID of this kaleo instance. * * @return the company ID of this kaleo instance */ @Override public long getCompanyId() { return _kaleoInstance.getCompanyId(); } /** * Returns the completed of this kaleo instance. * * @return the completed of this kaleo instance */ @Override public boolean getCompleted() { return _kaleoInstance.getCompleted(); } /** * Returns the completion date of this kaleo instance. * * @return the completion date of this kaleo instance */ @Override public Date getCompletionDate() { return _kaleoInstance.getCompletionDate(); } /** * Returns the create date of this kaleo instance. * * @return the create date of this kaleo instance */ @Override public Date getCreateDate() { return _kaleoInstance.getCreateDate(); } @Override public ExpandoBridge getExpandoBridge() { return _kaleoInstance.getExpandoBridge(); } /** * Returns the group ID of this kaleo instance. * * @return the group ID of this kaleo instance */ @Override public long getGroupId() { return _kaleoInstance.getGroupId(); } /** * Returns the kaleo definition name of this kaleo instance. * * @return the kaleo definition name of this kaleo instance */ @Override public String getKaleoDefinitionName() { return _kaleoInstance.getKaleoDefinitionName(); } /** * Returns the kaleo definition version of this kaleo instance. * * @return the kaleo definition version of this kaleo instance */ @Override public int getKaleoDefinitionVersion() { return _kaleoInstance.getKaleoDefinitionVersion(); } /** * Returns the kaleo definition version ID of this kaleo instance. * * @return the kaleo definition version ID of this kaleo instance */ @Override public long getKaleoDefinitionVersionId() { return _kaleoInstance.getKaleoDefinitionVersionId(); } /** * Returns the kaleo instance ID of this kaleo instance. * * @return the kaleo instance ID of this kaleo instance */ @Override public long getKaleoInstanceId() { return _kaleoInstance.getKaleoInstanceId(); } /** * Returns the modified date of this kaleo instance. * * @return the modified date of this kaleo instance */ @Override public Date getModifiedDate() { return _kaleoInstance.getModifiedDate(); } /** * Returns the primary key of this kaleo instance. * * @return the primary key of this kaleo instance */ @Override public long getPrimaryKey() { return _kaleoInstance.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _kaleoInstance.getPrimaryKeyObj(); } @Override public KaleoInstanceToken getRootKaleoInstanceToken( Map workflowContext, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _kaleoInstance.getRootKaleoInstanceToken( workflowContext, serviceContext); } @Override public KaleoInstanceToken getRootKaleoInstanceToken( ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _kaleoInstance.getRootKaleoInstanceToken(serviceContext); } /** * Returns the root kaleo instance token ID of this kaleo instance. * * @return the root kaleo instance token ID of this kaleo instance */ @Override public long getRootKaleoInstanceTokenId() { return _kaleoInstance.getRootKaleoInstanceTokenId(); } /** * Returns the user ID of this kaleo instance. * * @return the user ID of this kaleo instance */ @Override public long getUserId() { return _kaleoInstance.getUserId(); } /** * Returns the user name of this kaleo instance. * * @return the user name of this kaleo instance */ @Override public String getUserName() { return _kaleoInstance.getUserName(); } /** * Returns the user uuid of this kaleo instance. * * @return the user uuid of this kaleo instance */ @Override public String getUserUuid() { return _kaleoInstance.getUserUuid(); } /** * Returns the workflow context of this kaleo instance. * * @return the workflow context of this kaleo instance */ @Override public String getWorkflowContext() { return _kaleoInstance.getWorkflowContext(); } @Override public int hashCode() { return _kaleoInstance.hashCode(); } @Override public boolean isCachedModel() { return _kaleoInstance.isCachedModel(); } /** * Returns true if this kaleo instance is completed. * * @return true if this kaleo instance is completed; false otherwise */ @Override public boolean isCompleted() { return _kaleoInstance.isCompleted(); } @Override public boolean isEscapedModel() { return _kaleoInstance.isEscapedModel(); } @Override public boolean isNew() { return _kaleoInstance.isNew(); } @Override public void persist() { _kaleoInstance.persist(); } @Override public void setCachedModel(boolean cachedModel) { _kaleoInstance.setCachedModel(cachedModel); } /** * Sets the class name of this kaleo instance. * * @param className the class name of this kaleo instance */ @Override public void setClassName(String className) { _kaleoInstance.setClassName(className); } /** * Sets the class pk of this kaleo instance. * * @param classPK the class pk of this kaleo instance */ @Override public void setClassPK(long classPK) { _kaleoInstance.setClassPK(classPK); } /** * Sets the company ID of this kaleo instance. * * @param companyId the company ID of this kaleo instance */ @Override public void setCompanyId(long companyId) { _kaleoInstance.setCompanyId(companyId); } /** * Sets whether this kaleo instance is completed. * * @param completed the completed of this kaleo instance */ @Override public void setCompleted(boolean completed) { _kaleoInstance.setCompleted(completed); } /** * Sets the completion date of this kaleo instance. * * @param completionDate the completion date of this kaleo instance */ @Override public void setCompletionDate(Date completionDate) { _kaleoInstance.setCompletionDate(completionDate); } /** * Sets the create date of this kaleo instance. * * @param createDate the create date of this kaleo instance */ @Override public void setCreateDate(Date createDate) { _kaleoInstance.setCreateDate(createDate); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.kernel.model.BaseModel baseModel) { _kaleoInstance.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _kaleoInstance.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _kaleoInstance.setExpandoBridgeAttributes(serviceContext); } /** * Sets the group ID of this kaleo instance. * * @param groupId the group ID of this kaleo instance */ @Override public void setGroupId(long groupId) { _kaleoInstance.setGroupId(groupId); } /** * Sets the kaleo definition name of this kaleo instance. * * @param kaleoDefinitionName the kaleo definition name of this kaleo instance */ @Override public void setKaleoDefinitionName(String kaleoDefinitionName) { _kaleoInstance.setKaleoDefinitionName(kaleoDefinitionName); } /** * Sets the kaleo definition version of this kaleo instance. * * @param kaleoDefinitionVersion the kaleo definition version of this kaleo instance */ @Override public void setKaleoDefinitionVersion(int kaleoDefinitionVersion) { _kaleoInstance.setKaleoDefinitionVersion(kaleoDefinitionVersion); } /** * Sets the kaleo definition version ID of this kaleo instance. * * @param kaleoDefinitionVersionId the kaleo definition version ID of this kaleo instance */ @Override public void setKaleoDefinitionVersionId(long kaleoDefinitionVersionId) { _kaleoInstance.setKaleoDefinitionVersionId(kaleoDefinitionVersionId); } /** * Sets the kaleo instance ID of this kaleo instance. * * @param kaleoInstanceId the kaleo instance ID of this kaleo instance */ @Override public void setKaleoInstanceId(long kaleoInstanceId) { _kaleoInstance.setKaleoInstanceId(kaleoInstanceId); } /** * Sets the modified date of this kaleo instance. * * @param modifiedDate the modified date of this kaleo instance */ @Override public void setModifiedDate(Date modifiedDate) { _kaleoInstance.setModifiedDate(modifiedDate); } @Override public void setNew(boolean n) { _kaleoInstance.setNew(n); } /** * Sets the primary key of this kaleo instance. * * @param primaryKey the primary key of this kaleo instance */ @Override public void setPrimaryKey(long primaryKey) { _kaleoInstance.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _kaleoInstance.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the root kaleo instance token ID of this kaleo instance. * * @param rootKaleoInstanceTokenId the root kaleo instance token ID of this kaleo instance */ @Override public void setRootKaleoInstanceTokenId(long rootKaleoInstanceTokenId) { _kaleoInstance.setRootKaleoInstanceTokenId(rootKaleoInstanceTokenId); } /** * Sets the user ID of this kaleo instance. * * @param userId the user ID of this kaleo instance */ @Override public void setUserId(long userId) { _kaleoInstance.setUserId(userId); } /** * Sets the user name of this kaleo instance. * * @param userName the user name of this kaleo instance */ @Override public void setUserName(String userName) { _kaleoInstance.setUserName(userName); } /** * Sets the user uuid of this kaleo instance. * * @param userUuid the user uuid of this kaleo instance */ @Override public void setUserUuid(String userUuid) { _kaleoInstance.setUserUuid(userUuid); } /** * Sets the workflow context of this kaleo instance. * * @param workflowContext the workflow context of this kaleo instance */ @Override public void setWorkflowContext(String workflowContext) { _kaleoInstance.setWorkflowContext(workflowContext); } @Override public com.liferay.portal.kernel.model.CacheModel toCacheModel() { return _kaleoInstance.toCacheModel(); } @Override public KaleoInstance toEscapedModel() { return new KaleoInstanceWrapper(_kaleoInstance.toEscapedModel()); } @Override public String toString() { return _kaleoInstance.toString(); } @Override public KaleoInstance toUnescapedModel() { return new KaleoInstanceWrapper(_kaleoInstance.toUnescapedModel()); } @Override public String toXmlString() { return _kaleoInstance.toXmlString(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof KaleoInstanceWrapper)) { return false; } KaleoInstanceWrapper kaleoInstanceWrapper = (KaleoInstanceWrapper)obj; if (Objects.equals( _kaleoInstance, kaleoInstanceWrapper._kaleoInstance)) { return true; } return false; } @Override public KaleoInstance getWrappedModel() { return _kaleoInstance; } @Override public boolean isEntityCacheEnabled() { return _kaleoInstance.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _kaleoInstance.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _kaleoInstance.resetOriginalValues(); } private final KaleoInstance _kaleoInstance; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy