001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.model; 016 017 import com.liferay.portal.kernel.annotation.AutoEscape; 018 import com.liferay.portal.service.ServiceContext; 019 020 import com.liferay.portlet.expando.model.ExpandoBridge; 021 022 import java.io.Serializable; 023 024 /** 025 * The base model interface for the PluginSetting service. Represents a row in the "PluginSetting" database table, with each column mapped to a property of this class. 026 * 027 * <p> 028 * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.PluginSettingModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portal.model.impl.PluginSettingImpl}. 029 * </p> 030 * 031 * <p> 032 * Never modify or reference this interface directly. All methods that expect a plugin setting model instance should use the {@link PluginSetting} interface instead. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see PluginSetting 037 * @see com.liferay.portal.model.impl.PluginSettingImpl 038 * @see com.liferay.portal.model.impl.PluginSettingModelImpl 039 * @generated 040 */ 041 public interface PluginSettingModel extends BaseModel<PluginSetting> { 042 /** 043 * Gets the primary key of this plugin setting. 044 * 045 * @return the primary key of this plugin setting 046 */ 047 public long getPrimaryKey(); 048 049 /** 050 * Sets the primary key of this plugin setting 051 * 052 * @param pk the primary key of this plugin setting 053 */ 054 public void setPrimaryKey(long pk); 055 056 /** 057 * Gets the plugin setting id of this plugin setting. 058 * 059 * @return the plugin setting id of this plugin setting 060 */ 061 public long getPluginSettingId(); 062 063 /** 064 * Sets the plugin setting id of this plugin setting. 065 * 066 * @param pluginSettingId the plugin setting id of this plugin setting 067 */ 068 public void setPluginSettingId(long pluginSettingId); 069 070 /** 071 * Gets the company id of this plugin setting. 072 * 073 * @return the company id of this plugin setting 074 */ 075 public long getCompanyId(); 076 077 /** 078 * Sets the company id of this plugin setting. 079 * 080 * @param companyId the company id of this plugin setting 081 */ 082 public void setCompanyId(long companyId); 083 084 /** 085 * Gets the plugin id of this plugin setting. 086 * 087 * @return the plugin id of this plugin setting 088 */ 089 @AutoEscape 090 public String getPluginId(); 091 092 /** 093 * Sets the plugin id of this plugin setting. 094 * 095 * @param pluginId the plugin id of this plugin setting 096 */ 097 public void setPluginId(String pluginId); 098 099 /** 100 * Gets the plugin type of this plugin setting. 101 * 102 * @return the plugin type of this plugin setting 103 */ 104 @AutoEscape 105 public String getPluginType(); 106 107 /** 108 * Sets the plugin type of this plugin setting. 109 * 110 * @param pluginType the plugin type of this plugin setting 111 */ 112 public void setPluginType(String pluginType); 113 114 /** 115 * Gets the roles of this plugin setting. 116 * 117 * @return the roles of this plugin setting 118 */ 119 @AutoEscape 120 public String getRoles(); 121 122 /** 123 * Sets the roles of this plugin setting. 124 * 125 * @param roles the roles of this plugin setting 126 */ 127 public void setRoles(String roles); 128 129 /** 130 * Gets the active of this plugin setting. 131 * 132 * @return the active of this plugin setting 133 */ 134 public boolean getActive(); 135 136 /** 137 * Determines whether this plugin setting is active. 138 * 139 * @return whether this plugin setting is active 140 */ 141 public boolean isActive(); 142 143 /** 144 * Sets whether this {$entity.humanName} is active. 145 * 146 * @param active the active of this plugin setting 147 */ 148 public void setActive(boolean active); 149 150 /** 151 * Gets a copy of this plugin setting as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 152 * 153 * @return the escaped model instance 154 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 155 */ 156 public PluginSetting toEscapedModel(); 157 158 public boolean isNew(); 159 160 public void setNew(boolean n); 161 162 public boolean isCachedModel(); 163 164 public void setCachedModel(boolean cachedModel); 165 166 public boolean isEscapedModel(); 167 168 public void setEscapedModel(boolean escapedModel); 169 170 public Serializable getPrimaryKeyObj(); 171 172 public ExpandoBridge getExpandoBridge(); 173 174 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 175 176 public Object clone(); 177 178 public int compareTo(PluginSetting pluginSetting); 179 180 public int hashCode(); 181 182 public String toString(); 183 184 public String toXmlString(); 185 }