+

Search Tips   |   Advanced Search


Roles REST services

Use these REST services to get and add roles to applications.


Main entry points

Templates:

<portal host>:<portal port>/<portal context root>/mycontenthandler/ai/templates?mode=download

Applications:

<portal host>:<portal port>/<portal context root>/mycontenthandler/ai/applications?mode=download

Application-Favorites:

<portal host>:<portal port>/<portal context root>/mycontenthandler/ai/application-favorites?mode=download (since V6.1.5)


Possible failure return codes

Depending on your system environment, there may be additional failure response codes. If needed, check with your administrator.


Table 1. Get roles

Description URL HTTP Method Input Type Return Code Return Type Links Supported URL Parameters
Loads the feed of all roles defined by the application. Provided by ca:rel="roles" link in application's feed GET - HTTP 200 application/atom+xml

ac:rel="members"

Link to member feed for this role.

rel="first"

Link to the first feed fragment. This link is served only if a feed fragment was served.

rel="last"

Link to the last feed fragment. This link is served only if a feed fragment was served.

rel="previous"

Link to the feed fragment that precedes the given feed fragment.

This link is served only if a feed fragment was served that does not start at the beginning of the feed.

rel="next"

Link to the next feed fragment. This link is served only if a feed fragment was served that does not contain the last entry of the feed.

[resolve-membership]

false: Membership information is not merged into the role feed. (Default)

true: Individual role elements served by this request do contain nested <member> elements for the principals assigned the individual roles.

[rep]

full: Returned role information is represented by <role> elements as defined in ca.xsd. (Default)

compact: Returned role information is represented by <role> elements as defined in ca.xsd without child elements.

[order-by]

type: Sorts this feed according to the "type" attribute of the role element.

updated: Sorts this feed according to the "atom:updated" entry. (Default)

title: Sorts this feed according to the "atom:title" entry.

[sort-order]

asc: Sorts this feed in ascending order. (Default)

desc: Sorts this feed in descending order.

[start-index]

XXX: Identifies the start index of the feed fragment to be served.

(Default: 0)

[max-results]

XXX: Identifies the maximum number of entries to be served by this request.

(Default: Configurable setting on the server)

[filter]

hide-admin-roles=true: Filters the administrator roles (roles that have application or community administrator permissions).

type=<filter-pattern>: Filters the entries of the roles feed based on roles type. The "<filter-pattern>" needs to be replaced by the a specific role type.

(Default: None)

Return data example:

