Liferay 6.0-ee

com.liferay.portal.model
Class OrganizationWrapper

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

public class OrganizationWrapper
extends Object
implements Organization

This class is a wrapper for Organization.

See Also:
Organization, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
OrganizationWrapper(Organization organization)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(Organization organization)
           
 Address getAddress()
           
 List<Address> getAddresses()
           
 List<Organization> getAncestors()
           
 String[] getChildrenTypes()
           
 String getComments()
          Gets the comments of this organization.
 long getCompanyId()
          Gets the company id of this organization.
 long getCountryId()
          Gets the country id of this organization.
 List<Organization> getDescendants()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 Group getGroup()
           
 long getLeftOrganizationId()
          Gets the left organization id of this organization.
 long getLogoId()
           
 String getName()
          Gets the name of this organization.
 long getOrganizationId()
          Gets the organization id of this organization.
 Organization getParentOrganization()
           
 long getParentOrganizationId()
          Gets the parent organization id of this organization.
 PortletPreferences getPreferences()
           
 long getPrimaryKey()
          Gets the primary key of this organization.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 int getPrivateLayoutsPageCount()
           
 int getPublicLayoutsPageCount()
           
 boolean getRecursable()
          Gets the recursable of this organization.
 long getRegionId()
          Gets the region id of this organization.
 Set<String> getReminderQueryQuestions(Locale locale)
           
 Set<String> getReminderQueryQuestions(String languageId)
           
 long getRightOrganizationId()
          Gets the right organization id of this organization.
 int getStatusId()
          Gets the status id of this organization.
 List<Organization> getSuborganizations()
           
 int getSuborganizationsSize()
           
 String getType()
          Gets the type of this organization.
 int getTypeOrder()
           
 Organization getWrappedOrganization()
           
 int hashCode()
           
 boolean hasPrivateLayouts()
           
 boolean hasPublicLayouts()
           
 boolean hasSuborganizations()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 boolean isParentable()
           
 boolean isRecursable()
          Determines whether this organization is recursable.
 boolean isRoot()
           
 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 setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setLeftOrganizationId(long leftOrganizationId)
          Sets the left organization id of this organization.
 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 pk)
          Sets the primary key of this organization
 void setRecursable(boolean recursable)
          Sets whether this {$entity.humanName} is recursable.
 void setRegionId(long regionId)
          Sets the region id of this organization.
 void setRightOrganizationId(long rightOrganizationId)
          Sets the right organization id of this organization.
 void setStatusId(int statusId)
          Sets the status id of this organization.
 void setType(String type)
          Sets the type of this organization.
 Organization toEscapedModel()
          Gets a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 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

OrganizationWrapper

public OrganizationWrapper(Organization organization)
Method Detail

getPrimaryKey

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

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

setPrimaryKey

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

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

getOrganizationId

public long getOrganizationId()
Gets 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()
Gets 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()
Gets 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

getLeftOrganizationId

public long getLeftOrganizationId()
Gets the left organization id of this organization.

Specified by:
getLeftOrganizationId in interface OrganizationModel
Returns:
the left organization id of this organization

setLeftOrganizationId

public void setLeftOrganizationId(long leftOrganizationId)
Sets the left organization id of this organization.

Specified by:
setLeftOrganizationId in interface OrganizationModel
Parameters:
leftOrganizationId - the left organization id of this organization

getRightOrganizationId

public long getRightOrganizationId()
Gets the right organization id of this organization.

Specified by:
getRightOrganizationId in interface OrganizationModel
Returns:
the right organization id of this organization

setRightOrganizationId

public void setRightOrganizationId(long rightOrganizationId)
Sets the right organization id of this organization.

Specified by:
setRightOrganizationId in interface OrganizationModel
Parameters:
rightOrganizationId - the right organization id of this organization

getName

public String getName()
Gets 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()
Gets 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()
Gets the recursable of this organization.

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

isRecursable

public boolean isRecursable()
Determines whether this organization is recursable.

Specified by:
isRecursable in interface OrganizationModel
Returns:
whether this organization is recursable

setRecursable

public void setRecursable(boolean recursable)
Sets whether this {$entity.humanName} is recursable.

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

getRegionId

public long getRegionId()
Gets 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()
Gets 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()
Gets 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()
Gets 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
Determines 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
Determines 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
Determines 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
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<Organization>
Specified by:
setEscapedModel in interface OrganizationModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

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

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<Organization>
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 to retrieve the expando bridge attributes from
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

toEscapedModel

public Organization toEscapedModel()
Description copied from interface: BaseModel
Gets 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

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets 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

getAncestors

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

getParentOrganization

public Organization getParentOrganization()
                                   throws PortalException,
                                          SystemException
Specified by:
getParentOrganization 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

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

getLogoId

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

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

getWrappedOrganization

public Organization getWrappedOrganization()

Liferay 6.0-ee