com.liferay.portal.service.persistence
Class OrganizationUtil
java.lang.Object
com.liferay.portal.service.persistence.OrganizationUtil
public class OrganizationUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
- Author:
- Brian Wing Shun Chan
- See Also:
OrganizationPersistence
,
OrganizationPersistenceImpl
- Generated:
Method Summary |
static void |
addGroup(long pk,
Group group)
|
static void |
addGroup(long pk,
long groupPK)
|
static void |
addGroups(long pk,
java.util.List<Group> groups)
|
static void |
addGroups(long pk,
long[] groupPKs)
|
static void |
addUser(long pk,
long userPK)
|
static void |
addUser(long pk,
User user)
|
static void |
addUsers(long pk,
java.util.List<User> users)
|
static void |
addUsers(long pk,
long[] userPKs)
|
static void |
cacheResult(java.util.List<Organization> organizations)
|
static void |
cacheResult(Organization organization)
|
static void |
clearCache()
|
static void |
clearGroups(long pk)
|
static void |
clearUsers(long pk)
|
static boolean |
containsGroup(long pk,
long groupPK)
|
static boolean |
containsGroups(long pk)
|
static boolean |
containsUser(long pk,
long userPK)
|
static boolean |
containsUsers(long pk)
|
static int |
countAll()
|
static int |
countByC_N(long companyId,
java.lang.String name)
|
static int |
countByC_P(long companyId,
long parentOrganizationId)
|
static int |
countByCompanyId(long companyId)
|
static int |
countByLocations(long companyId)
|
static Organization |
create(long organizationId)
|
static Organization |
fetchByC_N(long companyId,
java.lang.String name)
|
static Organization |
fetchByC_N(long companyId,
java.lang.String name,
boolean retrieveFromCache)
|
static Organization |
fetchByPrimaryKey(long organizationId)
|
static java.util.List<Organization> |
findAll()
|
static java.util.List<Organization> |
findAll(int start,
int end)
|
static java.util.List<Organization> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization |
findByC_N(long companyId,
java.lang.String name)
|
static Organization |
findByC_P_First(long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization |
findByC_P_Last(long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization[] |
findByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Organization> |
findByC_P(long companyId,
long parentOrganizationId)
|
static java.util.List<Organization> |
findByC_P(long companyId,
long parentOrganizationId,
int start,
int end)
|
static java.util.List<Organization> |
findByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization[] |
findByCompanyId_PrevAndNext(long organizationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Organization> |
findByCompanyId(long companyId)
|
static java.util.List<Organization> |
findByCompanyId(long companyId,
int start,
int end)
|
static java.util.List<Organization> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization |
findByLocations_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization |
findByLocations_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization[] |
findByLocations_PrevAndNext(long organizationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Organization> |
findByLocations(long companyId)
|
static java.util.List<Organization> |
findByLocations(long companyId,
int start,
int end)
|
static java.util.List<Organization> |
findByLocations(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization |
findByPrimaryKey(long organizationId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static java.util.List<Group> |
getGroups(long pk)
|
static java.util.List<Group> |
getGroups(long pk,
int start,
int end)
|
static java.util.List<Group> |
getGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getGroupsSize(long pk)
|
static OrganizationPersistence |
getPersistence()
|
static java.util.List<User> |
getUsers(long pk)
|
static java.util.List<User> |
getUsers(long pk,
int start,
int end)
|
static java.util.List<User> |
getUsers(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getUsersSize(long pk)
|
static void |
rebuildTree(long companyId,
boolean force)
|
static Organization |
remove(long organizationId)
|
static Organization |
remove(Organization organization)
|
static void |
removeAll()
|
static void |
removeByC_N(long companyId,
java.lang.String name)
|
static void |
removeByC_P(long companyId,
long parentOrganizationId)
|
static void |
removeByCompanyId(long companyId)
|
static void |
removeByLocations(long companyId)
|
static void |
removeGroup(long pk,
Group group)
|
static void |
removeGroup(long pk,
long groupPK)
|
static void |
removeGroups(long pk,
java.util.List<Group> groups)
|
static void |
removeGroups(long pk,
long[] groupPKs)
|
static void |
removeUser(long pk,
long userPK)
|
static void |
removeUser(long pk,
User user)
|
static void |
removeUsers(long pk,
java.util.List<User> users)
|
static void |
removeUsers(long pk,
long[] userPKs)
|
static void |
setGroups(long pk,
java.util.List<Group> groups)
|
static void |
setGroups(long pk,
long[] groupPKs)
|
void |
setPersistence(OrganizationPersistence persistence)
|
static void |
setUsers(long pk,
java.util.List<User> users)
|
static void |
setUsers(long pk,
long[] userPKs)
|
static Organization |
update(Organization organization,
boolean merge)
|
static Organization |
updateImpl(Organization organization,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrganizationUtil
public OrganizationUtil()
clearCache
public static void clearCache()
- See Also:
BasePersistence.clearCache()
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
remove
public static Organization remove(Organization organization)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)
update
public static Organization update(Organization organization,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
cacheResult
public static void cacheResult(Organization organization)
cacheResult
public static void cacheResult(java.util.List<Organization> organizations)
create
public static Organization create(long organizationId)
remove
public static Organization remove(long organizationId)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
updateImpl
public static Organization updateImpl(Organization organization,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByPrimaryKey
public static Organization findByPrimaryKey(long organizationId)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
fetchByPrimaryKey
public static Organization fetchByPrimaryKey(long organizationId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByCompanyId
public static java.util.List<Organization> findByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByCompanyId
public static java.util.List<Organization> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByCompanyId
public static java.util.List<Organization> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_First
public static Organization findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_Last
public static Organization findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_PrevAndNext
public static Organization[] findByCompanyId_PrevAndNext(long organizationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByLocations
public static java.util.List<Organization> findByLocations(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByLocations
public static java.util.List<Organization> findByLocations(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByLocations
public static java.util.List<Organization> findByLocations(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByLocations_First
public static Organization findByLocations_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByLocations_Last
public static Organization findByLocations_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByLocations_PrevAndNext
public static Organization[] findByLocations_PrevAndNext(long organizationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByC_P
public static java.util.List<Organization> findByC_P(long companyId,
long parentOrganizationId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByC_P
public static java.util.List<Organization> findByC_P(long companyId,
long parentOrganizationId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByC_P
public static java.util.List<Organization> findByC_P(long companyId,
long parentOrganizationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByC_P_First
public static Organization findByC_P_First(long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByC_P_Last
public static Organization findByC_P_Last(long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByC_P_PrevAndNext
public static Organization[] findByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
findByC_N
public static Organization findByC_N(long companyId,
java.lang.String name)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
fetchByC_N
public static Organization fetchByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
fetchByC_N
public static Organization fetchByC_N(long companyId,
java.lang.String name,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Organization> findAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Organization> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Organization> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByCompanyId
public static void removeByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByLocations
public static void removeByLocations(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByC_P
public static void removeByC_P(long companyId,
long parentOrganizationId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByC_N
public static void removeByC_N(long companyId,
java.lang.String name)
throws NoSuchOrganizationException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchOrganizationException
com.liferay.portal.kernel.exception.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByCompanyId
public static int countByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByLocations
public static int countByLocations(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByC_P
public static int countByC_P(long companyId,
long parentOrganizationId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByC_N
public static int countByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countAll
public static int countAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroups
public static java.util.List<Group> getGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroups
public static java.util.List<Group> getGroups(long pk,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroups
public static java.util.List<Group> getGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupsSize
public static int getGroupsSize(long pk)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
containsGroup
public static boolean containsGroup(long pk,
long groupPK)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
containsGroups
public static boolean containsGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addGroup
public static void addGroup(long pk,
long groupPK)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addGroup
public static void addGroup(long pk,
Group group)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addGroups
public static void addGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addGroups
public static void addGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
clearGroups
public static void clearGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeGroup
public static void removeGroup(long pk,
long groupPK)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeGroup
public static void removeGroup(long pk,
Group group)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeGroups
public static void removeGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeGroups
public static void removeGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
setGroups
public static void setGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
setGroups
public static void setGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getUsers
public static java.util.List<User> getUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getUsers
public static java.util.List<User> getUsers(long pk,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getUsers
public static java.util.List<User> getUsers(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getUsersSize
public static int getUsersSize(long pk)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
containsUser
public static boolean containsUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
containsUsers
public static boolean containsUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addUser
public static void addUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addUser
public static void addUser(long pk,
User user)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addUsers
public static void addUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addUsers
public static void addUsers(long pk,
java.util.List<User> users)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
clearUsers
public static void clearUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeUser
public static void removeUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeUser
public static void removeUser(long pk,
User user)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeUsers
public static void removeUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeUsers
public static void removeUsers(long pk,
java.util.List<User> users)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
setUsers
public static void setUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
setUsers
public static void setUsers(long pk,
java.util.List<User> users)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
rebuildTree
public static void rebuildTree(long companyId,
boolean force)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getPersistence
public static OrganizationPersistence getPersistence()
setPersistence
public void setPersistence(OrganizationPersistence persistence)