<?xml version="1.0" encoding="UTF-8"?>
<atom:feed
   xml:base="http://localhost:10040/wps/mypoc/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/applications/1F_AESU3F54007AE0IOJUVMU40041/roles"
   xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0"
   xmlns:app="http://www.w3.org/2007/app"
   xmlns:atom="http://www.w3.org/2005/Atom"
   xmlns:ca="http://www.ibm.com/xmlns/prod/composite-applications/v1.0"
   xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
   xmlns:portal="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model" xmlns:xhtml="http://www.w3.org/1999/xhtml">
   <atom:author>
      <atom:name>WebSphere Portal/6.1.0.3</atom:name>
   </atom:author>
   <atom:title>WebSphere Portal Application Infrastructure Feed</atom:title>
   <atom:link
      href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/applications/1F_AESU3F54007AE0IOJUVMU40041/roles"
      rel="self" type="application/atom+xml"/>
   <atom:id>ai:applications/1F_AESU3F54007AE0IOJUVMU40041/roles</atom:id>
   <atom:updated>2009-09-25T12:27:28.921Z</atom:updated>
   <opensearch:totalResults>2</opensearch:totalResults>
   <atom:entry>
      <atom:id>ai:roles/1C_AESU3F54007AE0IOJUVMU400S2</atom:id>
      <atom:title>Administrators</atom:title>
      <atom:summary>Can edit the application and control membership.</atom:summary>
      <atom:link
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S2"
         rel="self" type="application/atom+xml"/>
      <atom:link
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S2"
         rel="edit" type="application/atom+xml"/>
      <atom:link ac:rel="members" ac:roletype="manager"
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S2/members"
         rel="related" type="application/atom+xml"/>
      <atom:updated>2009-09-25T12:27:28.890Z</atom:updated>
      <atom:content type="application/xml">
         <ac:role ac:id="1C_AESU3F54007AE0IOJUVMU400S2"
            ac:type="manager" xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0">
            <ac:title xml:lang="zh_TW">ç¡ç†è€…</ac:title>
            <ac:title xml:lang="ar">موجهي النظام</ac:title>
            <ac:title xml:lang="es">Administradores</ac:title>
            <ac:title xml:lang="el">Διαχειριστές</ac:title>
            <ac:title xml:lang="it">Amministratori</ac:title>
            <ac:title xml:lang="fi">Pääkäyttäjät</ac:title>
            <ac:title xml:lang="tr">Denetimciler</ac:title>
            <ac:title xml:lang="pl">Administratorzy</ac:title>
            <ac:title xml:lang="uk">Адміністратори</ac:title>
            <ac:title xml:lang="cs">Administrátoři</ac:title>
            <ac:title xml:lang="hr">Administratori</ac:title>
            <ac:title xml:lang="pt">Administradores</ac:title>
            <ac:title xml:lang="pt_BR">Administradores</ac:title>
            <ac:title xml:lang="iw">×ž× ×”×œ× ×™×</ac:title>
            <ac:title xml:lang="da">Administratorer</ac:title>
            <ac:title xml:lang="sv">Administratörer</ac:title>
            <ac:title xml:lang="ru">Администраторы</ac:title>
            <ac:title xml:lang="sk">Administrátori</ac:title>
            <ac:title xml:lang="fr">Administrateurs</ac:title>
            <ac:title xml:lang="de">Administratoren</ac:title>
            <ac:title xml:lang="hu">Adminisztrátorok</ac:title>
            <ac:title xml:lang="ca">Administradors</ac:title>
            <ac:title xml:lang="ko">운영자</ac:title>
            <ac:title xml:lang="nl">Beheerders</ac:title>
            <ac:title xml:lang="sl">Skrbniki</ac:title>
            <ac:title xml:lang="ro">Administratori</ac:title>
            <ac:title xml:lang="en">Administrators</ac:title>
            <ac:title xml:lang="no">Administratorer</ac:title>
            <ac:title xml:lang="ja">アドミニストレーター</ac:title>
            <ac:title xml:lang="zh">ç¡ç†å‘˜</ac:title>
            <ac:title xml:lang="th">ผู้ดูแลระบบ</ac:title>
            <ac:description xml:lang="zh_TW">可以編輯應用程式å&apos;ŒæŽ§åˆ¶æˆå“¡è³‡æ ¼ã€‚</ac:description>
            <ac:description xml:lang="ar">يمكن تعديل التطبيق وعضوية التحكم.</ac:description>
            <ac:description xml:lang="es">Pueden editar la aplicación y controlar a los miembros.</ac:description>
            <ac:description xml:lang="el">Μπορούν να τροποποιούν την εφαρμογΠκαι να διαχειρίζονται τα μέλη της.</ac:description>
            <ac:description xml:lang="it">Possono modificare l'applicazione e controllare l'appartenenza.</ac:description>
            <ac:description xml:lang="fi">Voivat muokata sovellusta ja hallita jäsenyyksiä.</ac:description>
            <ac:description xml:lang="tr">Uygulamayı düzenleyebilir ve üyeliği denetleyebilirler.</ac:description>
            <ac:description xml:lang="pl">Mogą edytować aplikację i sterować członkostwem.</ac:description>
            <ac:description xml:lang="uk">Можуть редагувати прикладну програму і керувати доступом до неї.</ac:description>
            <ac:description xml:lang="cs">Mohou upravovat aplikaci a řídit členství.</ac:description>
            <ac:description xml:lang="hr">Mogu uređivati aplikacije i kontrolirati članstvo.</ac:description>
            <ac:description xml:lang="pt">Podem editar a aplicação e controlar a filiação.</ac:description>
            <ac:description xml:lang="pt_BR">É possível editar o aplicativo e controlar a associação.</ac:description>
            <ac:description xml:lang="iw">יכולים לערוך את היישום ולשלוט ברשימת החברים.</ac:description>
            <ac:description xml:lang="da">Kan redigere programmet og styre medlemskab.</ac:description>
            <ac:description xml:lang="sv">Får ändra program och bestämma medlemskap.</ac:description>
            <ac:description xml:lang="ru">Могут изменять приложение и управлять членством.</ac:description>
            <ac:description xml:lang="sk">Môžu upravovať aplikáciu a riadiť členstvo</ac:description>
            <ac:description xml:lang="fr">Peuvent modifier l'application et contrôler l'appartenance.</ac:description>
            <ac:description xml:lang="de">Ein Administrator kann die Anwendung bearbeiten und die Zugehörigkeit steuern.</ac:description>
            <ac:description xml:lang="hu">Szerkeszthetik az alkalmazást és felügyelhetik a tagságot.</ac:description>
            <ac:description xml:lang="ca">Poden editar l'aplicació i controlar la pertinença.</ac:description>
            <ac:description xml:lang="ko">응용프로그램을 íŽ¸ì§‘í•˜ê³  구성원을 ì œì–´í•  수 있습니다.</ac:description>
            <ac:description xml:lang="nl">Kan de toepassing en het lidmaatschap besturen.</ac:description>
            <ac:description xml:lang="sl">Lahko urejajo aplikacije in nadzorujejo članstva.</ac:description>
            <ac:description xml:lang="ro">Se poate edita aplicaţia şi controla apartenenţa.</ac:description>
            <ac:description xml:lang="en">Can edit the application and control membership.</ac:description>
            <ac:description xml:lang="no">Kan redigere applikasjonen og kontrollere medlemskap.</ac:description>
            <ac:description xml:lang="ja">アプリケーションãç·¨é›†ãŠã‚ˆã³ãƒ¡ãƒ³ãƒãƒ¼è³‡æ ¼ãç¡ç†ãŒå¯èƒ½ã€‚</ac:description>
            <ac:description xml:lang="zh">å¯ä»¥ç¼–è¾‘åº”ç”¨ç¨‹åºå¹¶æŽ§åˆ¶æˆå‘˜èµ„æ ¼ã€‚</ac:description>
            <ac:description xml:lang="th">สามารถแก้ไขแอ็พพลิเคชันและควบคุมความเป็นสมาชิก</ac:description>
         </ac:role>
      </atom:content>
   </atom:entry>
   <atom:entry>
      <atom:id>ai:roles/1C_AESU3F54007AE0IOJUVMU400S0</atom:id>
      <atom:title>Users</atom:title>
      <atom:summary>Can use the application.</atom:summary>
      <atom:link
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S0"
         rel="self" type="application/atom+xml"/>
      <atom:link
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S0"
         rel="edit" type="application/atom+xml"/>
      <atom:link ac:rel="members" ac:roletype="user"
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S0/members"
         rel="related" type="application/atom+xml"/>
      <atom:updated>2009-09-25T12:27:28.890Z</atom:updated>
      <atom:content type="application/xml">
         <ac:role ac:id="1C_AESU3F54007AE0IOJUVMU400S0" ac:type="user" xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0">
            <ac:title xml:lang="zh_TW">使用者</ac:title>
            <ac:title xml:lang="ar">المستØدمون</ac:title>
            <ac:title xml:lang="es">Usuarios</ac:title>
            <ac:title xml:lang="el">ΧρÎστες</ac:title>
            <ac:title xml:lang="it">Utenti</ac:title>
            <ac:title xml:lang="fi">Käyttäjät</ac:title>
            <ac:title xml:lang="tr">Kullanıcılar</ac:title>
            <ac:title xml:lang="pl">Użytkownicy</ac:title>
            <ac:title xml:lang="uk">Користувачі</ac:title>
            <ac:title xml:lang="cs">Uživatelé</ac:title>
            <ac:title xml:lang="hr">Korisnici</ac:title>
            <ac:title xml:lang="pt">Utilizadores</ac:title>
            <ac:title xml:lang="pt_BR">Usuários</ac:title>
            <ac:title xml:lang="iw">משתמשים</ac:title>
            <ac:title xml:lang="da">Brugere</ac:title>
            <ac:title xml:lang="sv">Användare</ac:title>
            <ac:title xml:lang="ru">Пользователи</ac:title>
            <ac:title xml:lang="sk">Užívatelia</ac:title>
            <ac:title xml:lang="fr">Utilisateurs</ac:title>
            <ac:title xml:lang="de">Benutzer</ac:title>
            <ac:title xml:lang="hu">Felhasználók</ac:title>
            <ac:title xml:lang="ca">Usuaris</ac:title>
            <ac:title xml:lang="ko">사용자</ac:title>
            <ac:title xml:lang="nl">Gebruikers</ac:title>
            <ac:title xml:lang="sl">Uporabniki</ac:title>
            <ac:title xml:lang="ro">Utilizatori</ac:title>
            <ac:title xml:lang="en">Users</ac:title>
            <ac:title xml:lang="no">Brukere</ac:title>
            <ac:title xml:lang="ja">ユーザー</ac:title>
            <ac:title xml:lang="zh">用户</ac:title>
            <ac:title xml:lang="th">ผู้ใช้</ac:title>
            <ac:description xml:lang="zh_TW">可以使用應用程式。</ac:description>
            <ac:description xml:lang="ar">يمكن استØدام التطبيق.</ac:description>
            <ac:description xml:lang="es">Pueden utilizar la aplicación.</ac:description>
            <ac:description xml:lang="el">Μπορούν να χρησιμοποιούν την εφαρμογÎ.</ac:description>
            <ac:description xml:lang="it">Possono utilizzare l'applicazione.</ac:description>
            <ac:description xml:lang="fi">Voivat käyttää sovellusta.</ac:description>
            <ac:description xml:lang="tr">Uygulamayı kullanabilirler.</ac:description>
            <ac:description xml:lang="pl">Mogą używać aplikacji.</ac:description>
            <ac:description xml:lang="uk">Можуть працювати з прикладною програмою.</ac:description>
            <ac:description xml:lang="cs">Mohou používat aplikaci.</ac:description>
            <ac:description xml:lang="hr">Mogu koristiti aplikacije</ac:description>
            <ac:description xml:lang="pt">Pode utilizar a aplicação.</ac:description>
            <ac:description xml:lang="pt_BR">É possível utilizar o aplicativo.</ac:description>
            <ac:description xml:lang="iw">יכולים להשתמש ביישום.</ac:description>
            <ac:description xml:lang="da">Kan bruge programmet.</ac:description>
            <ac:description xml:lang="sv">Får använda programmet.</ac:description>
            <ac:description xml:lang="ru">Могут использовать приложение.</ac:description>
            <ac:description xml:lang="sk">Môžu používať aplikáciu.</ac:description>
            <ac:description xml:lang="fr">Peuvent utiliser l'application.</ac:description>
            <ac:description xml:lang="de">Ein Benutzer kann die Anwendung verwenden.</ac:description>
            <ac:description xml:lang="hu">Használhatják az alkalmazást.</ac:description>
            <ac:description xml:lang="ca">Poden utilitzar l'aplicació.</ac:description>
            <ac:description xml:lang="ko">응용프로그램을 ì‚¬ìš©í•  수 있습니다.</ac:description>
            <ac:description xml:lang="nl">Kan de toepassing gebruiken.</ac:description>
            <ac:description xml:lang="sl">Lahko uporabljajo aplikacijo.</ac:description>
            <ac:description xml:lang="ro">Puteţi folosi aplicaţia.</ac:description>
            <ac:description xml:lang="en">Can use the application.</ac:description>
            <ac:description xml:lang="no">Kan bruke applikasjonen.</ac:description>
            <ac:description xml:lang="ja">アプリケーションã‚&apos;使用可能</ac:description>
            <ac:description xml:lang="zh">可以使用应用程序。</ac:description>
            <ac:description xml:lang="th">สามารถใช้แอ็พพลิเคชัน</ac:description>
         </ac:role>
      </atom:content>
   </atom:entry>
