com.liferay.portal.service.persistence
Class OrganizationUtil

java.lang.Object
  extended bycom.liferay.portal.service.persistence.OrganizationUtil

public class OrganizationUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
OrganizationUtil()
           
 
Method Summary
static void addGroup(long pk, com.liferay.portal.model.Group group)
           
static void addGroup(long pk, long groupPK)
           
static void addGroups(long pk, java.util.List groups)
           
static void addGroups(long pk, long[] groupPKs)
           
static void addUser(long pk, long userPK)
           
static void addUser(long pk, com.liferay.portal.model.User user)
           
static void addUsers(long pk, java.util.List 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 com.liferay.portal.model.Organization create(long organizationId)
           
static com.liferay.portal.model.Organization fetchByC_N(long companyId, java.lang.String name)
           
static com.liferay.portal.model.Organization fetchByPrimaryKey(long organizationId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization findByC_N(long companyId, java.lang.String name)
           
static com.liferay.portal.model.Organization findByC_P_First(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization findByC_P_Last(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByC_P(long companyId, long parentOrganizationId)
           
static java.util.List findByC_P(long companyId, long parentOrganizationId, int begin, int end)
           
static java.util.List findByC_P(long companyId, long parentOrganizationId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByCompanyId(long companyId)
           
static java.util.List findByCompanyId(long companyId, int begin, int end)
           
static java.util.List findByCompanyId(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization findByLocations_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization findByLocations_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByLocations(long companyId)
           
static java.util.List findByLocations(long companyId, int begin, int end)
           
static java.util.List findByLocations(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Organization findByPrimaryKey(long organizationId)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static java.util.List getGroups(long pk)
           
static java.util.List getGroups(long pk, int begin, int end)
           
static java.util.List 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 getUsers(long pk)
           
static java.util.List getUsers(long pk, int begin, int end)
           
static java.util.List getUsers(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getUsersSize(long pk)
           
static com.liferay.portal.model.Organization remove(long organizationId)
           
static com.liferay.portal.model.Organization remove(com.liferay.portal.model.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, com.liferay.portal.model.Group group)
           
static void removeGroup(long pk, long groupPK)
           
static void removeGroups(long pk, java.util.List groups)
           
static void removeGroups(long pk, long[] groupPKs)
           
static void removeUser(long pk, long userPK)
           
static void removeUser(long pk, com.liferay.portal.model.User user)
           
static void removeUsers(long pk, java.util.List users)
           
static void removeUsers(long pk, long[] userPKs)
           
static void setGroups(long pk, java.util.List groups)
           
static void setGroups(long pk, long[] groupPKs)
           
 void setPersistence(OrganizationPersistence persistence)
           
static void setUsers(long pk, java.util.List users)
           
static void setUsers(long pk, long[] userPKs)
           
static com.liferay.portal.model.Organization update(com.liferay.portal.model.Organization organization)
           
static com.liferay.portal.model.Organization update(com.liferay.portal.model.Organization organization, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizationUtil

public OrganizationUtil()
Method Detail

create

public static com.liferay.portal.model.Organization create(long organizationId)

remove

public static com.liferay.portal.model.Organization remove(long organizationId)
                                                    throws com.liferay.portal.SystemException,
                                                           com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

remove

public static com.liferay.portal.model.Organization remove(com.liferay.portal.model.Organization organization)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Organization update(com.liferay.portal.model.Organization organization)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Organization update(com.liferay.portal.model.Organization organization,
                                                           boolean merge)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portal.model.Organization findByPrimaryKey(long organizationId)
                                                              throws com.liferay.portal.SystemException,
                                                                     com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

fetchByPrimaryKey

public static com.liferay.portal.model.Organization fetchByPrimaryKey(long organizationId)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List findByCompanyId(long companyId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List findByCompanyId(long companyId,
                                             int begin,
                                             int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public static java.util.List 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 com.liferay.portal.model.Organization findByCompanyId_First(long companyId,
                                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                   throws com.liferay.portal.SystemException,
                                                                          com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByCompanyId_Last

public static com.liferay.portal.model.Organization findByCompanyId_Last(long companyId,
                                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                  throws com.liferay.portal.SystemException,
                                                                         com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByCompanyId_PrevAndNext

public static com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(long organizationId,
                                                                                  long companyId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                           throws com.liferay.portal.SystemException,
                                                                                  com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByLocations

public static java.util.List findByLocations(long companyId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByLocations

public static java.util.List findByLocations(long companyId,
                                             int begin,
                                             int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByLocations

public static java.util.List 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 com.liferay.portal.model.Organization findByLocations_First(long companyId,
                                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                   throws com.liferay.portal.SystemException,
                                                                          com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByLocations_Last

public static com.liferay.portal.model.Organization findByLocations_Last(long companyId,
                                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                  throws com.liferay.portal.SystemException,
                                                                         com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByLocations_PrevAndNext

public static com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(long organizationId,
                                                                                  long companyId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                           throws com.liferay.portal.SystemException,
                                                                                  com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByC_P

public static java.util.List findByC_P(long companyId,
                                       long parentOrganizationId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_P

public static java.util.List 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 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 com.liferay.portal.model.Organization findByC_P_First(long companyId,
                                                                    long parentOrganizationId,
                                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                                             throws com.liferay.portal.SystemException,
                                                                    com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByC_P_Last

public static com.liferay.portal.model.Organization findByC_P_Last(long companyId,
                                                                   long parentOrganizationId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                            throws com.liferay.portal.SystemException,
                                                                   com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByC_P_PrevAndNext

public static com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(long organizationId,
                                                                            long companyId,
                                                                            long parentOrganizationId,
                                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                     throws com.liferay.portal.SystemException,
                                                                            com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

findByC_N

public static com.liferay.portal.model.Organization findByC_N(long companyId,
                                                              java.lang.String name)
                                                       throws com.liferay.portal.SystemException,
                                                              com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

fetchByC_N

public static com.liferay.portal.model.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 findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List 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 findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List 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,
                               com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.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 getGroups(long pk)
                                throws com.liferay.portal.SystemException,
                                       com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

getGroups

public static java.util.List getGroups(long pk,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException,
                                       com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

getGroups

public static java.util.List getGroups(long pk,
                                       int begin,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.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,
                            com.liferay.portal.NoSuchGroupException,
                            com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

addGroup

public static void addGroup(long pk,
                            com.liferay.portal.model.Group group)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchGroupException,
                            com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

addGroups

public static void addGroups(long pk,
                             long[] groupPKs)
                      throws com.liferay.portal.SystemException,
                             com.liferay.portal.NoSuchGroupException,
                             com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

addGroups

public static void addGroups(long pk,
                             java.util.List groups)
                      throws com.liferay.portal.SystemException,
                             com.liferay.portal.NoSuchGroupException,
                             com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

clearGroups

public static void clearGroups(long pk)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

removeGroup

public static void removeGroup(long pk,
                               long groupPK)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchGroupException,
                               com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

removeGroup

public static void removeGroup(long pk,
                               com.liferay.portal.model.Group group)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchGroupException,
                               com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

removeGroups

public static void removeGroups(long pk,
                                long[] groupPKs)
                         throws com.liferay.portal.SystemException,
                                com.liferay.portal.NoSuchGroupException,
                                com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

removeGroups

public static void removeGroups(long pk,
                                java.util.List groups)
                         throws com.liferay.portal.SystemException,
                                com.liferay.portal.NoSuchGroupException,
                                com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

setGroups

public static void setGroups(long pk,
                             long[] groupPKs)
                      throws com.liferay.portal.SystemException,
                             com.liferay.portal.NoSuchGroupException,
                             com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

setGroups

public static void setGroups(long pk,
                             java.util.List groups)
                      throws com.liferay.portal.SystemException,
                             com.liferay.portal.NoSuchGroupException,
                             com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchOrganizationException

getUsers

public static java.util.List getUsers(long pk)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

getUsers

public static java.util.List getUsers(long pk,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

getUsers

public static java.util.List getUsers(long pk,
                                      int begin,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.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,
                           com.liferay.portal.NoSuchOrganizationException,
                           com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

addUser

public static void addUser(long pk,
                           com.liferay.portal.model.User user)
                    throws com.liferay.portal.SystemException,
                           com.liferay.portal.NoSuchOrganizationException,
                           com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

addUsers

public static void addUsers(long pk,
                            long[] userPKs)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchOrganizationException,
                            com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

addUsers

public static void addUsers(long pk,
                            java.util.List users)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchOrganizationException,
                            com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

clearUsers

public static void clearUsers(long pk)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.NoSuchOrganizationException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException

removeUser

public static void removeUser(long pk,
                              long userPK)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.NoSuchOrganizationException,
                              com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

removeUser

public static void removeUser(long pk,
                              com.liferay.portal.model.User user)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.NoSuchOrganizationException,
                              com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

removeUsers

public static void removeUsers(long pk,
                               long[] userPKs)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchOrganizationException,
                               com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

removeUsers

public static void removeUsers(long pk,
                               java.util.List users)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchOrganizationException,
                               com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

setUsers

public static void setUsers(long pk,
                            long[] userPKs)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchOrganizationException,
                            com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

setUsers

public static void setUsers(long pk,
                            java.util.List users)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchOrganizationException,
                            com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchOrganizationException
com.liferay.portal.NoSuchUserException

getPersistence

public static OrganizationPersistence getPersistence()

setPersistence

public void setPersistence(OrganizationPersistence persistence)