com.liferay.portal.model.impl
Class OrganizationImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Organization>
      extended by com.liferay.portal.model.impl.OrganizationModelImpl
          extended by com.liferay.portal.model.impl.OrganizationBaseImpl
              extended by com.liferay.portal.model.impl.OrganizationImpl
All Implemented Interfaces:
com.liferay.portal.model.BaseModel<com.liferay.portal.model.Organization>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.Organization, com.liferay.portal.model.OrganizationModel, com.liferay.portal.model.PersistedModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portal.model.Organization>

public class OrganizationImpl
extends OrganizationBaseImpl

Author:
Brian Wing Shun Chan, Jorge Ferrer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.liferay.portal.model.impl.OrganizationModelImpl
COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, FINDER_CACHE_ENABLED_GROUPS_ORGS, FINDER_CACHE_ENABLED_USERS_ORGS, LOCK_EXPIRATION_TIME, MAPPING_TABLE_GROUPS_ORGS_COLUMNS, MAPPING_TABLE_GROUPS_ORGS_NAME, MAPPING_TABLE_GROUPS_ORGS_SQL_CREATE, MAPPING_TABLE_USERS_ORGS_COLUMNS, MAPPING_TABLE_USERS_ORGS_NAME, MAPPING_TABLE_USERS_ORGS_SQL_CREATE, NAME_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, PARENTORGANIZATIONID_COLUMN_BITMASK, SESSION_FACTORY, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
 
Fields inherited from interface com.liferay.portal.model.Organization
NAME_ACCESSOR
 
Constructor Summary
OrganizationImpl()
           
 
Method Summary
 java.lang.String buildTreePath()
           
protected  void buildTreePath(com.liferay.portal.kernel.util.StringBundler sb, com.liferay.portal.model.Organization organization)
           
 com.liferay.portal.model.Address getAddress()
           
 java.util.List<com.liferay.portal.model.Address> getAddresses()
           
 java.util.List<com.liferay.portal.model.Organization> getAncestors()
           
 java.lang.String[] getChildrenTypes()
           
static java.lang.String[] getChildrenTypes(java.lang.String type)
           
 java.util.List<com.liferay.portal.model.Organization> getDescendants()
           
 com.liferay.portal.model.Group getGroup()
           
 long getGroupId()
           
 long getLogoId()
           
 com.liferay.portal.model.Organization getParentOrganization()
           
static java.lang.String[] getParentTypes(java.lang.String type)
           
 javax.portlet.PortletPreferences getPreferences()
           
 int getPrivateLayoutsPageCount()
           
 int getPublicLayoutsPageCount()
           
 java.util.Set<java.lang.String> getReminderQueryQuestions(java.util.Locale locale)
           
 java.util.Set<java.lang.String> getReminderQueryQuestions(java.lang.String languageId)
           
 java.util.List<com.liferay.portal.model.Organization> getSuborganizations()
           
 int getSuborganizationsSize()
           
 int getTypeOrder()
           
 boolean hasPrivateLayouts()
           
 boolean hasPublicLayouts()
           
 boolean hasSuborganizations()
           
 boolean isParentable()
           
static boolean isParentable(java.lang.String type)
           
 boolean isRoot()
           
static boolean isRootable(java.lang.String type)
           
 
Methods inherited from class com.liferay.portal.model.impl.OrganizationBaseImpl
persist
 
Methods inherited from class com.liferay.portal.model.impl.OrganizationModelImpl
clone, compareTo, equals, getColumnBitmask, getComments, getCompanyId, getCountryId, getExpandoBridge, getModelClass, getModelClassName, getName, getOrganizationId, getOriginalCompanyId, getOriginalName, getOriginalParentOrganizationId, getParentOrganizationId, getPrimaryKey, getPrimaryKeyObj, getRecursable, getRegionId, getStatusId, getTreePath, getType, hashCode, isRecursable, resetOriginalValues, setComments, setCompanyId, setCountryId, setExpandoBridgeAttributes, setName, setOrganizationId, setParentOrganizationId, setPrimaryKey, setPrimaryKeyObj, setRecursable, setRegionId, setStatusId, setTreePath, setType, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.OrganizationModel
clone, compareTo, getComments, getCompanyId, getCountryId, getExpandoBridge, getName, getOrganizationId, getParentOrganizationId, getPrimaryKey, getPrimaryKeyObj, getRecursable, getRegionId, getStatusId, getTreePath, getType, hashCode, isCachedModel, isEscapedModel, isNew, isRecursable, setCachedModel, setComments, setCompanyId, setCountryId, setExpandoBridgeAttributes, setName, setNew, setOrganizationId, setParentOrganizationId, setPrimaryKey, setPrimaryKeyObj, setRecursable, setRegionId, setStatusId, setTreePath, setType, toCacheModel, toEscapedModel, toString, toXmlString
 
Methods inherited from interface com.liferay.portal.model.BaseModel
resetOriginalValues
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 

Constructor Detail

OrganizationImpl

public OrganizationImpl()
Method Detail

getChildrenTypes

public static java.lang.String[] getChildrenTypes(java.lang.String type)

getParentTypes

public static java.lang.String[] getParentTypes(java.lang.String type)

isParentable

public static boolean isParentable(java.lang.String type)

isRootable

public static boolean isRootable(java.lang.String type)

buildTreePath

public java.lang.String buildTreePath()
                               throws com.liferay.portal.kernel.exception.PortalException,
                                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getAddress

public com.liferay.portal.model.Address getAddress()

getAddresses

public java.util.List<com.liferay.portal.model.Address> getAddresses()
                                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getAncestors

public java.util.List<com.liferay.portal.model.Organization> getAncestors()
                                                                   throws com.liferay.portal.kernel.exception.PortalException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getChildrenTypes

public java.lang.String[] getChildrenTypes()

getDescendants

public java.util.List<com.liferay.portal.model.Organization> getDescendants()
                                                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroup

public com.liferay.portal.model.Group getGroup()

getGroupId

public long getGroupId()

getLogoId

public long getLogoId()

getParentOrganization

public com.liferay.portal.model.Organization getParentOrganization()
                                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getPreferences

public javax.portlet.PortletPreferences getPreferences()
                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getPrivateLayoutsPageCount

public int getPrivateLayoutsPageCount()

getPublicLayoutsPageCount

public int getPublicLayoutsPageCount()

getReminderQueryQuestions

public java.util.Set<java.lang.String> getReminderQueryQuestions(java.util.Locale locale)
                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getReminderQueryQuestions

public java.util.Set<java.lang.String> getReminderQueryQuestions(java.lang.String languageId)
                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getSuborganizations

public java.util.List<com.liferay.portal.model.Organization> getSuborganizations()
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getSuborganizationsSize

public int getSuborganizationsSize()
                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTypeOrder

public int getTypeOrder()

hasPrivateLayouts

public boolean hasPrivateLayouts()

hasPublicLayouts

public boolean hasPublicLayouts()

hasSuborganizations

public boolean hasSuborganizations()
                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

isParentable

public boolean isParentable()

isRoot

public boolean isRoot()

buildTreePath

protected void buildTreePath(com.liferay.portal.kernel.util.StringBundler sb,
                             com.liferay.portal.model.Organization organization)
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException