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
- HTTP 400: Malformed syntax. Please check the Portal logs and fix your input data.
- HTTP 401: Unauthorized access. Please make sure you have the right to access the resource and/or check your login data.
- HTTP 403: Forbidden. Please make sure you have the right to access the resource and/or check your login data.
- HTTP 404: Not found. The requested resource does not exist on the server, please check the URL.
- HTTP 500: Internal server error. Please check the Portal logs.
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">å¯ä»¥ç·¨è¼¯æ‡‰ç”¨ç¨‹å¼å'ŒæŽ§åˆ¶æˆå“¡è³‡æ ¼ã€‚</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">アプリケーションã‚'使用å¯èƒ½</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">å¯ä»¥ç·¨è¼¯æ‡‰ç”¨ç¨‹å¼å'ŒæŽ§åˆ¶æˆå“¡è³‡æ ¼ã€‚</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