</atom:feed>


Table 2. Get role

Description URL HTTP Method Input Type Return Code Return Type Links Supported URL Parameters
Loads the feed of a role Provided by rel="self" link in entry of application's roles feed GET - HTTP 200 application/atom+xml

ac:rel="members"

Link to member feed for this role.

[resolve-membership]

false: Membership information is not merged into the role feed. (Default)

true: Individual role elements served by this request do contain nested <member> elements for the principals assigned the individual roles.

[rep]

full: Returned role information is represented by <role> elements as defined in ca.xsd. (Default)

compact: Returned role information is represented by <role> elements as defined in ca.xsd without child elements.

Return data example:

<?xml version="1.0" encoding="UTF-8"?>
<atom:feed
   xml:base="http://localhost:10040/wps/mypoc/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S2"
   xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0"
   xmlns:app="http://www.w3.org/2007/app"
   xmlns:atom="http://www.w3.org/2005/Atom"
   xmlns:ca="http://www.ibm.com/xmlns/prod/composite-applications/v1.0"
   xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
   xmlns:portal="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model" xmlns:xhtml="http://www.w3.org/1999/xhtml">
   <atom:author>
      <atom:name>WebSphere Portal/6.1.0.3</atom:name>
   </atom:author>
   <atom:title>WebSphere Portal Application Infrastructure Feed</atom:title>
   <atom:link
      href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S2"
      rel="self" type="application/atom+xml"/>
   <atom:id>ai:roles/1C_AESU3F54007AE0IOJUVMU400S2</atom:id>
   <atom:updated>2009-09-25T12:27:29.062Z</atom:updated>
   <atom:entry>
      <atom:id>ai:roles/1C_AESU3F54007AE0IOJUVMU400S2</atom:id>
      <atom:title>Administrators</atom:title>
      <atom:summary>Can edit the application and control membership.</atom:summary>
      <atom:link
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S2"
         rel="self" type="application/atom+xml"/>
      <atom:link
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S2"
         rel="edit" type="application/atom+xml"/>
      <atom:link ac:rel="members" ac:roletype="manager"
         href="/wps/mycontenthandler/!ut/p/digest!evdYOJkvct_YU87nO10CuQ/ai/roles/1C_AESU3F54007AE0IOJUVMU400S2/members"
         rel="related" type="application/atom+xml"/>
      <atom:updated>2009-09-25T12:27:29.046Z</atom:updated>
      <atom:content type="application/xml">
         <ac:role ac:id="1C_AESU3F54007AE0IOJUVMU400S2"
            ac:type="manager" xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0">
            <ac:title xml:lang="zh_TW">ç¡ç†è€…</ac:title>
            <ac:title xml:lang="ar">موجهي النظام</ac:title>
            <ac:title xml:lang="es">Administradores</ac:title>
            <ac:title xml:lang="el">Διαχειριστές</ac:title>
            <ac:title xml:lang="it">Amministratori</ac:title>
            <ac:title xml:lang="fi">Pääkäyttäjät</ac:title>
            <ac:title xml:lang="tr">Denetimciler</ac:title>
            <ac:title xml:lang="pl">Administratorzy</ac:title>
            <ac:title xml:lang="uk">Адміністратори</ac:title>
            <ac:title xml:lang="cs">Administrátoři</ac:title>
            <ac:title xml:lang="hr">Administratori</ac:title>
            <ac:title xml:lang="pt">Administradores</ac:title>
            <ac:title xml:lang="pt_BR">Administradores</ac:title>
            <ac:title xml:lang="iw">×ž× ×”×œ× ×™×</ac:title>
            <ac:title xml:lang="da">Administratorer</ac:title>
            <ac:title xml:lang="sv">Administratörer</ac:title>
            <ac:title xml:lang="ru">Администраторы</ac:title>
            <ac:title xml:lang="sk">Administrátori</ac:title>
            <ac:title xml:lang="fr">Administrateurs</ac:title>
            <ac:title xml:lang="de">Administratoren</ac:title>
            <ac:title xml:lang="hu">Adminisztrátorok</ac:title>
            <ac:title xml:lang="ca">Administradors</ac:title>
            <ac:title xml:lang="ko">운영자</ac:title>
            <ac:title xml:lang="nl">Beheerders</ac:title>
            <ac:title xml:lang="sl">Skrbniki</ac:title>
            <ac:title xml:lang="ro">Administratori</ac:title>
            <ac:title xml:lang="en">Administrators</ac:title>
            <ac:title xml:lang="no">Administratorer</ac:title>
            <ac:title xml:lang="ja">アドミニストレーター</ac:title>
            <ac:title xml:lang="zh">ç¡ç†å‘˜</ac:title>
            <ac:title xml:lang="th">ผู้ดูแลระบบ</ac:title>
            <ac:description xml:lang="zh_TW">可以編輯應用程式å&apos;ŒæŽ§åˆ¶æˆå“¡è³‡æ ¼ã€‚</ac:description>
            <ac:description xml:lang="ar">يمكن تعديل التطبيق وعضوية التحكم.</ac:description>
            <ac:description xml:lang="es">Pueden editar la aplicación y controlar a los miembros.</ac:description>
            <ac:description xml:lang="el">Μπορούν να τροποποιούν την εφαρμογΠκαι να διαχειρίζονται τα μέλη της.</ac:description>
            <ac:description xml:lang="it">Possono modificare l'applicazione e controllare l'appartenenza.</ac:description>
            <ac:description xml:lang="fi">Voivat muokata sovellusta ja hallita jäsenyyksiä.</ac:description>
            <ac:description xml:lang="tr">Uygulamayı düzenleyebilir ve üyeliği denetleyebilirler.</ac:description>
            <ac:description xml:lang="pl">Mogą edytować aplikację i sterować członkostwem.</ac:description>
            <ac:description xml:lang="uk">Можуть редагувати прикладну програму і керувати доступом до неї.</ac:description>
            <ac:description xml:lang="cs">Mohou upravovat aplikaci a řídit členství.</ac:description>
            <ac:description xml:lang="hr">Mogu uređivati aplikacije i kontrolirati članstvo.</ac:description>
            <ac:description xml:lang="pt">Podem editar a aplicação e controlar a filiação.</ac:description>
            <ac:description xml:lang="pt_BR">É possível editar o aplicativo e controlar a associação.</ac:description>
            <ac:description xml:lang="iw">יכולים לערוך את היישום ולשלוט ברשימת החברים.</ac:description>
            <ac:description xml:lang="da">Kan redigere programmet og styre medlemskab.</ac:description>
            <ac:description xml:lang="sv">Får ändra program och bestämma medlemskap.</ac:description>
            <ac:description xml:lang="ru">Могут изменять приложение и управлять членством.</ac:description>
            <ac:description xml:lang="sk">Môžu upravovať aplikáciu a riadiť členstvo</ac:description>
            <ac:description xml:lang="fr">Peuvent modifier l'application et contrôler l'appartenance.</ac:description>
            <ac:description xml:lang="de">Ein Administrator kann die Anwendung bearbeiten und die Zugehörigkeit steuern.</ac:description>
            <ac:description xml:lang="hu">Szerkeszthetik az alkalmazást és felügyelhetik a tagságot.</ac:description>
            <ac:description xml:lang="ca">Poden editar l'aplicació i controlar la pertinença.</ac:description>
            <ac:description xml:lang="ko">응용프로그램을 íŽ¸ì§‘í•˜ê³  구성원을 ì œì–´í•  수 있습니다.</ac:description>
            <ac:description xml:lang="nl">Kan de toepassing en het lidmaatschap besturen.</ac:description>
            <ac:description xml:lang="sl">Lahko urejajo aplikacije in nadzorujejo članstva.</ac:description>
            <ac:description xml:lang="ro">Se poate edita aplicaţia şi controla apartenenţa.</ac:description>
            <ac:description xml:lang="en">Can edit the application and control membership.</ac:description>
            <ac:description xml:lang="no">Kan redigere applikasjonen og kontrollere medlemskap.</ac:description>
            <ac:description xml:lang="ja">アプリケーションãç·¨é›†ãŠã‚ˆã³ãƒ¡ãƒ³ãƒãƒ¼è³‡æ ¼ãç¡ç†ãŒå¯èƒ½ã€‚</ac:description>
            <ac:description xml:lang="zh">å¯ä»¥ç¼–è¾‘åº”ç”¨ç¨‹åºå¹¶æŽ§åˆ¶æˆå‘˜èµ„æ ¼ã€‚</ac:description>
            <ac:description xml:lang="th">สามารถแก้ไขแอ็พพลิเคชันและควบคุมความเป็นสมาชิก</ac:description>
         </ac:role>
      </atom:content>
   </atom:entry>
