com.liferay.social.kernel.model.SocialActivityLimitWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* 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 com.liferay.portal.kernel.util.Validator;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
*
* 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 java.lang.Object clone() {
return new SocialActivityLimitWrapper((SocialActivityLimit)_socialActivityLimit.clone());
}
@Override
public int compareTo(
com.liferay.social.kernel.model.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 java.lang.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 java.lang.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 p k of this social activity limit.
*
* @return the class p k 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 java.lang.String getUserUuid() {
return _socialActivityLimit.getUserUuid();
}
/**
* Returns the value of this social activity limit.
*
* @return the value of this social activity limit
*/
@Override
public java.lang.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(java.lang.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(java.lang.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 p k of this social activity limit.
*
* @param classPK the class p k 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(java.lang.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(java.lang.String value) {
_socialActivityLimit.setValue(value);
}
@Override
public com.liferay.portal.kernel.model.CacheModel toCacheModel() {
return _socialActivityLimit.toCacheModel();
}
@Override
public com.liferay.social.kernel.model.SocialActivityLimit toEscapedModel() {
return new SocialActivityLimitWrapper(_socialActivityLimit.toEscapedModel());
}
@Override
public java.lang.String toString() {
return _socialActivityLimit.toString();
}
@Override
public com.liferay.social.kernel.model.SocialActivityLimit toUnescapedModel() {
return new SocialActivityLimitWrapper(_socialActivityLimit.toUnescapedModel());
}
@Override
public java.lang.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 (Validator.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 - 2025 Weber Informatics LLC | Privacy Policy