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

com.liferay.social.kernel.model.SocialActivityLimitWrapper 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.social.kernel.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.HashMap;
import java.util.Map;
import java.util.Objects;

/**
 * 

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

* * @author Brian Wing Shun Chan * @see SocialActivityLimit * @generated */ @ProviderType public class SocialActivityLimitWrapper implements SocialActivityLimit, ModelWrapper { public SocialActivityLimitWrapper(SocialActivityLimit socialActivityLimit) { _socialActivityLimit = socialActivityLimit; } @Override public Class getModelClass() { return SocialActivityLimit.class; } @Override public String getModelClassName() { return SocialActivityLimit.class.getName(); } @Override public Map getModelAttributes() { Map attributes = new HashMap(); attributes.put("activityLimitId", getActivityLimitId()); attributes.put("groupId", getGroupId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); attributes.put("classNameId", getClassNameId()); attributes.put("classPK", getClassPK()); attributes.put("activityType", getActivityType()); attributes.put("activityCounterName", getActivityCounterName()); attributes.put("value", getValue()); return attributes; } @Override public void setModelAttributes(Map attributes) { Long activityLimitId = (Long)attributes.get("activityLimitId"); if (activityLimitId != null) { setActivityLimitId(activityLimitId); } 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); } Long classNameId = (Long)attributes.get("classNameId"); if (classNameId != null) { setClassNameId(classNameId); } Long classPK = (Long)attributes.get("classPK"); if (classPK != null) { setClassPK(classPK); } Integer activityType = (Integer)attributes.get("activityType"); if (activityType != null) { setActivityType(activityType); } String activityCounterName = (String)attributes.get( "activityCounterName"); if (activityCounterName != null) { setActivityCounterName(activityCounterName); } String value = (String)attributes.get("value"); if (value != null) { setValue(value); } } @Override public Object clone() { return new SocialActivityLimitWrapper( (SocialActivityLimit)_socialActivityLimit.clone()); } @Override public int compareTo(SocialActivityLimit socialActivityLimit) { return _socialActivityLimit.compareTo(socialActivityLimit); } /** * Returns the activity counter name of this social activity limit. * * @return the activity counter name of this social activity limit */ @Override public String getActivityCounterName() { return _socialActivityLimit.getActivityCounterName(); } /** * Returns the activity limit ID of this social activity limit. * * @return the activity limit ID of this social activity limit */ @Override public long getActivityLimitId() { return _socialActivityLimit.getActivityLimitId(); } /** * Returns the activity type of this social activity limit. * * @return the activity type of this social activity limit */ @Override public int getActivityType() { return _socialActivityLimit.getActivityType(); } /** * Returns the fully qualified class name of this social activity limit. * * @return the fully qualified class name of this social activity limit */ @Override public String getClassName() { return _socialActivityLimit.getClassName(); } /** * Returns the class name ID of this social activity limit. * * @return the class name ID of this social activity limit */ @Override public long getClassNameId() { return _socialActivityLimit.getClassNameId(); } /** * Returns the class pk of this social activity limit. * * @return the class pk of this social activity limit */ @Override public long getClassPK() { return _socialActivityLimit.getClassPK(); } /** * Returns the company ID of this social activity limit. * * @return the company ID of this social activity limit */ @Override public long getCompanyId() { return _socialActivityLimit.getCompanyId(); } @Override public int getCount() { return _socialActivityLimit.getCount(); } @Override public int getCount(int limitPeriod) { return _socialActivityLimit.getCount(limitPeriod); } @Override public ExpandoBridge getExpandoBridge() { return _socialActivityLimit.getExpandoBridge(); } /** * Returns the group ID of this social activity limit. * * @return the group ID of this social activity limit */ @Override public long getGroupId() { return _socialActivityLimit.getGroupId(); } /** * Returns the primary key of this social activity limit. * * @return the primary key of this social activity limit */ @Override public long getPrimaryKey() { return _socialActivityLimit.getPrimaryKey(); } @Override public Serializable getPrimaryKeyObj() { return _socialActivityLimit.getPrimaryKeyObj(); } /** * Returns the user ID of this social activity limit. * * @return the user ID of this social activity limit */ @Override public long getUserId() { return _socialActivityLimit.getUserId(); } /** * Returns the user uuid of this social activity limit. * * @return the user uuid of this social activity limit */ @Override public String getUserUuid() { return _socialActivityLimit.getUserUuid(); } /** * Returns the value of this social activity limit. * * @return the value of this social activity limit */ @Override public String getValue() { return _socialActivityLimit.getValue(); } @Override public int hashCode() { return _socialActivityLimit.hashCode(); } @Override public boolean isCachedModel() { return _socialActivityLimit.isCachedModel(); } @Override public boolean isEscapedModel() { return _socialActivityLimit.isEscapedModel(); } @Override public boolean isNew() { return _socialActivityLimit.isNew(); } @Override public void persist() { _socialActivityLimit.persist(); } /** * Sets the activity counter name of this social activity limit. * * @param activityCounterName the activity counter name of this social activity limit */ @Override public void setActivityCounterName(String activityCounterName) { _socialActivityLimit.setActivityCounterName(activityCounterName); } /** * Sets the activity limit ID of this social activity limit. * * @param activityLimitId the activity limit ID of this social activity limit */ @Override public void setActivityLimitId(long activityLimitId) { _socialActivityLimit.setActivityLimitId(activityLimitId); } /** * Sets the activity type of this social activity limit. * * @param activityType the activity type of this social activity limit */ @Override public void setActivityType(int activityType) { _socialActivityLimit.setActivityType(activityType); } @Override public void setCachedModel(boolean cachedModel) { _socialActivityLimit.setCachedModel(cachedModel); } @Override public void setClassName(String className) { _socialActivityLimit.setClassName(className); } /** * Sets the class name ID of this social activity limit. * * @param classNameId the class name ID of this social activity limit */ @Override public void setClassNameId(long classNameId) { _socialActivityLimit.setClassNameId(classNameId); } /** * Sets the class pk of this social activity limit. * * @param classPK the class pk of this social activity limit */ @Override public void setClassPK(long classPK) { _socialActivityLimit.setClassPK(classPK); } /** * Sets the company ID of this social activity limit. * * @param companyId the company ID of this social activity limit */ @Override public void setCompanyId(long companyId) { _socialActivityLimit.setCompanyId(companyId); } @Override public void setCount(int limitPeriod, int count) { _socialActivityLimit.setCount(limitPeriod, count); } @Override public void setExpandoBridgeAttributes( com.liferay.portal.kernel.model.BaseModel baseModel) { _socialActivityLimit.setExpandoBridgeAttributes(baseModel); } @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) { _socialActivityLimit.setExpandoBridgeAttributes(expandoBridge); } @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext) { _socialActivityLimit.setExpandoBridgeAttributes(serviceContext); } /** * Sets the group ID of this social activity limit. * * @param groupId the group ID of this social activity limit */ @Override public void setGroupId(long groupId) { _socialActivityLimit.setGroupId(groupId); } @Override public void setNew(boolean n) { _socialActivityLimit.setNew(n); } /** * Sets the primary key of this social activity limit. * * @param primaryKey the primary key of this social activity limit */ @Override public void setPrimaryKey(long primaryKey) { _socialActivityLimit.setPrimaryKey(primaryKey); } @Override public void setPrimaryKeyObj(Serializable primaryKeyObj) { _socialActivityLimit.setPrimaryKeyObj(primaryKeyObj); } /** * Sets the user ID of this social activity limit. * * @param userId the user ID of this social activity limit */ @Override public void setUserId(long userId) { _socialActivityLimit.setUserId(userId); } /** * Sets the user uuid of this social activity limit. * * @param userUuid the user uuid of this social activity limit */ @Override public void setUserUuid(String userUuid) { _socialActivityLimit.setUserUuid(userUuid); } /** * Sets the value of this social activity limit. * * @param value the value of this social activity limit */ @Override public void setValue(String value) { _socialActivityLimit.setValue(value); } @Override public com.liferay.portal.kernel.model.CacheModel toCacheModel() { return _socialActivityLimit.toCacheModel(); } @Override public SocialActivityLimit toEscapedModel() { return new SocialActivityLimitWrapper( _socialActivityLimit.toEscapedModel()); } @Override public String toString() { return _socialActivityLimit.toString(); } @Override public SocialActivityLimit toUnescapedModel() { return new SocialActivityLimitWrapper( _socialActivityLimit.toUnescapedModel()); } @Override public String toXmlString() { return _socialActivityLimit.toXmlString(); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof SocialActivityLimitWrapper)) { return false; } SocialActivityLimitWrapper socialActivityLimitWrapper = (SocialActivityLimitWrapper)obj; if (Objects.equals( _socialActivityLimit, socialActivityLimitWrapper._socialActivityLimit)) { return true; } return false; } @Override public SocialActivityLimit getWrappedModel() { return _socialActivityLimit; } @Override public boolean isEntityCacheEnabled() { return _socialActivityLimit.isEntityCacheEnabled(); } @Override public boolean isFinderCacheEnabled() { return _socialActivityLimit.isFinderCacheEnabled(); } @Override public void resetOriginalValues() { _socialActivityLimit.resetOriginalValues(); } private final SocialActivityLimit _socialActivityLimit; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy