|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.PluginSettingWrapper
public class PluginSettingWrapper
This class is a wrapper for PluginSetting.
PluginSetting,
Serialized Form| Constructor Summary | |
|---|---|
PluginSettingWrapper(PluginSetting pluginSetting)
|
|
| Method Summary | |
|---|---|
void |
addRole(String role)
Adds a role to the list of roles. |
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PluginSetting pluginSetting)
|
boolean |
getActive()
|
long |
getCompanyId()
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getPluginId()
|
long |
getPluginSettingId()
|
String |
getPluginType()
|
long |
getPrimaryKey()
|
Serializable |
getPrimaryKeyObj()
Gets the primary key for this model instance. |
String |
getRoles()
|
String[] |
getRolesArray()
Gets an array of required roles of the plugin. |
PluginSetting |
getWrappedPluginSetting()
|
int |
hashCode()
|
boolean |
hasPermission(long userId)
Returns true if the user has permission to use this plugin |
boolean |
hasRoleWithName(String roleName)
Returns true if the plugin has a role with the specified
name. |
boolean |
isActive()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance has been wrapped with an HTML auto escape handler. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setActive(boolean active)
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCompanyId(long companyId)
|
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance has been wrapped with an HTML auto escape handler. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPluginId(String pluginId)
|
void |
setPluginSettingId(long pluginSettingId)
|
void |
setPluginType(String pluginType)
|
void |
setPrimaryKey(long pk)
|
void |
setRoles(String roles)
Sets a string of ordered comma delimited plugin ids. |
void |
setRolesArray(String[] rolesArray)
Sets an array of required roles of the plugin. |
PluginSetting |
toEscapedModel()
|
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PluginSettingWrapper(PluginSetting pluginSetting)
| Method Detail |
|---|
public long getPrimaryKey()
getPrimaryKey in interface PluginSettingModelpublic void setPrimaryKey(long pk)
setPrimaryKey in interface PluginSettingModelpublic long getPluginSettingId()
getPluginSettingId in interface PluginSettingModelpublic void setPluginSettingId(long pluginSettingId)
setPluginSettingId in interface PluginSettingModelpublic long getCompanyId()
getCompanyId in interface PluginSettingModelpublic void setCompanyId(long companyId)
setCompanyId in interface PluginSettingModelpublic String getPluginId()
getPluginId in interface PluginSettingModelpublic void setPluginId(String pluginId)
setPluginId in interface PluginSettingModelpublic String getPluginType()
getPluginType in interface PluginSettingModelpublic void setPluginType(String pluginType)
setPluginType in interface PluginSettingModelpublic String getRoles()
getRoles in interface PluginSettingModelpublic void setRoles(String roles)
PluginSetting
setRoles in interface PluginSettingsetRoles in interface PluginSettingModelpublic boolean getActive()
getActive in interface PluginSettingModelpublic boolean isActive()
isActive in interface PluginSettingModelpublic void setActive(boolean active)
setActive in interface PluginSettingModelpublic PluginSetting toEscapedModel()
toEscapedModel in interface PluginSettingModelpublic boolean isNew()
BaseModel
isNew in interface BaseModel<PluginSetting>isNew in interface PluginSettingModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<PluginSetting>setNew in interface PluginSettingModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<PluginSetting>isCachedModel in interface PluginSettingModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<PluginSetting>setCachedModel in interface PluginSettingModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<PluginSetting>isEscapedModel in interface PluginSettingModeltrue if this model instance has been wrapped with an
HTML auto escape handler; false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be wrapped with an HTML auto escape handler using
its toEscapedModel method. For example, UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<PluginSetting>setEscapedModel in interface PluginSettingModelescapedModel - whether this model instance has been wrapped with an
HTML auto escape handlerAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<PluginSetting>getPrimaryKeyObj in interface PluginSettingModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<PluginSetting>getExpandoBridge in interface PluginSettingModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<PluginSetting>setExpandoBridgeAttributes in interface PluginSettingModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<PluginSetting>clone in interface PluginSettingModelclone in class Objectpublic int compareTo(PluginSetting pluginSetting)
compareTo in interface PluginSettingModelcompareTo in interface Comparable<PluginSetting>public int hashCode()
hashCode in interface PluginSettingModelhashCode in class Objectpublic String toString()
toString in interface PluginSettingModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<PluginSetting>toXmlString in interface PluginSettingModelpublic void addRole(String role)
PluginSetting
addRole in interface PluginSettingpublic String[] getRolesArray()
PluginSetting
getRolesArray in interface PluginSettingpublic void setRolesArray(String[] rolesArray)
PluginSetting
setRolesArray in interface PluginSettingpublic boolean hasRoleWithName(String roleName)
PluginSettingtrue if the plugin has a role with the specified
name.
hasRoleWithName in interface PluginSettingtrue if the plugin has a role with the specified
namepublic boolean hasPermission(long userId)
PluginSettingtrue if the user has permission to use this plugin
hasPermission in interface PluginSettingtrue if the user has permission to use this pluginpublic PluginSetting getWrappedPluginSetting()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||