DLApp
Il n'y a aucun service assortissant cette expression.

/role/add-role

Méthode de HTTP
POST
com.liferay.portal.service.RoleServiceUtil#addRole

Adds a role. The user is reindexed after role is added.

Paramètres

p_auth String

authentication token used to validate the request

name java.lang.String

the role's name

titleMap java.util.Map

the role's localized titles (optionally null)

descriptionMap java.util.Map

the role's localized descriptions (optionally null)

type int

the role's type (optionally 0)

Type de retour

com.liferay.portal.model.Role

the role

Exception

com.liferay.portal.kernel.exception.PortalException
if a user with the primary key could not be found, if the user did not have permission to add roles, if the class name or the role name were invalid, or if the role is a duplicate
com.liferay.portal.kernel.exception.SystemException
if a system exception occurred

Exécuter

String java.lang.String java.util.Map java.util.Map int