Liferay 6.1.2-ce-ga3

com.liferay.portal.model
Class OrganizationWrapper

java.lang.Object
  extended by com.liferay.portal.model.OrganizationWrapper
All Implemented Interfaces:
BaseModel<Organization>, ClassedModel, ModelWrapper<Organization>, Organization, OrganizationModel, PersistedModel, Serializable, Cloneable, Comparable<Organization>

public class OrganizationWrapper
extends Object
implements Organization, ModelWrapper<Organization>

This class is a wrapper for Organization.

See Also:
Organization, Serialized Form

Field Summary
 
Fields inherited from interface com.liferay.portal.model.Organization
NAME_ACCESSOR
 
Constructor Summary
OrganizationWrapper(Organization organization)
           
 
Method Summary
 String buildTreePath()
           
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Organization organization)
           
 boolean equals(Object obj)
           
 Address getAddress()
           
 List<Address> getAddresses()
           
 List<Organization> getAncestors()
           
 String[] getChildrenTypes()
           
 String getComments()
          Returns the comments of this organization.
 long getCompanyId()
          Returns the company ID of this organization.
 long getCountryId()
          Returns the country ID of this organization.
 List<Organization> getDescendants()
           
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Group getGroup()
           
 long getGroupId()
           
 long getLogoId()
           
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this organization.
 long getOrganizationId()
          Returns the organization ID of this organization.
 Organization getParentOrganization()
           
 long getParentOrganizationId()
          Returns the parent organization ID of this organization.
 PortletPreferences getPreferences()
           
 long getPrimaryKey()
          Returns the primary key of this organization.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getPrivateLayoutsPageCount()
           
 int getPublicLayoutsPageCount()
           
 boolean getRecursable()
          Returns the recursable of this organization.
 long getRegionId()
          Returns the region ID of this organization.
 Set<String> getReminderQueryQuestions(Locale locale)
           
 Set<String> getReminderQueryQuestions(String languageId)
           
 int getStatusId()
          Returns the status ID of this organization.
 List<Organization> getSuborganizations()
           
 int getSuborganizationsSize()
           
 String getTreePath()
          Returns the tree path of this organization.
 String getType()
          Returns the type of this organization.
 int getTypeOrder()
           
 Organization getWrappedModel()
           
 Organization getWrappedOrganization()
          Deprecated. Renamed to getWrappedModel()
 int hashCode()
           
 boolean hasPrivateLayouts()
           
 boolean hasPublicLayouts()
           
 boolean hasSuborganizations()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 boolean isParentable()
           
 boolean isRecursable()
          Returns true if this organization is recursable.
 boolean isRoot()
           
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setComments(String comments)
          Sets the comments of this organization.
 void setCompanyId(long companyId)
          Sets the company ID of this organization.
 void setCountryId(long countryId)
          Sets the country ID of this organization.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this organization.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setOrganizationId(long organizationId)
          Sets the organization ID of this organization.
 void setParentOrganizationId(long parentOrganizationId)
          Sets the parent organization ID of this organization.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this organization.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRecursable(boolean recursable)
          Sets whether this organization is recursable.
 void setRegionId(long regionId)
          Sets the region ID of this organization.
 void setStatusId(int statusId)
          Sets the status ID of this organization.
 void setTreePath(String treePath)
          Sets the tree path of this organization.
 void setType(String type)
          Sets the type of this organization.
 CacheModel<Organization> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 Organization toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 Organization toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrganizationWrapper

public OrganizationWrapper(Organization organization)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<Organization>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<Organization>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this organization.

Specified by:
getPrimaryKey in interface OrganizationModel
Returns:
the primary key of this organization

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this organization.

Specified by:
setPrimaryKey in interface OrganizationModel
Parameters:
primaryKey - the primary key of this organization

getOrganizationId

public long getOrganizationId()
Returns the organization ID of this organization.

Specified by:
getOrganizationId in interface OrganizationModel
Returns:
the organization ID of this organization

setOrganizationId

public void setOrganizationId(long organizationId)
Sets the organization ID of this organization.

