org.openpermis.examples.ldap
Class AuthorizedHelloWorldService

java.lang.Object
  extended by org.openpermis.examples.ldap.AuthorizedHelloWorldService
All Implemented Interfaces:
HelloWorldService

public class AuthorizedHelloWorldService
extends Object
implements HelloWorldService

An implementation of the HelloWorld service that controls access with the help of a policy decision point (PDP). It serves as a policy enforcement point for the HelloWorld application.

Since:
0.1.0

Field Summary
protected static String ACTION_NAME
           
private  org.openpermis.AuthorizationService authorizationService
          The injected authorization service.
private  HelloWorldService delegate
          The actual service implementation to which we forward authorized requests.
protected static URI TARGET_RESOURCE_URI
           
 
Constructor Summary
AuthorizedHelloWorldService(org.openpermis.AuthorizationService authorizationService, HelloWorldService delegate)
          Creates an authorized HelloWorld service that uses the specified policy decision context for retrieving roles and making access decisions.
 
Method Summary
 String getHelloMessage(String name)
          Returns a welcome message for the specified person.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TARGET_RESOURCE_URI

protected static final URI TARGET_RESOURCE_URI
Since:
0.1.0

ACTION_NAME

protected static final String ACTION_NAME
Constant Field Value:
"collectLetters"
Since:
0.1.0

authorizationService

private final org.openpermis.AuthorizationService authorizationService
The injected authorization service.

Since:
0.3.0

delegate

private final HelloWorldService delegate
The actual service implementation to which we forward authorized requests.

Since:
0.1.0
Constructor Detail

AuthorizedHelloWorldService

public AuthorizedHelloWorldService(org.openpermis.AuthorizationService authorizationService,
                                   HelloWorldService delegate)
Creates an authorized HelloWorld service that uses the specified policy decision context for retrieving roles and making access decisions.

Parameters:
authorizationService - a AuthorizationService.
delegate - the real service implementation to which authorized requests are forwarded.
Since:
0.1.0
Method Detail

getHelloMessage

public String getHelloMessage(String name)
                       throws HelloWorldException
Description copied from interface: HelloWorldService
Returns a welcome message for the specified person.

Specified by:
getHelloMessage in interface HelloWorldService
Parameters:
name - the name of the person to greet.
Returns:
a suitable welcome message.
Throws:
HelloWorldException - if the service fails to determine a suitable welcome message.
Since:
0.1.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:07:19
Copyright (c) 2002-2007 Ergon Informatik AG