com.liferay.portal.service.persistence
Class PermissionUtil

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

public class PermissionUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
PermissionUtil()
           
 
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 addRole(long pk, long rolePK)
           
static void addRole(long pk, com.liferay.portal.model.Role role)
           
static void addRoles(long pk, java.util.List roles)
           
static void addRoles(long pk, long[] rolePKs)
           
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 clearRoles(long pk)
           
static void clearUsers(long pk)
           
static boolean containsGroup(long pk, long groupPK)
           
static boolean containsGroups(long pk)
           
static boolean containsRole(long pk, long rolePK)
           
static boolean containsRoles(long pk)
           
static boolean containsUser(long pk, long userPK)
           
static boolean containsUsers(long pk)
           
static int countAll()
           
static int countByA_R(java.lang.String actionId, long resourceId)
           
static int countByResourceId(long resourceId)
           
static com.liferay.portal.model.Permission create(long permissionId)
           
static com.liferay.portal.model.Permission fetchByA_R(java.lang.String actionId, long resourceId)
           
static com.liferay.portal.model.Permission fetchByPrimaryKey(long permissionId)
           
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.Permission findByA_R(java.lang.String actionId, long resourceId)
           
static com.liferay.portal.model.Permission findByPrimaryKey(long permissionId)
           
static com.liferay.portal.model.Permission findByResourceId_First(long resourceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Permission findByResourceId_Last(long resourceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Permission[] findByResourceId_PrevAndNext(long permissionId, long resourceId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List findByResourceId(long resourceId)
           
static java.util.List findByResourceId(long resourceId, int begin, int end)
           
static java.util.List findByResourceId(long resourceId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
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 PermissionPersistence getPersistence()
           
static java.util.List getRoles(long pk)
           
static java.util.List getRoles(long pk, int begin, int end)
           
static java.util.List getRoles(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static int getRolesSize(long pk)
           
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.Permission remove(long permissionId)
           
static com.liferay.portal.model.Permission remove(com.liferay.portal.model.Permission permission)
           
static void removeAll()
           
static void removeByA_R(java.lang.String actionId, long resourceId)
           
static void removeByResourceId(long resourceId)
           
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 removeRole(long pk, long rolePK)
           
static void removeRole(long pk, com.liferay.portal.model.Role role)
           
static void removeRoles(long pk, java.util.List roles)
           
static void removeRoles(long pk, long[] rolePKs)
           
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(PermissionPersistence persistence)
           
static void setRoles(long pk, java.util.List roles)
           
static void setRoles(long pk, long[] rolePKs)
           
static void setUsers(long pk, java.util.List users)
           
static void setUsers(long pk, long[] userPKs)
           
static com.liferay.portal.model.Permission update(com.liferay.portal.model.Permission permission)
           
static com.liferay.portal.model.Permission update(com.liferay.portal.model.Permission permission, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionUtil

public PermissionUtil()
Method Detail

create

public static com.liferay.portal.model.Permission create(long permissionId)

remove

public static com.liferay.portal.model.Permission remove(long permissionId)
                                                  throws com.liferay.portal.SystemException,
                                                         com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

remove

public static com.liferay.portal.model.Permission remove(com.liferay.portal.model.Permission permission)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Permission update(com.liferay.portal.model.Permission permission)
                                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

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

findByPrimaryKey

public static com.liferay.portal.model.Permission findByPrimaryKey(long permissionId)
                                                            throws com.liferay.portal.SystemException,
                                                                   com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

fetchByPrimaryKey

public static com.liferay.portal.model.Permission fetchByPrimaryKey(long permissionId)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByResourceId

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

findByResourceId

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

findByResourceId

public static java.util.List findByResourceId(long resourceId,
                                              int begin,
                                              int end,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByResourceId_First

public static com.liferay.portal.model.Permission findByResourceId_First(long resourceId,
                                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                  throws com.liferay.portal.SystemException,
                                                                         com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

findByResourceId_Last

public static com.liferay.portal.model.Permission findByResourceId_Last(long resourceId,
                                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                 throws com.liferay.portal.SystemException,
                                                                        com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

findByResourceId_PrevAndNext

public static com.liferay.portal.model.Permission[] findByResourceId_PrevAndNext(long permissionId,
                                                                                 long resourceId,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                          throws com.liferay.portal.SystemException,
                                                                                 com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

findByA_R

public static com.liferay.portal.model.Permission findByA_R(java.lang.String actionId,
                                                            long resourceId)
                                                     throws com.liferay.portal.SystemException,
                                                            com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

fetchByA_R

public static com.liferay.portal.model.Permission fetchByA_R(java.lang.String actionId,
                                                             long resourceId)
                                                      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

removeByResourceId

public static void removeByResourceId(long resourceId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByA_R

public static void removeByA_R(java.lang.String actionId,
                               long resourceId)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByResourceId

public static int countByResourceId(long resourceId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByA_R

public static int countByA_R(java.lang.String actionId,
                             long resourceId)
                      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.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

getGroups

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

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.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

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.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchPermissionException

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.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchPermissionException

addGroups

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

addGroups

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

clearGroups

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

removeGroup

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

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.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchGroupException
com.liferay.portal.NoSuchPermissionException

removeGroups

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

removeGroups

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

setGroups

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

setGroups

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

getRoles

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

getRoles

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

getRoles

public static java.util.List getRoles(long pk,
                                      int begin,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

getRolesSize

public static int getRolesSize(long pk)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsRole

public static boolean containsRole(long pk,
                                   long rolePK)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsRoles

public static boolean containsRoles(long pk)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addRole

public static void addRole(long pk,
                           long rolePK)
                    throws com.liferay.portal.SystemException,
                           com.liferay.portal.NoSuchRoleException,
                           com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

addRole

public static void addRole(long pk,
                           com.liferay.portal.model.Role role)
                    throws com.liferay.portal.SystemException,
                           com.liferay.portal.NoSuchRoleException,
                           com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

addRoles

public static void addRoles(long pk,
                            long[] rolePKs)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchRoleException,
                            com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

addRoles

public static void addRoles(long pk,
                            java.util.List roles)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchRoleException,
                            com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

clearRoles

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

removeRole

public static void removeRole(long pk,
                              long rolePK)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.NoSuchRoleException,
                              com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

removeRole

public static void removeRole(long pk,
                              com.liferay.portal.model.Role role)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.NoSuchRoleException,
                              com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

removeRoles

public static void removeRoles(long pk,
                               long[] rolePKs)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchRoleException,
                               com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

removeRoles

public static void removeRoles(long pk,
                               java.util.List roles)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.NoSuchRoleException,
                               com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

setRoles

public static void setRoles(long pk,
                            long[] rolePKs)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchRoleException,
                            com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

setRoles

public static void setRoles(long pk,
                            java.util.List roles)
                     throws com.liferay.portal.SystemException,
                            com.liferay.portal.NoSuchRoleException,
                            com.liferay.portal.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchRoleException
com.liferay.portal.NoSuchPermissionException

getUsers

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

getUsers

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

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.NoSuchPermissionException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException

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.NoSuchPermissionException,
                           com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException
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.NoSuchPermissionException,
                           com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException
com.liferay.portal.NoSuchUserException

addUsers

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

addUsers

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

clearUsers

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

removeUser

public static void removeUser(long pk,
                              long userPK)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.NoSuchPermissionException,
                              com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException
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.NoSuchPermissionException,
                              com.liferay.portal.NoSuchUserException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchPermissionException
com.liferay.portal.NoSuchUserException

removeUsers

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

removeUsers

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

setUsers

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

setUsers

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

getPersistence

public static PermissionPersistence getPersistence()

setPersistence

public void setPersistence(PermissionPersistence persistence)