/** * 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); }
String subtype, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _roleLocalService.addRole(userId, className, classPK, name, titleMap, descriptionMap, type, subtype, serviceContext);
/** * Adds the role to the database. Also notifies the appropriate model listeners. * * @param role the role * @return the role that was added */ public static com.liferay.portal.kernel.model.Role addRole( com.liferay.portal.kernel.model.Role role) { return getService().addRole(role); }
throws com.liferay.portal.kernel.exception.PortalException { return getService() .addRole(userId, className, classPK, name, titleMap, descriptionMap, type, subtype, serviceContext);
role = _roleLocalService.addRole( userId, null, 0, name, titleMap, descriptionMap, type, subtype, serviceContext);