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