Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Kapitel 17. Der User Admin Service > Rollen, Benutzer und Gruppen verwalten

17.4. Rollen, Benutzer und Gruppen verwalten

Die zentrale Schnittstelle zur Verwaltung von Rollen ist das Interface org.osgi.service.useradmin.UserAdmin. Über diese API können Sie neue Rollen anlegen bzw. bestehende Rollen abfragen oder entfernen (vgl. Listing 17-9):

Listing 17-9. Das Interface UserAdmin

package org.osgi.service.useradmin;

public interface UserAdmin {
   public Role createRole(String name, int type);
   public boolean removeRole(String name);
   public Role getRole(String name);
   public Role[] getRoles(String filter) throws
      InvalidSyntaxException;
   public User getUser(String key, String value);
   public Authorization getAuthorization(User user);
}


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint