org.openpermis.examples.common
Class UnauthorizedLetterboxService

java.lang.Object
  extended by org.openpermis.examples.common.UnauthorizedLetterboxService
All Implemented Interfaces:
LetterboxService

public class UnauthorizedLetterboxService
extends Object
implements LetterboxService

Basic implementation of a letterbox for inserting and collecting letters.

Since:
0.1.0

Constructor Summary
UnauthorizedLetterboxService()
          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
 

Constructor Detail

UnauthorizedLetterboxService

public UnauthorizedLetterboxService()
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.
Returns:
all letters contained in this letterbox.
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


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:18:03
Copyright (c) 2002-2007 Ergon Informatik AG