</atom:feed>


Table 3. Add role to an application

Description URL HTTP Method Input Type Return Code Return Type Links Supported URL Parameters
Adds the role to this application. For ActionSet mapping a role-type has to be included as 'creation-context:role-types', supported parameter are: ADMIN, SECURITY_ADMIN, DELEGATOR, MANAGER, EDITOR, CONTRIBUTOR, PRIVILEGED_USER, USER. Optionally: An Object ID of a portal node/page can be given for ActionSet Mapping as 'creation-context:resource-id', default is the application root node. Optionally: If members are already included in the request ATOM they will be set to the created role (for syntax please take a look at Member REST services). Provided by ca:rel="roles" link of application feed.

For example: http://localhost:10040/wps/mycontenthandler/!ut/p/ai/applications/1F_AESU3F540GQL00IOCR30NG08T7/roles

POST application/atom+xml HTTP 201 application/atom+xml

ac:rel="members"

Link to member feed for this role.

rel="first"

Link to the first feed fragment. This link is served only if a feed fragment was served.

rel="last"

Link to the last feed fragment. This link is served only if a feed fragment was served.

rel="previous"

Link to the feed fragment that precedes the given feed fragment.

This link is served only if a feed fragment was served that does not start at the beginning of the feed.

rel="next"

Link to the next feed fragment. This link is served only if a feed fragment was served that does not contain the last entry of the feed.
-

