/** * Returns the role with the primary key. * * @param roleId the primary key of the role * @return the role * @throws PortalException if a role with the primary key could not be found */ @Override public com.liferay.portal.kernel.model.Role getRole(long roleId) throws com.liferay.portal.kernel.exception.PortalException { return _roleLocalService.getRole(roleId); }
/** * Adds the role to the database. Also notifies the appropriate model listeners. * * @param role the role * @return the role that was added */ @Override public com.liferay.portal.kernel.model.Role addRole( com.liferay.portal.kernel.model.Role role) { return _roleLocalService.addRole(role); }
/** * Returns all the roles in the company. * * @param companyId the primary key of the company * @return the roles in the company */ @Override public java.util.List<com.liferay.portal.kernel.model.Role> getRoles( long companyId) { return _roleLocalService.getRoles(companyId); }
roles.addAll(userBag.getRoles()); roles.add(roleLocalService.getRole(companyId, RoleConstants.GUEST)); roleLocalService.getRoles( permissionChecker.getGuestUserRoleIds())); Role organizationUserRole = roleLocalService.getRole( companyId, RoleConstants.ORGANIZATION_USER); Role siteMemberRole = roleLocalService.getRole( companyId, RoleConstants.SITE_MEMBER); userId, group.getGroupId()); List<Role> groupRoles = roleLocalService.getRoles(roleIds);
role = _roleLocalService.getTeamRole(companyId, team.getTeamId()); role = _roleLocalService.addRole( userId, null, 0, name, titleMap, descriptionMap, type, subtype, serviceContext);
/** * Returns the team role in the company. * * @param companyId the primary key of the company * @param teamId the primary key of the team * @return the team role in the company */ @Override public com.liferay.portal.kernel.model.Role getTeamRole(long companyId, long teamId) throws com.liferay.portal.kernel.exception.PortalException { return _roleLocalService.getTeamRole(companyId, teamId); }
/** * Checks to ensure that the system roles map has appropriate default roles * in each company. */ @Override public void checkSystemRoles() throws com.liferay.portal.kernel.exception.PortalException { _roleLocalService.checkSystemRoles(); }
/** * @throws PortalException */ @Override public void addUserRoles(long userId, long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException { _roleLocalService.addUserRoles(userId, roleIds); }
@Override public void addGroupRoles(long groupId, java.util.List<com.liferay.portal.kernel.model.Role> roles) { _roleLocalService.addGroupRoles(groupId, roles); }
/** * @throws PortalException */ @Override public void addUserRole(long userId, long roleId) throws com.liferay.portal.kernel.exception.PortalException { _roleLocalService.addUserRole(userId, roleId); }
@Override public void addGroupRole(long groupId, long roleId) { _roleLocalService.addGroupRole(groupId, roleId); }
/** * Returns the team role in the company. * * @param companyId the primary key of the company * @param teamId the primary key of the team * @return the team role in the company */ public static com.liferay.portal.kernel.model.Role getTeamRole( long companyId, long teamId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getTeamRole(companyId, teamId); }
/** * Checks to ensure that the system roles map has appropriate default roles * in the company. * * @param companyId the primary key of the company */ @Override public void checkSystemRoles(long companyId) throws com.liferay.portal.kernel.exception.PortalException { _roleLocalService.checkSystemRoles(companyId); }
/** * @throws PortalException */ @Override public void addUserRoles(long userId, java.util.List<com.liferay.portal.kernel.model.Role> roles) throws com.liferay.portal.kernel.exception.PortalException { _roleLocalService.addUserRoles(userId, roles); }
@Override public void addGroupRoles(long groupId, long[] roleIds) { _roleLocalService.addGroupRoles(groupId, roleIds); }
/** * @throws PortalException */ @Override public void addUserRole(long userId, com.liferay.portal.kernel.model.Role role) throws com.liferay.portal.kernel.exception.PortalException { _roleLocalService.addUserRole(userId, role); }
@Override public void addGroupRole(long groupId, com.liferay.portal.kernel.model.Role role) { _roleLocalService.addGroupRole(groupId, role); }
/** * Returns the role with the name in the company. * * <p> * The method searches the system roles map first for default roles. If a * role with the name is not found, then the method will query the database. * </p> * * @param companyId the primary key of the company * @param name the role's name * @return the role with the name */ @Override public com.liferay.portal.kernel.model.Role getRole(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException { return _roleLocalService.getRole(companyId, name); }
/** * Returns all the roles with the primary keys. * * @param roleIds the primary keys of the roles * @return the roles with the primary keys */ @Override public java.util.List<com.liferay.portal.kernel.model.Role> getRoles( long[] roleIds) throws com.liferay.portal.kernel.exception.PortalException { return _roleLocalService.getRoles(roleIds); }
String subtype, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _roleLocalService.addRole(userId, className, classPK, name, titleMap, descriptionMap, type, subtype, serviceContext);