/webs/kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/model/KaleoDefinitionWrapper.java
https://github.com/l15k4/liferay-plugins · Java · 550 lines · 231 code · 73 blank · 246 comment · 0 complexity · 9a2d7af01901a72119b01e13ee7532de MD5 · raw file
- /**
- * Copyright (c) 2000-2011 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 com.liferay.portal.model.ModelWrapper;
- /**
- * <p>
- * This class is a wrapper for {@link KaleoDefinition}.
- * </p>
- *
- * @author Brian Wing Shun Chan
- * @see KaleoDefinition
- * @generated
- */
- public class KaleoDefinitionWrapper implements KaleoDefinition,
- ModelWrapper<KaleoDefinition> {
- public KaleoDefinitionWrapper(KaleoDefinition kaleoDefinition) {
- _kaleoDefinition = kaleoDefinition;
- }
- public Class<?> getModelClass() {
- return KaleoDefinition.class;
- }
- public String getModelClassName() {
- return KaleoDefinition.class.getName();
- }
- /**
- * Returns the primary key of this kaleo definition.
- *
- * @return the primary key of this kaleo definition
- */
- public long getPrimaryKey() {
- return _kaleoDefinition.getPrimaryKey();
- }
- /**
- * Sets the primary key of this kaleo definition.
- *
- * @param primaryKey the primary key of this kaleo definition
- */
- public void setPrimaryKey(long primaryKey) {
- _kaleoDefinition.setPrimaryKey(primaryKey);
- }
- /**
- * Returns the kaleo definition ID of this kaleo definition.
- *
- * @return the kaleo definition ID of this kaleo definition
- */
- public long getKaleoDefinitionId() {
- return _kaleoDefinition.getKaleoDefinitionId();
- }
- /**
- * Sets the kaleo definition ID of this kaleo definition.
- *
- * @param kaleoDefinitionId the kaleo definition ID of this kaleo definition
- */
- public void setKaleoDefinitionId(long kaleoDefinitionId) {
- _kaleoDefinition.setKaleoDefinitionId(kaleoDefinitionId);
- }
- /**
- * Returns the group ID of this kaleo definition.
- *
- * @return the group ID of this kaleo definition
- */
- public long getGroupId() {
- return _kaleoDefinition.getGroupId();
- }
- /**
- * Sets the group ID of this kaleo definition.
- *
- * @param groupId the group ID of this kaleo definition
- */
- public void setGroupId(long groupId) {
- _kaleoDefinition.setGroupId(groupId);
- }
- /**
- * Returns the company ID of this kaleo definition.
- *
- * @return the company ID of this kaleo definition
- */
- public long getCompanyId() {
- return _kaleoDefinition.getCompanyId();
- }
- /**
- * Sets the company ID of this kaleo definition.
- *
- * @param companyId the company ID of this kaleo definition
- */
- public void setCompanyId(long companyId) {
- _kaleoDefinition.setCompanyId(companyId);
- }
- /**
- * Returns the user ID of this kaleo definition.
- *
- * @return the user ID of this kaleo definition
- */
- public long getUserId() {
- return _kaleoDefinition.getUserId();
- }
- /**
- * Sets the user ID of this kaleo definition.
- *
- * @param userId the user ID of this kaleo definition
- */
- public void setUserId(long userId) {
- _kaleoDefinition.setUserId(userId);
- }
- /**
- * Returns the user uuid of this kaleo definition.
- *
- * @return the user uuid of this kaleo definition
- * @throws SystemException if a system exception occurred
- */
- public java.lang.String getUserUuid()
- throws com.liferay.portal.kernel.exception.SystemException {
- return _kaleoDefinition.getUserUuid();
- }
- /**
- * Sets the user uuid of this kaleo definition.
- *
- * @param userUuid the user uuid of this kaleo definition
- */
- public void setUserUuid(java.lang.String userUuid) {
- _kaleoDefinition.setUserUuid(userUuid);
- }
- /**
- * Returns the user name of this kaleo definition.
- *
- * @return the user name of this kaleo definition
- */
- public java.lang.String getUserName() {
- return _kaleoDefinition.getUserName();
- }
- /**
- * Sets the user name of this kaleo definition.
- *
- * @param userName the user name of this kaleo definition
- */
- public void setUserName(java.lang.String userName) {
- _kaleoDefinition.setUserName(userName);
- }
- /**
- * Returns the create date of this kaleo definition.
- *
- * @return the create date of this kaleo definition
- */
- public java.util.Date getCreateDate() {
- return _kaleoDefinition.getCreateDate();
- }
- /**
- * Sets the create date of this kaleo definition.
- *
- * @param createDate the create date of this kaleo definition
- */
- public void setCreateDate(java.util.Date createDate) {
- _kaleoDefinition.setCreateDate(createDate);
- }
- /**
- * Returns the modified date of this kaleo definition.
- *
- * @return the modified date of this kaleo definition
- */
- public java.util.Date getModifiedDate() {
- return _kaleoDefinition.getModifiedDate();
- }
- /**
- * Sets the modified date of this kaleo definition.
- *
- * @param modifiedDate the modified date of this kaleo definition
- */
- public void setModifiedDate(java.util.Date modifiedDate) {
- _kaleoDefinition.setModifiedDate(modifiedDate);
- }
- /**
- * Returns the name of this kaleo definition.
- *
- * @return the name of this kaleo definition
- */
- public java.lang.String getName() {
- return _kaleoDefinition.getName();
- }
- /**
- * Sets the name of this kaleo definition.
- *
- * @param name the name of this kaleo definition
- */
- public void setName(java.lang.String name) {
- _kaleoDefinition.setName(name);
- }
- /**
- * Returns the title of this kaleo definition.
- *
- * @return the title of this kaleo definition
- */
- public java.lang.String getTitle() {
- return _kaleoDefinition.getTitle();
- }
- /**
- * Returns the localized title of this kaleo definition in the language. Uses the default language if no localization exists for the requested language.
- *
- * @param locale the locale of the language
- * @return the localized title of this kaleo definition
- */
- public java.lang.String getTitle(java.util.Locale locale) {
- return _kaleoDefinition.getTitle(locale);
- }
- /**
- * Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
- *
- * @param locale the local of the language
- * @param useDefault whether to use the default language if no localization exists for the requested language
- * @return the localized title of this kaleo definition. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
- */
- public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
- return _kaleoDefinition.getTitle(locale, useDefault);
- }
- /**
- * Returns the localized title of this kaleo definition in the language. Uses the default language if no localization exists for the requested language.
- *
- * @param languageId the ID of the language
- * @return the localized title of this kaleo definition
- */
- public java.lang.String getTitle(java.lang.String languageId) {
- return _kaleoDefinition.getTitle(languageId);
- }
- /**
- * Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
- *
- * @param languageId the ID of the language
- * @param useDefault whether to use the default language if no localization exists for the requested language
- * @return the localized title of this kaleo definition
- */
- public java.lang.String getTitle(java.lang.String languageId,
- boolean useDefault) {
- return _kaleoDefinition.getTitle(languageId, useDefault);
- }
- public java.lang.String getTitleCurrentLanguageId() {
- return _kaleoDefinition.getTitleCurrentLanguageId();
- }
- public java.lang.String getTitleCurrentValue() {
- return _kaleoDefinition.getTitleCurrentValue();
- }
- /**
- * Returns a map of the locales and localized titles of this kaleo definition.
- *
- * @return the locales and localized titles of this kaleo definition
- */
- public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
- return _kaleoDefinition.getTitleMap();
- }
- /**
- * Sets the title of this kaleo definition.
- *
- * @param title the title of this kaleo definition
- */
- public void setTitle(java.lang.String title) {
- _kaleoDefinition.setTitle(title);
- }
- /**
- * Sets the localized title of this kaleo definition in the language.
- *
- * @param title the localized title of this kaleo definition
- * @param locale the locale of the language
- */
- public void setTitle(java.lang.String title, java.util.Locale locale) {
- _kaleoDefinition.setTitle(title, locale);
- }
- /**
- * Sets the localized title of this kaleo definition in the language, and sets the default locale.
- *
- * @param title the localized title of this kaleo definition
- * @param locale the locale of the language
- * @param defaultLocale the default locale
- */
- public void setTitle(java.lang.String title, java.util.Locale locale,
- java.util.Locale defaultLocale) {
- _kaleoDefinition.setTitle(title, locale, defaultLocale);
- }
- public void setTitleCurrentLanguageId(java.lang.String languageId) {
- _kaleoDefinition.setTitleCurrentLanguageId(languageId);
- }
- /**
- * Sets the localized titles of this kaleo definition from the map of locales and localized titles.
- *
- * @param titleMap the locales and localized titles of this kaleo definition
- */
- public void setTitleMap(
- java.util.Map<java.util.Locale, java.lang.String> titleMap) {
- _kaleoDefinition.setTitleMap(titleMap);
- }
- /**
- * Sets the localized titles of this kaleo definition from the map of locales and localized titles, and sets the default locale.
- *
- * @param titleMap the locales and localized titles of this kaleo definition
- * @param defaultLocale the default locale
- */
- public void setTitleMap(
- java.util.Map<java.util.Locale, java.lang.String> titleMap,
- java.util.Locale defaultLocale) {
- _kaleoDefinition.setTitleMap(titleMap, defaultLocale);
- }
- /**
- * Returns the description of this kaleo definition.
- *
- * @return the description of this kaleo definition
- */
- public java.lang.String getDescription() {
- return _kaleoDefinition.getDescription();
- }
- /**
- * Sets the description of this kaleo definition.
- *
- * @param description the description of this kaleo definition
- */
- public void setDescription(java.lang.String description) {
- _kaleoDefinition.setDescription(description);
- }
- /**
- * Returns the content of this kaleo definition.
- *
- * @return the content of this kaleo definition
- */
- public java.lang.String getContent() {
- return _kaleoDefinition.getContent();
- }
- /**
- * Sets the content of this kaleo definition.
- *
- * @param content the content of this kaleo definition
- */
- public void setContent(java.lang.String content) {
- _kaleoDefinition.setContent(content);
- }
- /**
- * Returns the version of this kaleo definition.
- *
- * @return the version of this kaleo definition
- */
- public int getVersion() {
- return _kaleoDefinition.getVersion();
- }
- /**
- * Sets the version of this kaleo definition.
- *
- * @param version the version of this kaleo definition
- */
- public void setVersion(int version) {
- _kaleoDefinition.setVersion(version);
- }
- /**
- * Returns the active of this kaleo definition.
- *
- * @return the active of this kaleo definition
- */
- public boolean getActive() {
- return _kaleoDefinition.getActive();
- }
- /**
- * Returns <code>true</code> if this kaleo definition is active.
- *
- * @return <code>true</code> if this kaleo definition is active; <code>false</code> otherwise
- */
- public boolean isActive() {
- return _kaleoDefinition.isActive();
- }
- /**
- * Sets whether this kaleo definition is active.
- *
- * @param active the active of this kaleo definition
- */
- public void setActive(boolean active) {
- _kaleoDefinition.setActive(active);
- }
- /**
- * Returns the start kaleo node ID of this kaleo definition.
- *
- * @return the start kaleo node ID of this kaleo definition
- */
- public long getStartKaleoNodeId() {
- return _kaleoDefinition.getStartKaleoNodeId();
- }
- /**
- * Sets the start kaleo node ID of this kaleo definition.
- *
- * @param startKaleoNodeId the start kaleo node ID of this kaleo definition
- */
- public void setStartKaleoNodeId(long startKaleoNodeId) {
- _kaleoDefinition.setStartKaleoNodeId(startKaleoNodeId);
- }
- public boolean isNew() {
- return _kaleoDefinition.isNew();
- }
- public void setNew(boolean n) {
- _kaleoDefinition.setNew(n);
- }
- public boolean isCachedModel() {
- return _kaleoDefinition.isCachedModel();
- }
- public void setCachedModel(boolean cachedModel) {
- _kaleoDefinition.setCachedModel(cachedModel);
- }
- public boolean isEscapedModel() {
- return _kaleoDefinition.isEscapedModel();
- }
- public java.io.Serializable getPrimaryKeyObj() {
- return _kaleoDefinition.getPrimaryKeyObj();
- }
- public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
- _kaleoDefinition.setPrimaryKeyObj(primaryKeyObj);
- }
- public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
- return _kaleoDefinition.getExpandoBridge();
- }
- public void setExpandoBridgeAttributes(
- com.liferay.portal.service.ServiceContext serviceContext) {
- _kaleoDefinition.setExpandoBridgeAttributes(serviceContext);
- }
- @Override
- public java.lang.Object clone() {
- return new KaleoDefinitionWrapper((KaleoDefinition)_kaleoDefinition.clone());
- }
- public int compareTo(
- com.liferay.portal.workflow.kaleo.model.KaleoDefinition kaleoDefinition) {
- return _kaleoDefinition.compareTo(kaleoDefinition);
- }
- @Override
- public int hashCode() {
- return _kaleoDefinition.hashCode();
- }
- public com.liferay.portal.model.CacheModel<com.liferay.portal.workflow.kaleo.model.KaleoDefinition> toCacheModel() {
- return _kaleoDefinition.toCacheModel();
- }
- public com.liferay.portal.workflow.kaleo.model.KaleoDefinition toEscapedModel() {
- return new KaleoDefinitionWrapper(_kaleoDefinition.toEscapedModel());
- }
- @Override
- public java.lang.String toString() {
- return _kaleoDefinition.toString();
- }
- public java.lang.String toXmlString() {
- return _kaleoDefinition.toXmlString();
- }
- public void persist()
- throws com.liferay.portal.kernel.exception.SystemException {
- _kaleoDefinition.persist();
- }
- public com.liferay.portal.workflow.kaleo.model.KaleoNode getKaleoStartNode()
- throws com.liferay.portal.kernel.exception.PortalException,
- com.liferay.portal.kernel.exception.SystemException {
- return _kaleoDefinition.getKaleoStartNode();
- }
- public boolean hasIncompleteKaleoInstances()
- throws com.liferay.portal.kernel.exception.SystemException {
- return _kaleoDefinition.hasIncompleteKaleoInstances();
- }
- /**
- * @deprecated Renamed to {@link #getWrappedModel}
- */
- public KaleoDefinition getWrappedKaleoDefinition() {
- return _kaleoDefinition;
- }
- public KaleoDefinition getWrappedModel() {
- return _kaleoDefinition;
- }
- public void resetOriginalValues() {
- _kaleoDefinition.resetOriginalValues();
- }
- private KaleoDefinition _kaleoDefinition;
- }