|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.OrganizationWrapper
public class OrganizationWrapper
This class is a wrapper for Organization.
Organization,
Serialized Form| 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()
Returns the expando bridge for this model instance. |
Group |
getGroup()
|
long |
getLeftOrganizationId()
Gets the left organization ID of this organization. |
long |
getLogoId()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
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()
Returns 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()
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()
Determines 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 |
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 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 |
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. |
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()
|
String |
toXmlString()
Returns 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 OrganizationWrapper(Organization organization)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic long getPrimaryKey()
getPrimaryKey in interface OrganizationModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface OrganizationModelprimaryKey - the primary key of this organizationpublic long getOrganizationId()
getOrganizationId in interface OrganizationModelpublic void setOrganizationId(long organizationId)
setOrganizationId in interface OrganizationModelorganizationId - the organization ID of this organizationpublic long getCompanyId()
getCompanyId in interface OrganizationModelpublic void setCompanyId(long companyId)
setCompanyId in interface OrganizationModelcompanyId - the company ID of this organizationpublic long getParentOrganizationId()
getParentOrganizationId in interface OrganizationModelpublic void setParentOrganizationId(long parentOrganizationId)
setParentOrganizationId in interface OrganizationModelparentOrganizationId - the parent organization ID of this organizationpublic long getLeftOrganizationId()
getLeftOrganizationId in interface OrganizationModelpublic void setLeftOrganizationId(long leftOrganizationId)
setLeftOrganizationId in interface OrganizationModelleftOrganizationId - the left organization ID of this organizationpublic long getRightOrganizationId()
getRightOrganizationId in interface OrganizationModelpublic void setRightOrganizationId(long rightOrganizationId)
setRightOrganizationId in interface OrganizationModelrightOrganizationId - the right organization ID of this organizationpublic String getName()
getName in interface OrganizationModelpublic void setName(String name)
setName in interface OrganizationModelname - the name of this organizationpublic String getType()
getType in interface OrganizationModelpublic void setType(String type)
setType in interface OrganizationModeltype - the type of this organizationpublic boolean getRecursable()
getRecursable in interface OrganizationModelpublic boolean isRecursable()
isRecursable in interface OrganizationModeltrue if this organization is recursable; false otherwisepublic void setRecursable(boolean recursable)
setRecursable in interface OrganizationModelrecursable - the recursable of this organizationpublic long getRegionId()
getRegionId in interface OrganizationModelpublic void setRegionId(long regionId)
setRegionId in interface OrganizationModelregionId - the region ID of this organizationpublic long getCountryId()
getCountryId in interface OrganizationModelpublic void setCountryId(long countryId)
setCountryId in interface OrganizationModelcountryId - the country ID of this organizationpublic int getStatusId()
getStatusId in interface OrganizationModelpublic void setStatusId(int statusId)
setStatusId in interface OrganizationModelstatusId - the status ID of this organizationpublic String getComments()
getComments in interface OrganizationModelpublic void setComments(String comments)
setComments in interface OrganizationModelcomments - the comments of this organizationpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<Organization>isNew in interface OrganizationModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<Organization>setNew in interface OrganizationModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<Organization>isCachedModel in interface OrganizationModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<Organization>setCachedModel in interface OrganizationModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<Organization>isEscapedModel in interface OrganizationModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<Organization>setEscapedModel in interface OrganizationModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<Organization>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface OrganizationModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<Organization>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface OrganizationModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<Organization>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface OrganizationModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<Organization>setExpandoBridgeAttributes in interface OrganizationModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<Organization>clone in interface OrganizationModelclone in class Objectpublic int compareTo(Organization organization)
compareTo in interface OrganizationModelcompareTo in interface Comparable<Organization>public int hashCode()
hashCode in interface OrganizationModelhashCode in class Objectpublic CacheModel<Organization> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<Organization>toCacheModel in interface OrganizationModelpublic Organization toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<Organization>toEscapedModel in interface OrganizationModelAutoEscapeBeanHandlerpublic String toString()
toString in interface OrganizationModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<Organization>toXmlString in interface OrganizationModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public List<Organization> getAncestors()
throws PortalException,
SystemException
getAncestors in interface OrganizationPortalException
SystemException
public Organization getParentOrganization()
throws PortalException,
SystemException
getParentOrganization in interface OrganizationPortalException
SystemExceptionpublic Address getAddress()
getAddress in interface Organization
public List<Address> getAddresses()
throws SystemException
getAddresses in interface OrganizationSystemExceptionpublic String[] getChildrenTypes()
getChildrenTypes in interface Organization
public List<Organization> getDescendants()
throws SystemException
getDescendants in interface OrganizationSystemExceptionpublic Group getGroup()
getGroup in interface Organizationpublic long getLogoId()
getLogoId in interface Organization
public PortletPreferences getPreferences()
throws SystemException
getPreferences in interface OrganizationSystemExceptionpublic int getPrivateLayoutsPageCount()
getPrivateLayoutsPageCount in interface Organizationpublic int getPublicLayoutsPageCount()
getPublicLayoutsPageCount in interface Organization
public Set<String> getReminderQueryQuestions(Locale locale)
throws SystemException
getReminderQueryQuestions in interface OrganizationSystemException
public Set<String> getReminderQueryQuestions(String languageId)
throws SystemException
getReminderQueryQuestions in interface OrganizationSystemException
public List<Organization> getSuborganizations()
throws SystemException
getSuborganizations in interface OrganizationSystemException
public int getSuborganizationsSize()
throws SystemException
getSuborganizationsSize in interface OrganizationSystemExceptionpublic int getTypeOrder()
getTypeOrder in interface Organizationpublic boolean hasPrivateLayouts()
hasPrivateLayouts in interface Organizationpublic boolean hasPublicLayouts()
hasPublicLayouts in interface Organization
public boolean hasSuborganizations()
throws SystemException
hasSuborganizations in interface OrganizationSystemExceptionpublic boolean isParentable()
isParentable in interface Organizationpublic boolean isRoot()
isRoot in interface Organizationpublic Organization getWrappedOrganization()
public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<Organization>
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||