|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<Organization>
com.liferay.portal.service.persistence.OrganizationPersistenceImpl
public class OrganizationPersistenceImpl
OrganizationPersistence,
OrganizationUtil| Nested Class Summary | |
|---|---|
protected class |
OrganizationPersistenceImpl.AddGroup
|
protected class |
OrganizationPersistenceImpl.AddUser
|
protected class |
OrganizationPersistenceImpl.ClearGroups
|
protected class |
OrganizationPersistenceImpl.ClearUsers
|
protected class |
OrganizationPersistenceImpl.ContainsGroup
|
protected class |
OrganizationPersistenceImpl.ContainsUser
|
protected class |
OrganizationPersistenceImpl.ExpandTreeLeftOrganizationId
|
protected class |
OrganizationPersistenceImpl.ExpandTreeRightOrganizationId
|
protected class |
OrganizationPersistenceImpl.RemoveGroup
|
protected class |
OrganizationPersistenceImpl.RemoveUser
|
protected class |
OrganizationPersistenceImpl.ShrinkTreeLeftOrganizationId
|
protected class |
OrganizationPersistenceImpl.ShrinkTreeRightOrganizationId
|
protected class |
OrganizationPersistenceImpl.UpdateTree
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
OrganizationPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
addGroup(long pk,
Group group)
|
void |
addGroup(long pk,
long groupPK)
|
void |
addGroups(long pk,
List<Group> groups)
|
void |
addGroups(long pk,
long[] groupPKs)
|
void |
addUser(long pk,
long userPK)
|
void |
addUser(long pk,
User user)
|
void |
addUsers(long pk,
List<User> users)
|
void |
addUsers(long pk,
long[] userPKs)
|
void |
afterPropertiesSet()
|
void |
cacheResult(List<Organization> organizations)
|
void |
cacheResult(Organization organization)
|
void |
clearCache()
Clears the cache for all instances of this model. |
void |
clearCache(Organization organization)
Clears the cache for one instance of this model. |
void |
clearGroups(long pk)
|
void |
clearUsers(long pk)
|
boolean |
containsGroup(long pk,
long groupPK)
|
boolean |
containsGroups(long pk)
|
boolean |
containsUser(long pk,
long userPK)
|
boolean |
containsUsers(long pk)
|
int |
countAll()
|
int |
countByC_N(long companyId,
String name)
|
int |
countByC_P(long companyId,
long parentOrganizationId)
|
int |
countByCompanyId(long companyId)
|
int |
countByLocations(long companyId)
|
protected long |
countOrphanTreeNodes(long companyId)
|
Organization |
create(long organizationId)
|
protected void |
expandTree(Organization organization)
|
Organization |
fetchByC_N(long companyId,
String name)
|
Organization |
fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
|
Organization |
fetchByPrimaryKey(long organizationId)
|
Organization |
fetchByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or return null if it could not be found. |
List<Organization> |
findAll()
|
List<Organization> |
findAll(int start,
int end)
|
List<Organization> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
|
Organization |
findByC_N(long companyId,
String name)
|
Organization |
findByC_P_First(long companyId,
long parentOrganizationId,
OrderByComparator orderByComparator)
|
Organization |
findByC_P_Last(long companyId,
long parentOrganizationId,
OrderByComparator orderByComparator)
|
Organization[] |
findByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator orderByComparator)
|
List<Organization> |
findByC_P(long companyId,
long parentOrganizationId)
|
List<Organization> |
findByC_P(long companyId,
long parentOrganizationId,
int start,
int end)
|
List<Organization> |
findByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator orderByComparator)
|
Organization |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
|
Organization |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
|
Organization[] |
findByCompanyId_PrevAndNext(long organizationId,
long companyId,
OrderByComparator orderByComparator)
|
List<Organization> |
findByCompanyId(long companyId)
|
List<Organization> |
findByCompanyId(long companyId,
int start,
int end)
|
List<Organization> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
|
Organization |
findByLocations_First(long companyId,
OrderByComparator orderByComparator)
|
Organization |
findByLocations_Last(long companyId,
OrderByComparator orderByComparator)
|
Organization[] |
findByLocations_PrevAndNext(long organizationId,
long companyId,
OrderByComparator orderByComparator)
|
List<Organization> |
findByLocations(long companyId)
|
List<Organization> |
findByLocations(long companyId,
int start,
int end)
|
List<Organization> |
findByLocations(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
|
Organization |
findByPrimaryKey(long organizationId)
|
Organization |
findByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or throw an exception if it could not be found. |
protected Organization |
getByC_P_PrevAndNext(Session session,
Organization organization,
long companyId,
long parentOrganizationId,
OrderByComparator orderByComparator,
boolean previous)
|
protected Organization |
getByCompanyId_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
protected Organization |
getByLocations_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
List<Group> |
getGroups(long pk)
|
List<Group> |
getGroups(long pk,
int start,
int end)
|
List<Group> |
getGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
|
int |
getGroupsSize(long pk)
|
protected long |
getLastRightOrganizationId(long companyId,
long parentOrganizationId)
|
List<User> |
getUsers(long pk)
|
List<User> |
getUsers(long pk,
int start,
int end)
|
List<User> |
getUsers(long pk,
int start,
int end,
OrderByComparator orderByComparator)
|
int |
getUsersSize(long pk)
|
void |
rebuildTree(long companyId,
boolean force)
|
protected long |
rebuildTree(long companyId,
long parentOrganizationId,
long leftOrganizationId)
|
Organization |
remove(long organizationId)
|
Organization |
remove(Serializable primaryKey)
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners. |
void |
removeAll()
|
void |
removeByC_N(long companyId,
String name)
|
void |
removeByC_P(long companyId,
long parentOrganizationId)
|
void |
removeByCompanyId(long companyId)
|
void |
removeByLocations(long companyId)
|
void |
removeGroup(long pk,
Group group)
|
void |
removeGroup(long pk,
long groupPK)
|
void |
removeGroups(long pk,
List<Group> groups)
|
void |
removeGroups(long pk,
long[] groupPKs)
|
protected Organization |
removeImpl(Organization organization)
Removes the model instance from the database. |
void |
removeUser(long pk,
long userPK)
|
void |
removeUser(long pk,
User user)
|
void |
removeUsers(long pk,
List<User> users)
|
void |
removeUsers(long pk,
long[] userPKs)
|
void |
setGroups(long pk,
List<Group> groups)
|
void |
setGroups(long pk,
long[] groupPKs)
|
void |
setUsers(long pk,
List<User> users)
|
void |
setUsers(long pk,
long[] userPKs)
|
protected void |
shrinkTree(Organization organization)
|
protected Organization |
toUnwrappedModel(Organization organization)
|
Organization |
updateImpl(Organization organization,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_FIND_BY_LOCATIONS
public static final FinderPath FINDER_PATH_COUNT_BY_LOCATIONS
public static final FinderPath FINDER_PATH_FIND_BY_C_P
public static final FinderPath FINDER_PATH_COUNT_BY_C_P
public static final FinderPath FINDER_PATH_FETCH_BY_C_N
public static final FinderPath FINDER_PATH_COUNT_BY_C_N
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_GET_GROUPS
public static final FinderPath FINDER_PATH_GET_GROUPS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_GROUP
public static final FinderPath FINDER_PATH_GET_USERS
public static final FinderPath FINDER_PATH_GET_USERS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_USER
@BeanReference(type=AccountPersistence.class) protected AccountPersistence accountPersistence
@BeanReference(type=AddressPersistence.class) protected AddressPersistence addressPersistence
@BeanReference(type=BrowserTrackerPersistence.class) protected BrowserTrackerPersistence browserTrackerPersistence
@BeanReference(type=ClassNamePersistence.class) protected ClassNamePersistence classNamePersistence
@BeanReference(type=CompanyPersistence.class) protected CompanyPersistence companyPersistence
@BeanReference(type=ContactPersistence.class) protected ContactPersistence contactPersistence
@BeanReference(type=CountryPersistence.class) protected CountryPersistence countryPersistence
@BeanReference(type=EmailAddressPersistence.class) protected EmailAddressPersistence emailAddressPersistence
@BeanReference(type=GroupPersistence.class) protected GroupPersistence groupPersistence
@BeanReference(type=ImagePersistence.class) protected ImagePersistence imagePersistence
@BeanReference(type=LayoutPersistence.class) protected LayoutPersistence layoutPersistence
@BeanReference(type=LayoutPrototypePersistence.class) protected LayoutPrototypePersistence layoutPrototypePersistence
@BeanReference(type=LayoutSetPersistence.class) protected LayoutSetPersistence layoutSetPersistence
@BeanReference(type=LayoutSetPrototypePersistence.class) protected LayoutSetPrototypePersistence layoutSetPrototypePersistence
@BeanReference(type=ListTypePersistence.class) protected ListTypePersistence listTypePersistence
@BeanReference(type=LockPersistence.class) protected LockPersistence lockPersistence
@BeanReference(type=MembershipRequestPersistence.class) protected MembershipRequestPersistence membershipRequestPersistence
@BeanReference(type=OrganizationPersistence.class) protected OrganizationPersistence organizationPersistence
@BeanReference(type=OrgGroupPermissionPersistence.class) protected OrgGroupPermissionPersistence orgGroupPermissionPersistence
@BeanReference(type=OrgGroupRolePersistence.class) protected OrgGroupRolePersistence orgGroupRolePersistence
@BeanReference(type=OrgLaborPersistence.class) protected OrgLaborPersistence orgLaborPersistence
@BeanReference(type=PasswordPolicyPersistence.class) protected PasswordPolicyPersistence passwordPolicyPersistence
@BeanReference(type=PasswordPolicyRelPersistence.class) protected PasswordPolicyRelPersistence passwordPolicyRelPersistence
@BeanReference(type=PasswordTrackerPersistence.class) protected PasswordTrackerPersistence passwordTrackerPersistence
@BeanReference(type=PermissionPersistence.class) protected PermissionPersistence permissionPersistence
@BeanReference(type=PhonePersistence.class) protected PhonePersistence phonePersistence
@BeanReference(type=PluginSettingPersistence.class) protected PluginSettingPersistence pluginSettingPersistence
@BeanReference(type=PortletPersistence.class) protected PortletPersistence portletPersistence
@BeanReference(type=PortletItemPersistence.class) protected PortletItemPersistence portletItemPersistence
@BeanReference(type=PortletPreferencesPersistence.class) protected PortletPreferencesPersistence portletPreferencesPersistence
@BeanReference(type=RegionPersistence.class) protected RegionPersistence regionPersistence
@BeanReference(type=ReleasePersistence.class) protected ReleasePersistence releasePersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=ResourceActionPersistence.class) protected ResourceActionPersistence resourceActionPersistence
@BeanReference(type=ResourceCodePersistence.class) protected ResourceCodePersistence resourceCodePersistence
@BeanReference(type=ResourcePermissionPersistence.class) protected ResourcePermissionPersistence resourcePermissionPersistence
@BeanReference(type=RolePersistence.class) protected RolePersistence rolePersistence
@BeanReference(type=ServiceComponentPersistence.class) protected ServiceComponentPersistence serviceComponentPersistence
@BeanReference(type=ShardPersistence.class) protected ShardPersistence shardPersistence
@BeanReference(type=SubscriptionPersistence.class) protected SubscriptionPersistence subscriptionPersistence
@BeanReference(type=TicketPersistence.class) protected TicketPersistence ticketPersistence
@BeanReference(type=TeamPersistence.class) protected TeamPersistence teamPersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
@BeanReference(type=UserGroupPersistence.class) protected UserGroupPersistence userGroupPersistence
@BeanReference(type=UserGroupGroupRolePersistence.class) protected UserGroupGroupRolePersistence userGroupGroupRolePersistence
@BeanReference(type=UserGroupRolePersistence.class) protected UserGroupRolePersistence userGroupRolePersistence
@BeanReference(type=UserIdMapperPersistence.class) protected UserIdMapperPersistence userIdMapperPersistence
@BeanReference(type=UserTrackerPersistence.class) protected UserTrackerPersistence userTrackerPersistence
@BeanReference(type=UserTrackerPathPersistence.class) protected UserTrackerPathPersistence userTrackerPathPersistence
@BeanReference(type=WebDAVPropsPersistence.class) protected WebDAVPropsPersistence webDAVPropsPersistence
@BeanReference(type=WebsitePersistence.class) protected WebsitePersistence websitePersistence
@BeanReference(type=WorkflowDefinitionLinkPersistence.class) protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence
@BeanReference(type=WorkflowInstanceLinkPersistence.class) protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
@BeanReference(type=AssetEntryPersistence.class) protected AssetEntryPersistence assetEntryPersistence
@BeanReference(type=ExpandoValuePersistence.class) protected ExpandoValuePersistence expandoValuePersistence
protected OrganizationPersistenceImpl.ContainsGroup containsGroup
protected OrganizationPersistenceImpl.AddGroup addGroup
protected OrganizationPersistenceImpl.ClearGroups clearGroups
protected OrganizationPersistenceImpl.RemoveGroup removeGroup
protected OrganizationPersistenceImpl.ContainsUser containsUser
protected OrganizationPersistenceImpl.AddUser addUser
protected OrganizationPersistenceImpl.ClearUsers clearUsers
protected OrganizationPersistenceImpl.RemoveUser removeUser
protected OrganizationPersistenceImpl.ExpandTreeLeftOrganizationId expandTreeLeftOrganizationId
protected OrganizationPersistenceImpl.ExpandTreeRightOrganizationId expandTreeRightOrganizationId
protected OrganizationPersistenceImpl.ShrinkTreeLeftOrganizationId shrinkTreeLeftOrganizationId
protected OrganizationPersistenceImpl.ShrinkTreeRightOrganizationId shrinkTreeRightOrganizationId
protected OrganizationPersistenceImpl.UpdateTree updateTree
| Constructor Detail |
|---|
public OrganizationPersistenceImpl()
| Method Detail |
|---|
public void cacheResult(Organization organization)
cacheResult in interface OrganizationPersistencepublic void cacheResult(List<Organization> organizations)
cacheResult in interface OrganizationPersistencepublic void clearCache()
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
Caching information and settings can be found in
portal.properties
clearCache in interface BasePersistence<Organization>clearCache in class BasePersistenceImpl<Organization>public void clearCache(Organization organization)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<Organization>clearCache in class BasePersistenceImpl<Organization>organization - the instance of this model to clear the cache forpublic Organization create(long organizationId)
create in interface OrganizationPersistence
public Organization remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
remove in interface BasePersistence<Organization>remove in class BasePersistenceImpl<Organization>primaryKey - the primary key of the model instance to remove
NoSuchModelException - if an instance of this model with the
primary key does not exist
SystemException - if a system exception occurred
public Organization remove(long organizationId)
throws NoSuchOrganizationException,
SystemException
remove in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
protected Organization removeImpl(Organization organization)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<Organization>organization - the model instance to remove
SystemException - if a system exception occurred
public Organization updateImpl(Organization organization,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface OrganizationPersistenceupdateImpl in class BasePersistenceImpl<Organization>organization - the model instance to updatemerge - whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException - if a system exception occurredprotected Organization toUnwrappedModel(Organization organization)
public Organization findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
findByPrimaryKey in interface BasePersistence<Organization>findByPrimaryKey in class BasePersistenceImpl<Organization>primaryKey - the primary key of the model instance to find
NoSuchModelException - if an instance of this model with the
primary key does not exist
SystemException - if the primary key is null, or if a
system exception occurred
public Organization findByPrimaryKey(long organizationId)
throws NoSuchOrganizationException,
SystemException
findByPrimaryKey in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public Organization fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
BasePersistencenull if it could not be found.
fetchByPrimaryKey in interface BasePersistence<Organization>fetchByPrimaryKey in class BasePersistenceImpl<Organization>primaryKey - the primary key of the model instance to find
null if an instance of this
model with the primary key does not exist
SystemException - if the primary key is null, or if a
system exception occurred
public Organization fetchByPrimaryKey(long organizationId)
throws SystemException
fetchByPrimaryKey in interface OrganizationPersistenceSystemException
public List<Organization> findByCompanyId(long companyId)
throws SystemException
findByCompanyId in interface OrganizationPersistenceSystemException
public List<Organization> findByCompanyId(long companyId,
int start,
int end)
throws SystemException
findByCompanyId in interface OrganizationPersistenceSystemException
public List<Organization> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByCompanyId in interface OrganizationPersistenceSystemException
public Organization findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByCompanyId_First in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public Organization findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByCompanyId_Last in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public Organization[] findByCompanyId_PrevAndNext(long organizationId,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByCompanyId_PrevAndNext in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
protected Organization getByCompanyId_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
public List<Organization> findByLocations(long companyId)
throws SystemException
findByLocations in interface OrganizationPersistenceSystemException
public List<Organization> findByLocations(long companyId,
int start,
int end)
throws SystemException
findByLocations in interface OrganizationPersistenceSystemException
public List<Organization> findByLocations(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByLocations in interface OrganizationPersistenceSystemException
public Organization findByLocations_First(long companyId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByLocations_First in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public Organization findByLocations_Last(long companyId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByLocations_Last in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public Organization[] findByLocations_PrevAndNext(long organizationId,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByLocations_PrevAndNext in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
protected Organization getByLocations_PrevAndNext(Session session,
Organization organization,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
public List<Organization> findByC_P(long companyId,
long parentOrganizationId)
throws SystemException
findByC_P in interface OrganizationPersistenceSystemException
public List<Organization> findByC_P(long companyId,
long parentOrganizationId,
int start,
int end)
throws SystemException
findByC_P in interface OrganizationPersistenceSystemException
public List<Organization> findByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByC_P in interface OrganizationPersistenceSystemException
public Organization findByC_P_First(long companyId,
long parentOrganizationId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByC_P_First in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public Organization findByC_P_Last(long companyId,
long parentOrganizationId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByC_P_Last in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public Organization[] findByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
OrderByComparator orderByComparator)
throws NoSuchOrganizationException,
SystemException
findByC_P_PrevAndNext in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
protected Organization getByC_P_PrevAndNext(Session session,
Organization organization,
long companyId,
long parentOrganizationId,
OrderByComparator orderByComparator,
boolean previous)
public Organization findByC_N(long companyId,
String name)
throws NoSuchOrganizationException,
SystemException
findByC_N in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public Organization fetchByC_N(long companyId,
String name)
throws SystemException
fetchByC_N in interface OrganizationPersistenceSystemException
public Organization fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
throws SystemException
fetchByC_N in interface OrganizationPersistenceSystemException
public List<Organization> findAll()
throws SystemException
findAll in interface OrganizationPersistenceSystemException
public List<Organization> findAll(int start,
int end)
throws SystemException
findAll in interface OrganizationPersistenceSystemException
public List<Organization> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findAll in interface OrganizationPersistenceSystemException
public void removeByCompanyId(long companyId)
throws SystemException
removeByCompanyId in interface OrganizationPersistenceSystemException
public void removeByLocations(long companyId)
throws SystemException
removeByLocations in interface OrganizationPersistenceSystemException
public void removeByC_P(long companyId,
long parentOrganizationId)
throws SystemException
removeByC_P in interface OrganizationPersistenceSystemException
public void removeByC_N(long companyId,
String name)
throws NoSuchOrganizationException,
SystemException
removeByC_N in interface OrganizationPersistenceNoSuchOrganizationException
SystemException
public void removeAll()
throws SystemException
removeAll in interface OrganizationPersistenceSystemException
public int countByCompanyId(long companyId)
throws SystemException
countByCompanyId in interface OrganizationPersistenceSystemException
public int countByLocations(long companyId)
throws SystemException
countByLocations in interface OrganizationPersistenceSystemException
public int countByC_P(long companyId,
long parentOrganizationId)
throws SystemException
countByC_P in interface OrganizationPersistenceSystemException
public int countByC_N(long companyId,
String name)
throws SystemException
countByC_N in interface OrganizationPersistenceSystemException
public int countAll()
throws SystemException
countAll in interface OrganizationPersistenceSystemException
public List<Group> getGroups(long pk)
throws SystemException
getGroups in interface OrganizationPersistenceSystemException
public List<Group> getGroups(long pk,
int start,
int end)
throws SystemException
getGroups in interface OrganizationPersistenceSystemException
public List<Group> getGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
getGroups in interface OrganizationPersistenceSystemException
public int getGroupsSize(long pk)
throws SystemException
getGroupsSize in interface OrganizationPersistenceSystemException
public boolean containsGroup(long pk,
long groupPK)
throws SystemException
containsGroup in interface OrganizationPersistenceSystemException
public boolean containsGroups(long pk)
throws SystemException
containsGroups in interface OrganizationPersistenceSystemException
public void addGroup(long pk,
long groupPK)
throws SystemException
addGroup in interface OrganizationPersistenceSystemException
public void addGroup(long pk,
Group group)
throws SystemException
addGroup in interface OrganizationPersistenceSystemException
public void addGroups(long pk,
long[] groupPKs)
throws SystemException
addGroups in interface OrganizationPersistenceSystemException
public void addGroups(long pk,
List<Group> groups)
throws SystemException
addGroups in interface OrganizationPersistenceSystemException
public void clearGroups(long pk)
throws SystemException
clearGroups in interface OrganizationPersistenceSystemException
public void removeGroup(long pk,
long groupPK)
throws SystemException
removeGroup in interface OrganizationPersistenceSystemException
public void removeGroup(long pk,
Group group)
throws SystemException
removeGroup in interface OrganizationPersistenceSystemException
public void removeGroups(long pk,
long[] groupPKs)
throws SystemException
removeGroups in interface OrganizationPersistenceSystemException
public void removeGroups(long pk,
List<Group> groups)
throws SystemException
removeGroups in interface OrganizationPersistenceSystemException
public void setGroups(long pk,
long[] groupPKs)
throws SystemException
setGroups in interface OrganizationPersistenceSystemException
public void setGroups(long pk,
List<Group> groups)
throws SystemException
setGroups in interface OrganizationPersistenceSystemException
public List<User> getUsers(long pk)
throws SystemException
getUsers in interface OrganizationPersistenceSystemException
public List<User> getUsers(long pk,
int start,
int end)
throws SystemException
getUsers in interface OrganizationPersistenceSystemException
public List<User> getUsers(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
getUsers in interface OrganizationPersistenceSystemException
public int getUsersSize(long pk)
throws SystemException
getUsersSize in interface OrganizationPersistenceSystemException
public boolean containsUser(long pk,
long userPK)
throws SystemException
containsUser in interface OrganizationPersistenceSystemException
public boolean containsUsers(long pk)
throws SystemException
containsUsers in interface OrganizationPersistenceSystemException
public void addUser(long pk,
long userPK)
throws SystemException
addUser in interface OrganizationPersistenceSystemException
public void addUser(long pk,
User user)
throws SystemException
addUser in interface OrganizationPersistenceSystemException
public void addUsers(long pk,
long[] userPKs)
throws SystemException
addUsers in interface OrganizationPersistenceSystemException
public void addUsers(long pk,
List<User> users)
throws SystemException
addUsers in interface OrganizationPersistenceSystemException
public void clearUsers(long pk)
throws SystemException
clearUsers in interface OrganizationPersistenceSystemException
public void removeUser(long pk,
long userPK)
throws SystemException
removeUser in interface OrganizationPersistenceSystemException
public void removeUser(long pk,
User user)
throws SystemException
removeUser in interface OrganizationPersistenceSystemException
public void removeUsers(long pk,
long[] userPKs)
throws SystemException
removeUsers in interface OrganizationPersistenceSystemException
public void removeUsers(long pk,
List<User> users)
throws SystemException
removeUsers in interface OrganizationPersistenceSystemException
public void setUsers(long pk,
long[] userPKs)
throws SystemException
setUsers in interface OrganizationPersistenceSystemException
public void setUsers(long pk,
List<User> users)
throws SystemException
setUsers in interface OrganizationPersistenceSystemException
public void rebuildTree(long companyId,
boolean force)
throws SystemException
rebuildTree in interface OrganizationPersistenceSystemException
protected long countOrphanTreeNodes(long companyId)
throws SystemException
SystemException
protected void expandTree(Organization organization)
throws SystemException
SystemException
protected long getLastRightOrganizationId(long companyId,
long parentOrganizationId)
throws SystemException
SystemException
protected long rebuildTree(long companyId,
long parentOrganizationId,
long leftOrganizationId)
throws SystemException
SystemExceptionprotected void shrinkTree(Organization organization)
public void afterPropertiesSet()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||