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
- Author:
- Brian Wing Shun Chan
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 |
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 |
fetchByPrimaryKey(long organizationId)
|
static java.util.List<Organization> |
findAll()
|
static java.util.List<Organization> |
findAll(int begin,
int end)
|
static java.util.List<Organization> |
findAll(int begin,
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 begin,
int end)
|
static java.util.List<Organization> |
findByC_P(long companyId,
long parentOrganizationId,
int begin,
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 begin,
int end)
|
static java.util.List<Organization> |
findByCompanyId(long companyId,
int begin,
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 begin,
int end)
|
static java.util.List<Organization> |
findByLocations(long companyId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Organization |
findByPrimaryKey(long organizationId)
|
static java.util.List<Organization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
static java.util.List<Organization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
static java.util.List<Group> |
getGroups(long pk)
|
static java.util.List<Group> |
getGroups(long pk,
int begin,
int end)
|
static java.util.List<Group> |
getGroups(long pk,
int begin,
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 begin,
int end)
|
static java.util.List<User> |
getUsers(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static int |
getUsersSize(long pk)
|
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)
Deprecated. Use update(Organization organization, boolean merge) . |
static Organization |
update(Organization organization,
boolean merge)
Add, update, or merge, the entity. |
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()
create
public static Organization create(long organizationId)
remove
public static Organization remove(long organizationId)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
remove
public static Organization remove(Organization organization)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static Organization update(Organization organization)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Organization organization, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static Organization update(Organization organization,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
organization
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when organization is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static Organization updateImpl(Organization organization,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static Organization findByPrimaryKey(long organizationId)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
fetchByPrimaryKey
public static Organization fetchByPrimaryKey(long organizationId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<Organization> findByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<Organization> findByCompanyId(long companyId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<Organization> findByCompanyId(long companyId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId_First
public static Organization findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByCompanyId_Last
public static Organization findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByCompanyId_PrevAndNext
public static Organization[] findByCompanyId_PrevAndNext(long organizationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByLocations
public static java.util.List<Organization> findByLocations(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByLocations
public static java.util.List<Organization> findByLocations(long companyId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByLocations
public static java.util.List<Organization> findByLocations(long companyId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByLocations_First
public static Organization findByLocations_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByLocations_Last
public static Organization findByLocations_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByLocations_PrevAndNext
public static Organization[] findByLocations_PrevAndNext(long organizationId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByC_P
public static java.util.List<Organization> findByC_P(long companyId,
long parentOrganizationId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_P
public static java.util.List<Organization> findByC_P(long companyId,
long parentOrganizationId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_P
public static java.util.List<Organization> findByC_P(long companyId,
long parentOrganizationId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_P_First
public static Organization findByC_P_First(long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByC_P_Last
public static Organization findByC_P_Last(long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByC_P_PrevAndNext
public static Organization[] findByC_P_PrevAndNext(long organizationId,
long companyId,
long parentOrganizationId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
findByC_N
public static Organization findByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
fetchByC_N
public static Organization fetchByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<Organization> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<Organization> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Organization> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Organization> findAll(int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Organization> findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByCompanyId
public static void removeByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByLocations
public static void removeByLocations(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_P
public static void removeByC_P(long companyId,
long parentOrganizationId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_N
public static void removeByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCompanyId
public static int countByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByLocations
public static int countByLocations(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_P
public static int countByC_P(long companyId,
long parentOrganizationId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_N
public static int countByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroups
public static java.util.List<Group> getGroups(long pk)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
getGroups
public static java.util.List<Group> getGroups(long pk,
int begin,
int end)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
getGroups
public static java.util.List<Group> getGroups(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
getGroupsSize
public static int getGroupsSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsGroup
public static boolean containsGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsGroups
public static boolean containsGroups(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroup
public static void addGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
addGroup
public static void addGroup(long pk,
Group group)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
addGroups
public static void addGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
addGroups
public static void addGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
clearGroups
public static void clearGroups(long pk)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
removeGroup
public static void removeGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
removeGroup
public static void removeGroup(long pk,
Group group)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
removeGroups
public static void removeGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
removeGroups
public static void removeGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
setGroups
public static void setGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
setGroups
public static void setGroups(long pk,
java.util.List<Group> groups)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchOrganizationException
getUsers
public static java.util.List<User> getUsers(long pk)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
getUsers
public static java.util.List<User> getUsers(long pk,
int begin,
int end)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
getUsers
public static java.util.List<User> getUsers(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
getUsersSize
public static int getUsersSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsUser
public static boolean containsUser(long pk,
long userPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsUsers
public static boolean containsUsers(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUser
public static void addUser(long pk,
long userPK)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
addUser
public static void addUser(long pk,
User user)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
addUsers
public static void addUsers(long pk,
long[] userPKs)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
addUsers
public static void addUsers(long pk,
java.util.List<User> users)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
clearUsers
public static void clearUsers(long pk)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
removeUser
public static void removeUser(long pk,
long userPK)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
removeUser
public static void removeUser(long pk,
User user)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
removeUsers
public static void removeUsers(long pk,
long[] userPKs)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
removeUsers
public static void removeUsers(long pk,
java.util.List<User> users)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
setUsers
public static void setUsers(long pk,
long[] userPKs)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
setUsers
public static void setUsers(long pk,
java.util.List<User> users)
throws com.liferay.portal.SystemException,
NoSuchOrganizationException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchOrganizationException
NoSuchUserException
getPersistence
public static OrganizationPersistence getPersistence()
setPersistence
public void setPersistence(OrganizationPersistence persistence)