Input data example:

<?xml version="1.0" encoding="UTF-8"?>
<atom:feed xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
    xmlns:app="http://www.w3.org/2007/app" xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:ca="http://www.ibm.com/xmlns/prod/composite-applications/v1.0"
    xmlns:portal="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model"
    xmlns:atom="http://www.w3.org/2005/Atom" xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0"
    xml:base="http://localhost:10040/wps/mypoc/!ut/p/ai/applications/1F_AESU3F540GQL00IOCR30NG08T7/roles?digest=wFsBSYzmEGX50hBc6nToYg!!" >
    <atom:entry>
        <atom:title>My special Role</atom:title>
        <atom:summary>My special Role description</atom:summary>
        <atom:content type="application/xml">
            <ac:role xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0"
                ac:type="My special user role again" xmlns:creation-context="http://www.ibm.com/xmlns/prod/websphere/portal/v6.1.0/portal-creation-context" creation-context:role-types="PRIVILEGED_USER">
                <ac:title xml:lang="en">My special Role</ac:title>
                <ac:description xml:lang="en">My special Role description</ac:description>
                <ac:member ac:DN="uid=adam,o=defaultWIMFileBasedRealm" ac:type="user"/>
            </ac:role>
        </atom:content>
    </atom:entry>
</atom:feed>
Return data example:

