@ProviderType public class OrganizationWrapper extends java.lang.Object implements Organization, ModelWrapper<Organization>
This class is a wrapper for Organization.
Organization,
Serialized FormNAME_ACCESSOR, ORGANIZATION_ID_ACCESSOR| Constructor and Description |
|---|
OrganizationWrapper(Organization organization) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildTreePath() |
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Organization organization) |
boolean |
equals(java.lang.Object obj) |
Address |
getAddress() |
java.util.List<Address> |
getAddresses() |
long[] |
getAncestorOrganizationIds() |
java.util.List<Organization> |
getAncestors() |
java.lang.String[] |
getChildrenTypes() |
java.lang.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.
|
java.util.Date |
getCreateDate()
Returns the create date of this organization.
|
java.util.List<Organization> |
getDescendants() |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Group |
getGroup() |
long |
getGroupId() |
long |
getLogoId()
Returns the logo ID of this organization.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this organization.
|
long |
getMvccVersion()
Returns the mvcc version of this organization.
|
java.lang.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.
|
java.lang.String |
getParentOrganizationName() |
javax.portlet.PortletPreferences |
getPreferences() |
long |
getPrimaryKey()
Returns the primary key of this organization.
|
java.io.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.
|
java.util.Set<java.lang.String> |
getReminderQueryQuestions(java.util.Locale locale) |
java.util.Set<java.lang.String> |
getReminderQueryQuestions(java.lang.String languageId) |
StagedModelType |
getStagedModelType() |
long |
getStatusId()
Returns the status ID of this organization.
|
java.util.List<Organization> |
getSuborganizations() |
int |
getSuborganizationsSize() |
java.lang.String |
getTreePath()
Returns the tree path of this organization.
|
java.lang.String |
getType()
Returns the type of this organization.
|
int |
getTypeOrder() |
long |
getUserId()
Returns the user ID of this organization.
|
java.lang.String |
getUserName()
Returns the user name of this organization.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this organization.
|
java.lang.String |
getUuid()
Returns the uuid of this organization.
|
Organization |
getWrappedModel() |
Organization |
getWrappedOrganization()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
int |
hashCode() |
boolean |
hasPrivateLayouts() |
boolean |
hasPublicLayouts() |
boolean |
hasSuborganizations() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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(java.lang.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 |
setCreateDate(java.util.Date createDate)
Sets the create date of this organization.
|
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
void |
setLogoId(long logoId)
Sets the logo ID of this organization.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this organization.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this organization.
|
void |
setName(java.lang.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(java.io.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(long statusId)
Sets the status ID of this organization.
|
void |
setTreePath(java.lang.String treePath)
Sets the tree path of this organization.
|
void |
setType(java.lang.String type)
Sets the type of this organization.
|
void |
setUserId(long userId)
Sets the user ID of this organization.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this organization.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this organization.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid 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. |
java.lang.String |
toString() |
Organization |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
void |
updateTreePath(java.lang.String treePath) |
public OrganizationWrapper(Organization organization)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<Organization>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Organization>public java.lang.String buildTreePath()
throws PortalException
buildTreePath in interface TreeModelPortalExceptionpublic java.lang.Object clone()
BaseModelclone in interface BaseModel<Organization>clone in interface OrganizationModelclone in interface StagedModelclone in class java.lang.Objectpublic int compareTo(Organization organization)
compareTo in interface OrganizationModelcompareTo in interface java.lang.Comparable<Organization>public Address getAddress()
getAddress in interface Organizationpublic java.util.List<Address> getAddresses()
getAddresses in interface Organizationpublic long[] getAncestorOrganizationIds()
throws PortalException
getAncestorOrganizationIds in interface OrganizationPortalExceptionpublic java.util.List<Organization> getAncestors() throws PortalException
getAncestors in interface OrganizationPortalExceptionpublic java.lang.String[] getChildrenTypes()
getChildrenTypes in interface Organizationpublic java.lang.String getComments()
getComments in interface OrganizationModelpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface OrganizationModelgetCompanyId in interface ShardedModelgetCompanyId in interface StagedModelpublic long getCountryId()
getCountryId in interface OrganizationModelpublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface OrganizationModelgetCreateDate in interface StagedModelpublic java.util.List<Organization> getDescendants()
getDescendants in interface Organizationpublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Organization>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface OrganizationModelpublic Group getGroup()
getGroup in interface Organizationpublic long getGroupId()
getGroupId in interface Organizationpublic long getLogoId()
getLogoId in interface OrganizationModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface OrganizationModelgetModifiedDate in interface StagedModelpublic long getMvccVersion()
getMvccVersion in interface MVCCModelgetMvccVersion in interface OrganizationModelpublic java.lang.String getName()
getName in interface OrganizationModelpublic long getOrganizationId()
getOrganizationId in interface OrganizationModelpublic Organization getParentOrganization() throws PortalException
getParentOrganization in interface OrganizationPortalExceptionpublic long getParentOrganizationId()
getParentOrganizationId in interface OrganizationModelpublic java.lang.String getParentOrganizationName()
getParentOrganizationName in interface Organizationpublic javax.portlet.PortletPreferences getPreferences()
getPreferences in interface Organizationpublic long getPrimaryKey()
getPrimaryKey in interface OrganizationModelpublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Organization>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface OrganizationModelgetPrimaryKeyObj in interface TreeModelpublic int getPrivateLayoutsPageCount()
getPrivateLayoutsPageCount in interface Organizationpublic int getPublicLayoutsPageCount()
getPublicLayoutsPageCount in interface Organizationpublic boolean getRecursable()
getRecursable in interface OrganizationModelpublic long getRegionId()
getRegionId in interface OrganizationModelpublic java.util.Set<java.lang.String> getReminderQueryQuestions(java.lang.String languageId)
getReminderQueryQuestions in interface Organizationpublic java.util.Set<java.lang.String> getReminderQueryQuestions(java.util.Locale locale)
getReminderQueryQuestions in interface Organizationpublic long getStatusId()
getStatusId in interface OrganizationModelpublic java.util.List<Organization> getSuborganizations()
getSuborganizations in interface Organizationpublic int getSuborganizationsSize()
getSuborganizationsSize in interface Organizationpublic java.lang.String getTreePath()
getTreePath in interface OrganizationModelgetTreePath in interface TreeModelpublic java.lang.String getType()
getType in interface OrganizationModelpublic int getTypeOrder()
getTypeOrder in interface Organizationpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface OrganizationModelpublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface OrganizationModelpublic java.lang.String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface OrganizationModelpublic java.lang.String getUuid()
getUuid in interface OrganizationModelgetUuid in interface StagedModelpublic boolean hasPrivateLayouts()
hasPrivateLayouts in interface Organizationpublic boolean hasPublicLayouts()
hasPublicLayouts in interface Organizationpublic boolean hasSuborganizations()
hasSuborganizations in interface Organizationpublic int hashCode()
hashCode in interface OrganizationModelhashCode in class java.lang.Objectpublic 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 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 otherwisepublic 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 boolean isParentable()
isParentable in interface Organizationpublic boolean isRecursable()
true if this organization is recursable.isRecursable in interface OrganizationModeltrue if this organization is recursable; false otherwisepublic boolean isRoot()
isRoot in interface Organizationpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<Organization>setCachedModel in interface OrganizationModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setComments(java.lang.String comments)
setComments in interface OrganizationModelcomments - the comments of this organizationpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface OrganizationModelsetCompanyId in interface ShardedModelsetCompanyId in interface StagedModelcompanyId - the company ID of this organizationpublic void setCountryId(long countryId)
setCountryId in interface OrganizationModelcountryId - the country ID of this organizationpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface OrganizationModelsetCreateDate in interface StagedModelcreateDate - the create date of this organizationpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Organization>setExpandoBridgeAttributes in interface OrganizationModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Organization>setExpandoBridgeAttributes in interface OrganizationModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Organization>setExpandoBridgeAttributes in interface OrganizationModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setLogoId(long logoId)
setLogoId in interface OrganizationModellogoId - the logo ID of this organizationpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface OrganizationModelsetModifiedDate in interface StagedModelmodifiedDate - the modified date of this organizationpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelsetMvccVersion in interface OrganizationModelmvccVersion - the mvcc version of this organizationpublic void setName(java.lang.String name)
setName in interface OrganizationModelname - the name of this organizationpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<Organization>setNew in interface OrganizationModeln - whether this model instance does not yet exist in the databasepublic void setOrganizationId(long organizationId)
setOrganizationId in interface OrganizationModelorganizationId - the organization ID of this organizationpublic void setParentOrganizationId(long parentOrganizationId)
setParentOrganizationId in interface OrganizationModelparentOrganizationId - the parent organization ID of this organizationpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface OrganizationModelprimaryKey - the primary key of this organizationpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Organization>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface OrganizationModelprimaryKeyObj - the primary key of this model instancepublic void setRecursable(boolean recursable)
setRecursable in interface OrganizationModelrecursable - the recursable of this organizationpublic void setRegionId(long regionId)
setRegionId in interface OrganizationModelregionId - the region ID of this organizationpublic void setStatusId(long statusId)
setStatusId in interface OrganizationModelstatusId - the status ID of this organizationpublic void setTreePath(java.lang.String treePath)
setTreePath in interface OrganizationModeltreePath - the tree path of this organizationpublic void setType(java.lang.String type)
setType in interface OrganizationModeltype - the type of this organizationpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface OrganizationModeluserId - the user ID of this organizationpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface OrganizationModeluserName - the user name of this organizationpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface OrganizationModeluserUuid - the user uuid of this organizationpublic void setUuid(java.lang.String uuid)
setUuid in interface OrganizationModelsetUuid in interface StagedModeluuid - the uuid of this organizationpublic CacheModel<Organization> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Organization>toCacheModel in interface OrganizationModelpublic Organization toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Organization>toEscapedModel in interface OrganizationModelAutoEscapeBeanHandlerpublic java.lang.String toString()
toString in interface OrganizationModeltoString in class java.lang.Objectpublic Organization toUnescapedModel()
toUnescapedModel in interface BaseModel<Organization>toUnescapedModel in interface OrganizationModelpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<Organization>toXmlString in interface OrganizationModelpublic void updateTreePath(java.lang.String treePath)
updateTreePath in interface TreeModelpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic StagedModelType getStagedModelType()
getStagedModelType in interface StagedModel@Deprecated public Organization getWrappedOrganization()
getWrappedModel()public Organization getWrappedModel()
getWrappedModel in interface ModelWrapper<Organization>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<Organization>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<Organization>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Organization>