jpl.mipl.mdms.FileService.komodo.services.aa.server
Class AAServiceImpl

java.lang.Object
  extended by jpl.mipl.mdms.FileService.komodo.services.aa.server.AAServiceImpl

public class AAServiceImpl
extends Object

Purpose: Authentication and Authorization web service.

   Copyright 2004, California Institute of Technology.
   ALL RIGHTS RESERVED.
   U.S. Government Sponsorship acknowledge. 2004.
   
 ============================================================================
 Modification History :
 ----------------------

 Date              Who              What
 ----------------------------------------------------------------------------
 5/22/2007            awt              Initial Release.
 ============================================================================
 

Version:
$Id: AAServiceImpl.java,v 1.8 2007/08/29 21:56:35 awt Exp $
Author:
Adrian Tinio (Adrian.Tinio@jpl.nasa.gov)

Constructor Summary
AAServiceImpl()
           
 
Method Summary
 boolean authenticate(String user, String password, String serverGroup)
          Method that authenticates a user
 List getCapabilities(String user, String password, String serverGroup)
          Method to return a list of filetypes along with the user's capabilities on each filetype
 List getFileTypes(String user, String password, String serverGroup, int cap)
          Method to retrieve all the filetypes that the user has permissions as indicated by the [cap]abilities parameter
 List getServerGroups()
          Method to return "registered" server groups
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AAServiceImpl

public AAServiceImpl()
Method Detail

getFileTypes

public List getFileTypes(String user,
                         String password,
                         String serverGroup,
                         int cap)
Method to retrieve all the filetypes that the user has permissions as indicated by the [cap]abilities parameter

Parameters:
user -
password -
serverGroup -
cap -
Returns:
List of filetypes

authenticate

public boolean authenticate(String user,
                            String password,
                            String serverGroup)
Method that authenticates a user

Parameters:
user -
password -
serverGroup -
Returns:
true if authentication succeeds, false otherwise

getCapabilities

public List getCapabilities(String user,
                            String password,
                            String serverGroup)
Method to return a list of filetypes along with the user's capabilities on each filetype

Parameters:
user -
password -
serverGroup -
Returns:
List of filetype\tmask strings

getServerGroups

public List getServerGroups()
Method to return "registered" server groups

Returns:
List of servergroups