|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.examples.ejb.server.HelloWorldService
public class HelloWorldService
An EJB implementation of the HelloWorld service.
Access to a basic HelloWorld service is controlled with help of a policy decision point (PDP). It serves as a policy enforcement point for the HelloWorld application.
Field Summary | |
---|---|
protected static String |
ACTION_NAME
|
protected static URI |
TARGET_RESOURCE_URI
|
Constructor Summary | |
---|---|
HelloWorldService()
Creates a hello world EJB which uses a default PDP and HelloWorld service. |
|
HelloWorldService(org.openpermis.AuthorizationService authorizationService,
HelloWorldServiceRemote delegate)
Creates an authorized HelloWorld service that uses the specified authorization service context for retrieving roles and making access decisions. |
Method Summary | |
---|---|
protected void |
assertInitialized()
Asserts that the service has been correctly initialized. |
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 |
---|
protected static final URI TARGET_RESOURCE_URI
protected static final String ACTION_NAME
"collectLetters"
Constructor Detail |
---|
public HelloWorldService()
createPolicyDecisionPoint()
,
createHelloWorldService()
public HelloWorldService(org.openpermis.AuthorizationService authorizationService, HelloWorldServiceRemote delegate)
authorizationService
- a AuthorizationService
.delegate
- the real service implementation to which authorized requests are forwarded.Method Detail |
---|
protected void assertInitialized() throws HelloWorldException
HelloWorldException
- if the service is not correctly initialized.public String getHelloMessage(String name) throws HelloWorldException
HelloWorldServiceRemote
getHelloMessage
in interface HelloWorldServiceRemote
name
- the name of the person to greet.
HelloWorldException
- if the service fails to determine a suitable welcome message.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:07:14
Copyright (c) 2002-2007 Ergon Informatik AG