org.openpermis.examples.simple
Class BasicLetterboxService

java.lang.Object
  extended by org.openpermis.examples.simple.BasicLetterboxService
All Implemented Interfaces:
LetterboxService

public class BasicLetterboxService
extends Object
implements LetterboxService

Basic implementation of a letterbox for inserting and collecting letters.

Since:
0.1.0

Field Summary
private  List<String> letterbox
           
private static org.slf4j.Logger LOGGER
           
 
Constructor Summary
BasicLetterboxService()
          Creates a new letter box service.
 
Method Summary
 List<String> collectLetters(String principal)
          Collect and discharge all letters contained in this letterbox.
 void insertLetter(String principal, String letter)
          Inserts a letter into this letterbox.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

private static final org.slf4j.Logger LOGGER

letterbox

private List<String> letterbox
Constructor Detail

BasicLetterboxService

public BasicLetterboxService()
Creates a new letter box service.

Since:
0.4.0
Method Detail

collectLetters

public List<String> collectLetters(String principal)
Description copied from interface: LetterboxService
Collect and discharge all letters contained in this letterbox.

Specified by:
collectLetters in interface LetterboxService
Parameters:
principal - the principal executing this method.
Since:
0.4.0

insertLetter

public void insertLetter(String principal,
                         String letter)
Description copied from interface: LetterboxService
Inserts a letter into this letterbox.

Specified by:
insertLetter in interface LetterboxService
Parameters:
principal - the principal executing this method.
letter - a letter to insert.
Since:
0.4.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:48
Copyright (c) 2002-2007 Ergon Informatik AG