Specified by:
setOrganizationId in interface OrganizationModel
Parameters:
organizationId - the organization ID of this organization

getCompanyId

public long getCompanyId()
Returns the company ID of this organization.

Specified by:
getCompanyId in interface OrganizationModel
Returns:
the company ID of this organization

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this organization.

Specified by:
setCompanyId in interface OrganizationModel
Parameters:
companyId - the company ID of this organization

getParentOrganizationId

public long getParentOrganizationId()
Returns the parent organization ID of this organization.

Specified by:
getParentOrganizationId in interface OrganizationModel
Returns:
the parent organization ID of this organization

setParentOrganizationId

public void setParentOrganizationId(long parentOrganizationId)
Sets the parent organization ID of this organization.

Specified by:
setParentOrganizationId in interface OrganizationModel
Parameters:
parentOrganizationId - the parent organization ID of this organization

getTreePath

public String getTreePath()
Returns the tree path of this organization.

Specified by:
getTreePath in interface OrganizationModel
Returns:
the tree path of this organization

setTreePath

public void setTreePath(String treePath)
Sets the tree path of this organization.

Specified by:
setTreePath in interface OrganizationModel
Parameters:
treePath - the tree path of this organization

getName

public String getName()
Returns the name of this organization.

Specified by:
getName in interface OrganizationModel
Returns:
the name of this organization

setName

public void setName(String name)
Sets the name of this organization.

Specified by:
setName in interface OrganizationModel
Parameters:
name - the name of this organization

getType

public String getType()
Returns the type of this organization.

Specified by:
getType in interface OrganizationModel
Returns:
the type of this organization

setType

public void setType(String type)
Sets the type of this organization.

Specified by:
setType in interface OrganizationModel
Parameters:
type - the type of this organization

getRecursable

public boolean getRecursable()
Returns the recursable of this organization.

Specified by:
getRecursable in interface OrganizationModel
Returns:
the recursable of this organization

isRecursable

public boolean isRecursable()
Returns true if this organization is recursable.

Specified by:
isRecursable in interface OrganizationModel
Returns:
true if this organization is recursable; false otherwise

setRecursable

public void setRecursable(boolean recursable)
Sets whether this organization is recursable.

Specified by:
setRecursable in interface OrganizationModel
Parameters:
recursable - the recursable of this organization

getRegionId

public long getRegionId()
Returns the region ID of this organization.

Specified by:
getRegionId in interface OrganizationModel
Returns:
the region ID of this organization

setRegionId

public void setRegionId(long regionId)
Sets the region ID of this organization.

Specified by:
setRegionId in interface OrganizationModel
Parameters:
regionId - the region ID of this organization

getCountryId

public long getCountryId()
Returns the country ID of this organization.

Specified by:
getCountryId in interface OrganizationModel
Returns:
the country ID of this organization

setCountryId

public void setCountryId(long countryId)
Sets the country ID of this organization.

Specified by:
setCountryId in interface OrganizationModel
Parameters:
countryId - the country ID of this organization

getStatusId

public int getStatusId()
Returns the status ID of this organization.

Specified by:
getStatusId in interface OrganizationModel
Returns:
the status ID of this organization

setStatusId

public void setStatusId(int statusId)
Sets the status ID of this organization.

Specified by:
setStatusId in interface OrganizationModel
Parameters:
statusId - the status ID of this organization

getComments

public String getComments()
Returns the comments of this organization.

Specified by:
getComments in interface OrganizationModel
Returns:
the comments of this organization

setComments

public void setComments(String comments)
Sets the comments of this organization.

Specified by:
setComments in interface OrganizationModel
Parameters:
comments - the comments of this organization

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<Organization>
Specified by:
isNew in interface OrganizationModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<Organization>
Specified by:
setNew in interface OrganizationModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<Organization>
Specified by:
isCachedModel in interface OrganizationModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<Organization>
Specified by:
setCachedModel in interface OrganizationModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<Organization>
Specified by:
isEscapedModel in interface OrganizationModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<Organization>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface OrganizationModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<Organization>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface OrganizationModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<Organization>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface OrganizationModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<Organization>
Specified by:
setExpandoBridgeAttributes in interface OrganizationModel
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<Organization>
Specified by:
clone in interface OrganizationModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(Organization organization)
Specified by:
compareTo in interface OrganizationModel
Specified by:
compareTo in interface Comparable<Organization>