<?xml version="1.0" encoding="UTF-8"?>
<atom:feed
   xml:base="http://localhost:10040/wps/mypoc/!ut/p/digest!Zt06oJPV3igQXdULHVLCNQ/ai/roles/1C_AESU3F540OUAE0IOF4P56U10P1"
   xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0"
   xmlns:app="http://www.w3.org/2007/app"
   xmlns:atom="http://www.w3.org/2005/Atom"
   xmlns:ca="http://www.ibm.com/xmlns/prod/composite-applications/v1.0"
   xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
   xmlns:portal="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model" xmlns:xhtml="http://www.w3.org/1999/xhtml">
   <atom:author>
      <atom:name>WebSphere Portal/6.1.0.3</atom:name>
   </atom:author>
   <atom:title>WebSphere Portal Application Infrastructure Feed</atom:title>
   <atom:link
      href="/wps/mycontenthandler/!ut/p/digest!Zt06oJPV3igQXdULHVLCNQ/ai/roles/1C_AESU3F540OUAE0IOF4P56U10P1"
      rel="self" type="application/atom+xml"/>
   <atom:id>ai:roles/1C_AESU3F540OUAE0IOF4P56U10P1</atom:id>
   <atom:updated>2009-09-25T12:27:29.203Z</atom:updated>
   <atom:entry>
      <atom:id>ai:roles/1C_AESU3F540OUAE0IOF4P56U10P1</atom:id>
      <atom:title>My special Role</atom:title>
      <atom:summary>My special Role description</atom:summary>
      <atom:link
         href="/wps/mycontenthandler/!ut/p/digest!Zt06oJPV3igQXdULHVLCNQ/ai/roles/1C_AESU3F540OUAE0IOF4P56U10P1"
         rel="self" type="application/atom+xml"/>
      <atom:link
         href="/wps/mycontenthandler/!ut/p/digest!Zt06oJPV3igQXdULHVLCNQ/ai/roles/1C_AESU3F540OUAE0IOF4P56U10P1"
         rel="edit" type="application/atom+xml"/>
      <atom:link ac:rel="members"
         ac:roletype="My special user role again"
         href="/wps/mycontenthandler/!ut/p/digest!Zt06oJPV3igQXdULHVLCNQ/ai/roles/1C_AESU3F540OUAE0IOF4P56U10P1/members"
         rel="related" type="application/atom+xml"/>
      <atom:updated>2009-09-25T12:27:29.203Z</atom:updated>
      <atom:content type="application/xml">
         <ac:role ac:id="1C_AESU3F540OUAE0IOF4P56U10P1"
            ac:type="My special user role again" xmlns:ac="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0">
            <ac:title xml:lang="en">My special Role</ac:title>
            <ac:description xml:lang="en">My special Role description</ac:description>
         </ac:role>
      </atom:content>
   </atom:entry>
</atom:feed>


Parent topic:

Composite Applications REST services