1
22
23 package com.liferay.portal.service;
24
25
51 public interface RoleService {
52 public com.liferay.portal.model.Role addRole(java.lang.String name, int type)
53 throws com.liferay.portal.SystemException,
54 com.liferay.portal.PortalException, java.rmi.RemoteException;
55
56 public void deleteRole(long roleId)
57 throws com.liferay.portal.SystemException,
58 com.liferay.portal.PortalException, java.rmi.RemoteException;
59
60 public com.liferay.portal.model.Role getGroupRole(long companyId,
61 long groupId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException, java.rmi.RemoteException;
64
65 public java.util.List getGroupRoles(long groupId)
66 throws com.liferay.portal.SystemException,
67 com.liferay.portal.PortalException, java.rmi.RemoteException;
68
69 public com.liferay.portal.model.Role getRole(long roleId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portal.PortalException, java.rmi.RemoteException;
72
73 public com.liferay.portal.model.Role getRole(long companyId,
74 java.lang.String name)
75 throws com.liferay.portal.SystemException,
76 com.liferay.portal.PortalException, java.rmi.RemoteException;
77
78 public java.util.List getUserGroupRoles(long userId, long groupId)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portal.PortalException, java.rmi.RemoteException;
81
82 public java.util.List getUserRelatedRoles(long userId, java.util.List groups)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portal.PortalException, java.rmi.RemoteException;
85
86 public java.util.List getUserRoles(long userId)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portal.PortalException, java.rmi.RemoteException;
89
90 public boolean hasUserRole(long userId, long companyId,
91 java.lang.String name, boolean inherited)
92 throws com.liferay.portal.SystemException,
93 com.liferay.portal.PortalException, java.rmi.RemoteException;
94
95 public boolean hasUserRoles(long userId, long companyId,
96 java.lang.String[] names, boolean inherited)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portal.PortalException, java.rmi.RemoteException;
99
100 public com.liferay.portal.model.Role updateRole(long roleId,
101 java.lang.String name)
102 throws com.liferay.portal.SystemException,
103 com.liferay.portal.PortalException, java.rmi.RemoteException;
104 }