Package com.liferay.portlet
Class PortletPreferencesImpl
Object
com.liferay.portlet.PortletPreferencesImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,PortletPreferences
- Direct Known Subclasses:
StrictPortletPreferencesImpl
public class PortletPreferencesImpl
extends Object
implements Cloneable, PortletPreferences, Serializable
- Author:
- Brian Wing Shun Chan, Alexander Chow
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPortletPreferencesImpl
(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml, Map<String, Preference> preferences) PortletPreferencesImpl
(String xml, Map<String, Preference> preferences) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
protected long
getMap()
protected Map<String,
Preference> getNames()
protected Map<String,
Preference> protected String
long
int
long
getPlid()
protected String
String[]
int
hashCode()
boolean
isReadOnly
(String key) void
void
setPlid
(long plid) void
void
int
size()
void
store()
protected String
toXML()
-
Constructor Details
-
PortletPreferencesImpl
public PortletPreferencesImpl() -
PortletPreferencesImpl
public PortletPreferencesImpl(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml, Map<String, Preference> preferences) -
PortletPreferencesImpl
-
-
Method Details
-
clone
-
equals
-
getMap
- Specified by:
getMap
in interfacePortletPreferences
-
getNames
- Specified by:
getNames
in interfacePortletPreferences
-
getOwnerId
public long getOwnerId() -
getOwnerType
public int getOwnerType() -
getPlid
public long getPlid() -
getPreferences
-
getValue
- Specified by:
getValue
in interfacePortletPreferences
-
getValues
- Specified by:
getValues
in interfacePortletPreferences
-
hashCode
public int hashCode() -
isReadOnly
- Specified by:
isReadOnly
in interfacePortletPreferences
-
reset
- Specified by:
reset
in interfacePortletPreferences
- Throws:
ReadOnlyException
-
setPlid
public void setPlid(long plid) -
setValue
- Specified by:
setValue
in interfacePortletPreferences
- Throws:
ReadOnlyException
-
setValues
- Specified by:
setValues
in interfacePortletPreferences
- Throws:
ReadOnlyException
-
size
public int size() -
store
- Specified by:
store
in interfacePortletPreferences
- Throws:
IOException
ValidatorException
-
getCompanyId
protected long getCompanyId() -
getModifiedPreferences
-
getOriginalPreferences
-
getOriginalXML
-
getPortletId
-
toXML
-