Liferay 6.0.3

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 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()
           
 long getCompanyId()
           
 long getCountryId()
           
 List<Organization> getDescendants()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 Group getGroup()
           
 long getLeftOrganizationId()
           
 long getLogoId()
           
 String getName()
           
 long getOrganizationId()
           
 Organization getParentOrganization()
           
 long getParentOrganizationId()
           
 PortletPreferences getPreferences()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
          Gets the primary key for this model instance.
 int getPrivateLayoutsPageCount()
           
 int getPublicLayoutsPageCount()
           
 boolean getRecursable()
           
 long getRegionId()
           
 Set<String> getReminderQueryQuestions(Locale locale)
           
 Set<String> getReminderQueryQuestions(String languageId)
           
 long getRightOrganizationId()
           
 int getStatusId()
           
 List<Organization> getSuborganizations()
           
 int getSuborganizationsSize()
           
 String getType()
           
 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 has been wrapped with an HTML auto escape handler.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 boolean isParentable()
           
 boolean isRecursable()
           
 boolean isRoot()
           
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setComments(String comments)
           
 void setCompanyId(long companyId)
           
 void setCountryId(long countryId)
           
 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 setLeftOrganizationId(long leftOrganizationId)
           
 void setName(String name)
           
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setOrganizationId(long organizationId)
           
 void setParentOrganizationId(long parentOrganizationId)
           
 void setPrimaryKey(long pk)
           
 void setRecursable(boolean recursable)
           
 void setRegionId(long regionId)
           
 void setRightOrganizationId(long rightOrganizationId)
           
 void setStatusId(int statusId)
           
 void setType(String type)
           
 Organization 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

OrganizationWrapper

public OrganizationWrapper(Organization organization)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface OrganizationModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface OrganizationModel

getOrganizationId

public long getOrganizationId()
Specified by:
getOrganizationId in interface OrganizationModel

setOrganizationId

public void setOrganizationId(long organizationId)
Specified by:
setOrganizationId in interface OrganizationModel

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface OrganizationModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface OrganizationModel

getParentOrganizationId

public long getParentOrganizationId()
Specified by:
getParentOrganizationId in interface OrganizationModel

setParentOrganizationId

public void setParentOrganizationId(long parentOrganizationId)
Specified by:
setParentOrganizationId in interface OrganizationModel

getLeftOrganizationId

public long getLeftOrganizationId()
Specified by:
getLeftOrganizationId in interface OrganizationModel

setLeftOrganizationId

public void setLeftOrganizationId(long leftOrganizationId)
Specified by:
setLeftOrganizationId in interface OrganizationModel

getRightOrganizationId

public long getRightOrganizationId()
Specified by:
getRightOrganizationId in interface OrganizationModel

setRightOrganizationId

public void setRightOrganizationId(long rightOrganizationId)
Specified by:
setRightOrganizationId in interface OrganizationModel

getName

public String getName()
Specified by:
getName in interface OrganizationModel

setName

public void setName(String name)
Specified by:
setName in interface OrganizationModel

getType

public String getType()
Specified by:
getType in interface OrganizationModel

setType

public void setType(String type)
Specified by:
setType in interface OrganizationModel

getRecursable

public boolean getRecursable()
Specified by:
getRecursable in interface OrganizationModel

isRecursable

public boolean isRecursable()
Specified by:
isRecursable in interface OrganizationModel

setRecursable

public void setRecursable(boolean recursable)
Specified by:
setRecursable in interface OrganizationModel

getRegionId

public long getRegionId()
Specified by:
getRegionId in interface OrganizationModel

setRegionId

public void setRegionId(long regionId)
Specified by:
setRegionId in interface OrganizationModel

getCountryId

public long getCountryId()
Specified by:
getCountryId in interface OrganizationModel

setCountryId

public void setCountryId(long countryId)
Specified by:
setCountryId in interface OrganizationModel

getStatusId

public int getStatusId()
Specified by:
getStatusId in interface OrganizationModel

setStatusId

public void setStatusId(int statusId)
Specified by:
setStatusId in interface OrganizationModel

getComments

public String getComments()
Specified by:
getComments in interface OrganizationModel

setComments

public void setComments(String comments)
Specified by:
setComments in interface OrganizationModel

toEscapedModel

public Organization toEscapedModel()
Specified by:
toEscapedModel in interface OrganizationModel

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 has been wrapped with an HTML auto escape handler.

Specified by:
isEscapedModel in interface BaseModel<Organization>
Specified by:
isEscapedModel in interface OrganizationModel
Returns:
true if this model instance has been wrapped with an HTML auto escape handler; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance has been wrapped with an HTML auto escape handler.

A model instance can be wrapped 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 has been wrapped with an HTML auto escape handler
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<Organization>
Specified by:
getPrimaryKeyObj in interface OrganizationModel
Returns:
the primary key

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

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 clone

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

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.3