@ProviderType public class CompanyWrapper extends java.lang.Object implements Company, ModelWrapper<Company>
This class is a wrapper for Company.
Company,
Serialized Form| Constructor and Description |
|---|
CompanyWrapper(Company company) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(Company company) |
boolean |
equals(java.lang.Object obj) |
Account |
getAccount() |
long |
getAccountId()
Returns the account ID of this company.
|
boolean |
getActive()
Returns the active of this company.
|
java.lang.String |
getAdminName() |
java.lang.String |
getAuthType() |
long |
getCompanyId()
Returns the company ID of this company.
|
User |
getDefaultUser() |
java.lang.String |
getDefaultWebId() |
java.lang.String |
getEmailAddress() |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
Group |
getGroup() |
long |
getGroupId() |
java.lang.String |
getHomeURL()
Returns the home u r l of this company.
|
java.lang.String |
getKey()
Returns the key of this company.
|
java.security.Key |
getKeyObj() |
java.util.Locale |
getLocale() |
long |
getLogoId()
Returns the logo ID of this company.
|
int |
getMaxUsers()
Returns the max users of this company.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.lang.String |
getMx()
Returns the mx of this company.
|
java.lang.String |
getName() |
java.lang.String |
getPortalURL(long groupId) |
long |
getPrimaryKey()
Returns the primary key of this company.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
java.lang.String |
getShardName() |
java.lang.String |
getShortName() |
boolean |
getSystem()
Returns the system of this company.
|
java.util.TimeZone |
getTimeZone() |
java.lang.String |
getVirtualHostname() |
java.lang.String |
getWebId()
Returns the web ID of this company.
|
Company |
getWrappedCompany()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
Company |
getWrappedModel() |
boolean |
hasCompanyMx(java.lang.String emailAddress) |
int |
hashCode() |
boolean |
isActive()
Returns
true if this company is active. |
boolean |
isAutoLogin() |
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 |
isSendPassword() |
boolean |
isSendPasswordResetLink() |
boolean |
isSiteLogo() |
boolean |
isStrangers() |
boolean |
isStrangersVerify() |
boolean |
isStrangersWithMx() |
boolean |
isSystem()
Returns
true if this company is system. |
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 |
setAccountId(long accountId)
Sets the account ID of this company.
|
void |
setActive(boolean active)
Sets whether this company is active.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
void |
setCompanyId(long companyId)
Sets the company ID of this company.
|
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 |
setHomeURL(java.lang.String homeURL)
Sets the home u r l of this company.
|
void |
setKey(java.lang.String key)
Sets the key of this company.
|
void |
setKeyObj(java.security.Key keyObj) |
void |
setLogoId(long logoId)
Sets the logo ID of this company.
|
void |
setMaxUsers(int maxUsers)
Sets the max users of this company.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setMx(java.lang.String mx)
Sets the mx of this company.
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this company.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setSystem(boolean system)
Sets whether this company is system.
|
void |
setVirtualHostname(java.lang.String virtualHostname) |
void |
setWebId(java.lang.String webId)
Sets the web ID of this company.
|
CacheModel<Company> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
Company |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
Company |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public CompanyWrapper(Company company)
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<Company>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Company>public long getPrimaryKey()
getPrimaryKey in interface CompanyModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CompanyModelprimaryKey - the primary key of this companypublic long getCompanyId()
getCompanyId in interface CompanyModelpublic void setCompanyId(long companyId)
setCompanyId in interface CompanyModelcompanyId - the company ID of this companypublic long getAccountId()
getAccountId in interface CompanyModelpublic void setAccountId(long accountId)
setAccountId in interface CompanyModelaccountId - the account ID of this companypublic java.lang.String getWebId()
getWebId in interface CompanyModelpublic void setWebId(java.lang.String webId)
setWebId in interface CompanyModelwebId - the web ID of this companypublic java.lang.String getKey()
getKey in interface CompanyModelpublic void setKey(java.lang.String key)
setKey in interface CompanyModelkey - the key of this companypublic java.lang.String getMx()
getMx in interface CompanyModelpublic void setMx(java.lang.String mx)
setMx in interface CompanyModelmx - the mx of this companypublic java.lang.String getHomeURL()
getHomeURL in interface CompanyModelpublic void setHomeURL(java.lang.String homeURL)
setHomeURL in interface CompanyModelhomeURL - the home u r l of this companypublic long getLogoId()
getLogoId in interface CompanyModelpublic void setLogoId(long logoId)
setLogoId in interface CompanyModellogoId - the logo ID of this companypublic boolean getSystem()
getSystem in interface CompanyModelpublic boolean isSystem()
true if this company is system.isSystem in interface CompanyModeltrue if this company is system; false otherwisepublic void setSystem(boolean system)
setSystem in interface CompanyModelsystem - the system of this companypublic int getMaxUsers()
getMaxUsers in interface CompanyModelpublic void setMaxUsers(int maxUsers)
setMaxUsers in interface CompanyModelmaxUsers - the max users of this companypublic boolean getActive()
getActive in interface CompanyModelpublic boolean isActive()
true if this company is active.isActive in interface CompanyModeltrue if this company is active; false otherwisepublic void setActive(boolean active)
setActive in interface CompanyModelactive - the active of this companypublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<Company>isNew in interface CompanyModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<Company>setNew in interface CompanyModeln - 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<Company>isCachedModel in interface CompanyModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<Company>setCachedModel in interface CompanyModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<Company>isEscapedModel in interface CompanyModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<Company>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface CompanyModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<Company>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface CompanyModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<Company>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface CompanyModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<Company>setExpandoBridgeAttributes in interface CompanyModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<Company>setExpandoBridgeAttributes in interface CompanyModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<Company>setExpandoBridgeAttributes in interface CompanyModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<Company>clone in interface CompanyModelclone in class java.lang.Objectpublic int compareTo(Company company)
compareTo in interface CompanyModelcompareTo in interface java.lang.Comparable<Company>public int hashCode()
hashCode in interface CompanyModelhashCode in class java.lang.Objectpublic CacheModel<Company> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<Company>toCacheModel in interface CompanyModelpublic Company toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<Company>toEscapedModel in interface CompanyModelAutoEscapeBeanHandlerpublic Company toUnescapedModel()
toUnescapedModel in interface BaseModel<Company>toUnescapedModel in interface CompanyModelpublic java.lang.String toString()
toString in interface CompanyModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<Company>toXmlString in interface CompanyModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic Account getAccount() throws PortalException, SystemException
getAccount in interface CompanyPortalExceptionSystemExceptionpublic java.lang.String getAdminName()
getAdminName in interface Companypublic java.lang.String getAuthType()
throws SystemException
getAuthType in interface CompanySystemExceptionpublic User getDefaultUser() throws PortalException, SystemException
getDefaultUser in interface CompanyPortalExceptionSystemExceptionpublic java.lang.String getDefaultWebId()
getDefaultWebId in interface Companypublic java.lang.String getEmailAddress()
getEmailAddress in interface Companypublic Group getGroup() throws PortalException, SystemException
getGroup in interface CompanyPortalExceptionSystemExceptionpublic long getGroupId()
throws PortalException,
SystemException
getGroupId in interface CompanyPortalExceptionSystemExceptionpublic java.util.Locale getLocale()
throws PortalException,
SystemException
getLocale in interface CompanyPortalExceptionSystemExceptionpublic java.lang.String getName()
throws PortalException,
SystemException
getName in interface CompanyPortalExceptionSystemExceptionpublic java.lang.String getPortalURL(long groupId)
throws PortalException,
SystemException
getPortalURL in interface CompanyPortalExceptionSystemExceptionpublic java.lang.String getShardName()
throws PortalException,
SystemException
getShardName in interface CompanyPortalExceptionSystemExceptionpublic java.lang.String getShortName()
throws PortalException,
SystemException
getShortName in interface CompanyPortalExceptionSystemExceptionpublic java.util.TimeZone getTimeZone()
throws PortalException,
SystemException
getTimeZone in interface CompanyPortalExceptionSystemExceptionpublic java.lang.String getVirtualHostname()
getVirtualHostname in interface Companypublic boolean hasCompanyMx(java.lang.String emailAddress)
throws SystemException
hasCompanyMx in interface CompanySystemExceptionpublic boolean isAutoLogin()
throws SystemException
isAutoLogin in interface CompanySystemExceptionpublic boolean isSendPassword()
throws SystemException
isSendPassword in interface CompanySystemExceptionpublic boolean isSendPasswordResetLink()
throws SystemException
isSendPasswordResetLink in interface CompanySystemExceptionpublic boolean isSiteLogo()
throws SystemException
isSiteLogo in interface CompanySystemExceptionpublic boolean isStrangers()
throws SystemException
isStrangers in interface CompanySystemExceptionpublic boolean isStrangersVerify()
throws SystemException
isStrangersVerify in interface CompanySystemExceptionpublic boolean isStrangersWithMx()
throws SystemException
isStrangersWithMx in interface CompanySystemExceptionpublic void setKeyObj(java.security.Key keyObj)
public void setVirtualHostname(java.lang.String virtualHostname)
setVirtualHostname in interface Companypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Company getWrappedCompany()
getWrappedModel()public Company getWrappedModel()
getWrappedModel in interface ModelWrapper<Company>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<Company>