hashCode

public int hashCode()
Specified by:
hashCode in interface OrganizationModel
Overrides:
hashCode in class Object

toCacheModel

public CacheModel<Organization> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<Organization>
Specified by:
toCacheModel in interface OrganizationModel
Returns:
the cache model object

toEscapedModel

public Organization toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<Organization>
Specified by:
toEscapedModel in interface OrganizationModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public Organization toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<Organization>
Specified by:
toUnescapedModel in interface OrganizationModel

toString

public String toString()
Specified by:
toString in interface OrganizationModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<Organization>
Specified by:
toXmlString in interface OrganizationModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

buildTreePath

public String buildTreePath()
                     throws PortalException,
                            SystemException
Specified by:
buildTreePath in interface Organization
Throws:
PortalException
SystemException

getAddress

public Address getAddress()
Specified by:
getAddress in interface Organization

getAddresses

public List<Address> getAddresses()
                           throws SystemException
Specified by:
getAddresses in interface Organization
Throws:
SystemException

getAncestors

public List<Organization> getAncestors()
                                throws PortalException,
                                       SystemException
Specified by:
getAncestors in interface Organization
Throws:
PortalException
SystemException

getChildrenTypes

public String[] getChildrenTypes()
Specified by:
getChildrenTypes in interface Organization

getDescendants

public List<Organization> getDescendants()
                                  throws SystemException
Specified by:
getDescendants in interface Organization
Throws:
SystemException

getGroup

public Group getGroup()
Specified by:
getGroup in interface Organization

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface Organization

getLogoId

public long getLogoId()
Specified by:
getLogoId in interface Organization

getParentOrganization

public Organization getParentOrganization()
                                   throws PortalException,
                                          SystemException
Specified by:
getParentOrganization in interface Organization
Throws:
PortalException
SystemException

getPreferences

public PortletPreferences getPreferences()
                                  throws SystemException
Specified by:
getPreferences in interface Organization
Throws:
SystemException

getPrivateLayoutsPageCount

public int getPrivateLayoutsPageCount()
Specified by:
getPrivateLayoutsPageCount in interface Organization

getPublicLayoutsPageCount

public int getPublicLayoutsPageCount()
Specified by:
getPublicLayoutsPageCount in interface Organization

getReminderQueryQuestions

public Set<String> getReminderQueryQuestions(Locale locale)
                                      throws SystemException
Specified by:
getReminderQueryQuestions in interface Organization
Throws:
SystemException

getReminderQueryQuestions

public Set<String> getReminderQueryQuestions(String languageId)
                                      throws SystemException
Specified by:
getReminderQueryQuestions in interface Organization
Throws:
SystemException

getSuborganizations

public List<Organization> getSuborganizations()
                                       throws SystemException
Specified by:
getSuborganizations in interface Organization
Throws:
SystemException

getSuborganizationsSize

public int getSuborganizationsSize()
                            throws SystemException
Specified by:
getSuborganizationsSize in interface Organization
Throws:
SystemException

getTypeOrder

public int getTypeOrder()
Specified by:
getTypeOrder in interface Organization

hasPrivateLayouts

public boolean hasPrivateLayouts()
Specified by:
hasPrivateLayouts in interface Organization

hasPublicLayouts

public boolean hasPublicLayouts()
Specified by:
hasPublicLayouts in interface Organization

hasSuborganizations

public boolean hasSuborganizations()
                            throws SystemException
Specified by:
hasSuborganizations in interface Organization
Throws:
SystemException

isParentable

public boolean isParentable()
Specified by:
isParentable in interface Organization

isRoot

public boolean isRoot()
Specified by:
isRoot in interface Organization

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedOrganization

public Organization getWrappedOrganization()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public Organization getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<Organization>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<Organization>

Liferay 6.1.2-ce-ga3