org.apache.cocoon.slide.util
Class AdminHelper

java.lang.Object
  extended by org.apache.cocoon.slide.util.AdminHelper

public class AdminHelper
extends Object

Helper class for the slide samples administration application.


Nested Class Summary
static class AdminHelper.Group
           
 
Constructor Summary
AdminHelper()
           
 
Method Summary
static void addGroup(org.apache.slide.common.NamespaceAccessToken nat, String caller, String groupname)
           
static void addLock(org.apache.slide.common.NamespaceAccessToken nat, String caller, String path, String subject, String type, String expiration, String exclusive, String inherit)
           
static void addMember(org.apache.slide.common.NamespaceAccessToken nat, String caller, String objectUri, String subjectUri)
           
static void addPermission(org.apache.slide.common.NamespaceAccessToken nat, String caller, String path, String subject, String action, String inheritable, String negative)
           
static void addRole(org.apache.slide.common.NamespaceAccessToken nat, String caller, String rolename)
           
static void addUser(org.apache.slide.common.NamespaceAccessToken nat, String caller, String username, String password)
           
static void changePassword(org.apache.slide.common.NamespaceAccessToken nat, String caller, String userUri, String password)
           
static List listGroups(org.apache.slide.common.NamespaceAccessToken nat, String caller, String path)
           
static List listLocks(org.apache.slide.common.NamespaceAccessToken nat, String caller, String path)
           
static List listPermissions(org.apache.slide.common.NamespaceAccessToken nat, String caller, String path)
           
static List listPrivileges(org.apache.slide.common.NamespaceAccessToken nat, String caller)
           
static List listUsers(org.apache.slide.common.NamespaceAccessToken nat, String caller)
           
static boolean login(org.apache.slide.common.NamespaceAccessToken nat, String userId, String password)
           
static void removeLock(org.apache.slide.common.NamespaceAccessToken nat, String caller, String uri, String lockId)
           
static void removeMember(org.apache.slide.common.NamespaceAccessToken nat, String caller, String objectUri, String subjectUri)
           
static void removeObject(org.apache.slide.common.NamespaceAccessToken nat, String caller, String objectUri)
           
static void removePermission(org.apache.slide.common.NamespaceAccessToken nat, String caller, String path, String subject, String action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminHelper

public AdminHelper()
Method Detail

login

public static boolean login(org.apache.slide.common.NamespaceAccessToken nat,
                            String userId,
                            String password)
                     throws Exception
Throws:
Exception

addUser

public static void addUser(org.apache.slide.common.NamespaceAccessToken nat,
                           String caller,
                           String username,
                           String password)
                    throws Exception
Throws:
Exception

addGroup

public static void addGroup(org.apache.slide.common.NamespaceAccessToken nat,
                            String caller,
                            String groupname)
                     throws Exception
Throws:
Exception

addRole

public static void addRole(org.apache.slide.common.NamespaceAccessToken nat,
                           String caller,
                           String rolename)
                    throws Exception
Throws:
Exception

removeObject

public static void removeObject(org.apache.slide.common.NamespaceAccessToken nat,
                                String caller,
                                String objectUri)
                         throws Exception
Throws:
Exception

addMember

public static void addMember(org.apache.slide.common.NamespaceAccessToken nat,
                             String caller,
                             String objectUri,
                             String subjectUri)
                      throws Exception
Throws:
Exception

removeMember

public static void removeMember(org.apache.slide.common.NamespaceAccessToken nat,
                                String caller,
                                String objectUri,
                                String subjectUri)
                         throws Exception
Throws:
Exception

changePassword

public static void changePassword(org.apache.slide.common.NamespaceAccessToken nat,
                                  String caller,
                                  String userUri,
                                  String password)
                           throws Exception
Throws:
Exception

listPermissions

public static List listPermissions(org.apache.slide.common.NamespaceAccessToken nat,
                                   String caller,
                                   String path)
                            throws Exception
Throws:
Exception

listLocks

public static List listLocks(org.apache.slide.common.NamespaceAccessToken nat,
                             String caller,
                             String path)
                      throws Exception
Throws:
Exception

listGroups

public static List listGroups(org.apache.slide.common.NamespaceAccessToken nat,
                              String caller,
                              String path)
                       throws Exception
Throws:
Exception

listUsers

public static List listUsers(org.apache.slide.common.NamespaceAccessToken nat,
                             String caller)
                      throws Exception
Throws:
Exception

listPrivileges

public static List listPrivileges(org.apache.slide.common.NamespaceAccessToken nat,
                                  String caller)
                           throws Exception
Throws:
Exception

removePermission

public static void removePermission(org.apache.slide.common.NamespaceAccessToken nat,
                                    String caller,
                                    String path,
                                    String subject,
                                    String action)
                             throws Exception
Throws:
Exception

addPermission

public static void addPermission(org.apache.slide.common.NamespaceAccessToken nat,
                                 String caller,
                                 String path,
                                 String subject,
                                 String action,
                                 String inheritable,
                                 String negative)
                          throws Exception
Throws:
Exception

removeLock

public static void removeLock(org.apache.slide.common.NamespaceAccessToken nat,
                              String caller,
                              String uri,
                              String lockId)
                       throws Exception
Throws:
Exception

addLock

public static void addLock(org.apache.slide.common.NamespaceAccessToken nat,
                           String caller,
                           String path,
                           String subject,
                           String type,
                           String expiration,
                           String exclusive,
                           String inherit)
                    throws Exception
Throws:
Exception


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.