com.liferay.portal.service.persistence
Interface PermissionPersistence
- public interface PermissionPersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
void |
addGroup(long pk,
Group group)
|
void |
addGroup(long pk,
long groupPK)
|
void |
addGroups(long pk,
java.util.List groups)
|
void |
addGroups(long pk,
long[] groupPKs)
|
void |
addRole(long pk,
long rolePK)
|
void |
addRole(long pk,
Role role)
|
void |
addRoles(long pk,
java.util.List roles)
|
void |
addRoles(long pk,
long[] rolePKs)
|
void |
addUser(long pk,
long userPK)
|
void |
addUser(long pk,
User user)
|
void |
addUsers(long pk,
java.util.List users)
|
void |
addUsers(long pk,
long[] userPKs)
|
void |
clearGroups(long pk)
|
void |
clearRoles(long pk)
|
void |
clearUsers(long pk)
|
boolean |
containsGroup(long pk,
long groupPK)
|
boolean |
containsGroups(long pk)
|
boolean |
containsRole(long pk,
long rolePK)
|
boolean |
containsRoles(long pk)
|
boolean |
containsUser(long pk,
long userPK)
|
boolean |
containsUsers(long pk)
|
int |
countAll()
|
int |
countByA_R(java.lang.String actionId,
long resourceId)
|
int |
countByResourceId(long resourceId)
|
Permission |
create(long permissionId)
|
Permission |
fetchByA_R(java.lang.String actionId,
long resourceId)
|
Permission |
fetchByPrimaryKey(long permissionId)
|
java.util.List |
findAll()
|
java.util.List |
findAll(int begin,
int end)
|
java.util.List |
findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Permission |
findByA_R(java.lang.String actionId,
long resourceId)
|
Permission |
findByPrimaryKey(long permissionId)
|
Permission |
findByResourceId_First(long resourceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Permission |
findByResourceId_Last(long resourceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Permission[] |
findByResourceId_PrevAndNext(long permissionId,
long resourceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List |
findByResourceId(long resourceId)
|
java.util.List |
findByResourceId(long resourceId,
int begin,
int end)
|
java.util.List |
findByResourceId(long resourceId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
java.util.List |
getGroups(long pk)
|
java.util.List |
getGroups(long pk,
int begin,
int end)
|
java.util.List |
getGroups(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getGroupsSize(long pk)
|
java.util.List |
getRoles(long pk)
|
java.util.List |
getRoles(long pk,
int begin,
int end)
|
java.util.List |
getRoles(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getRolesSize(long pk)
|
java.util.List |
getUsers(long pk)
|
java.util.List |
getUsers(long pk,
int begin,
int end)
|
java.util.List |
getUsers(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getUsersSize(long pk)
|
Permission |
remove(long permissionId)
|
Permission |
remove(Permission permission)
|
void |
removeAll()
|
void |
removeByA_R(java.lang.String actionId,
long resourceId)
|
void |
removeByResourceId(long resourceId)
|
void |
removeGroup(long pk,
Group group)
|
void |
removeGroup(long pk,
long groupPK)
|
void |
removeGroups(long pk,
java.util.List groups)
|
void |
removeGroups(long pk,
long[] groupPKs)
|
void |
removeRole(long pk,
long rolePK)
|
void |
removeRole(long pk,
Role role)
|
void |
removeRoles(long pk,
java.util.List roles)
|
void |
removeRoles(long pk,
long[] rolePKs)
|
void |
removeUser(long pk,
long userPK)
|
void |
removeUser(long pk,
User user)
|
void |
removeUsers(long pk,
java.util.List users)
|
void |
removeUsers(long pk,
long[] userPKs)
|
void |
setGroups(long pk,
java.util.List groups)
|
void |
setGroups(long pk,
long[] groupPKs)
|
void |
setRoles(long pk,
java.util.List roles)
|
void |
setRoles(long pk,
long[] rolePKs)
|
void |
setUsers(long pk,
java.util.List users)
|
void |
setUsers(long pk,
long[] userPKs)
|
Permission |
update(Permission permission)
|
Permission |
update(Permission permission,
boolean merge)
|
Permission |
updateImpl(Permission permission,
boolean merge)
|
create
public Permission create(long permissionId)
remove
public Permission remove(long permissionId)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
remove
public Permission remove(Permission permission)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public Permission update(Permission permission)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public Permission update(Permission permission,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateImpl
public Permission updateImpl(Permission permission,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public Permission findByPrimaryKey(long permissionId)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
fetchByPrimaryKey
public Permission fetchByPrimaryKey(long permissionId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByResourceId
public java.util.List findByResourceId(long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByResourceId
public java.util.List findByResourceId(long resourceId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByResourceId
public 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 Permission findByResourceId_First(long resourceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
findByResourceId_Last
public Permission findByResourceId_Last(long resourceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
findByResourceId_PrevAndNext
public Permission[] findByResourceId_PrevAndNext(long permissionId,
long resourceId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
findByA_R
public Permission findByA_R(java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
fetchByA_R
public Permission fetchByA_R(java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public 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 java.util.List findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public java.util.List findAll(int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public 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 void removeByResourceId(long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByA_R
public void removeByA_R(java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
removeAll
public void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByResourceId
public int countByResourceId(long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByA_R
public int countByA_R(java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroups
public java.util.List getGroups(long pk)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getGroups
public java.util.List getGroups(long pk,
int begin,
int end)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getGroups
public java.util.List getGroups(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getGroupsSize
public int getGroupsSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsGroup
public boolean containsGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsGroups
public boolean containsGroups(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroup
public void addGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
addGroup
public void addGroup(long pk,
Group group)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
addGroups
public void addGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
addGroups
public void addGroups(long pk,
java.util.List groups)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
clearGroups
public void clearGroups(long pk)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
removeGroup
public void removeGroup(long pk,
long groupPK)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
removeGroup
public void removeGroup(long pk,
Group group)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
removeGroups
public void removeGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
removeGroups
public void removeGroups(long pk,
java.util.List groups)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
setGroups
public void setGroups(long pk,
long[] groupPKs)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
setGroups
public void setGroups(long pk,
java.util.List groups)
throws com.liferay.portal.SystemException,
NoSuchGroupException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchGroupException
NoSuchPermissionException
getRoles
public java.util.List getRoles(long pk)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getRoles
public java.util.List getRoles(long pk,
int begin,
int end)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getRoles
public java.util.List getRoles(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getRolesSize
public int getRolesSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsRole
public boolean containsRole(long pk,
long rolePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsRoles
public boolean containsRoles(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addRole
public void addRole(long pk,
long rolePK)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
addRole
public void addRole(long pk,
Role role)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
addRoles
public void addRoles(long pk,
long[] rolePKs)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
addRoles
public void addRoles(long pk,
java.util.List roles)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
clearRoles
public void clearRoles(long pk)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
removeRole
public void removeRole(long pk,
long rolePK)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
removeRole
public void removeRole(long pk,
Role role)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
removeRoles
public void removeRoles(long pk,
long[] rolePKs)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
removeRoles
public void removeRoles(long pk,
java.util.List roles)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
setRoles
public void setRoles(long pk,
long[] rolePKs)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
setRoles
public void setRoles(long pk,
java.util.List roles)
throws com.liferay.portal.SystemException,
NoSuchRoleException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchRoleException
NoSuchPermissionException
getUsers
public java.util.List getUsers(long pk)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getUsers
public java.util.List getUsers(long pk,
int begin,
int end)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getUsers
public java.util.List getUsers(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
getUsersSize
public int getUsersSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsUser
public boolean containsUser(long pk,
long userPK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsUsers
public boolean containsUsers(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUser
public void addUser(long pk,
long userPK)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
addUser
public void addUser(long pk,
User user)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
addUsers
public void addUsers(long pk,
long[] userPKs)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
addUsers
public void addUsers(long pk,
java.util.List users)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
clearUsers
public void clearUsers(long pk)
throws com.liferay.portal.SystemException,
NoSuchPermissionException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
removeUser
public void removeUser(long pk,
long userPK)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
removeUser
public void removeUser(long pk,
User user)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
removeUsers
public void removeUsers(long pk,
long[] userPKs)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
removeUsers
public void removeUsers(long pk,
java.util.List users)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
setUsers
public void setUsers(long pk,
long[] userPKs)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException
setUsers
public void setUsers(long pk,
java.util.List users)
throws com.liferay.portal.SystemException,
NoSuchPermissionException,
NoSuchUserException
- Throws:
com.liferay.portal.SystemException
NoSuchPermissionException
NoSuchUserException