org.openpermis.examples.common
Interface LetterboxService

All Known Implementing Classes:
AuthorizedLetterboxService, UnauthorizedLetterboxService

public interface LetterboxService

A letterbox can be used to insert and collect letters.

Since:
0.1.0

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.
 

Method Detail

insertLetter

void insertLetter(String principal,
                  String letter)
                  throws LetterboxException
Inserts a letter into this letterbox.

Parameters:
principal - the principal executing this method.
letter - a letter to insert.
Throws:
LetterboxException
Since:
0.4.0

collectLetters

List<String> collectLetters(String principal)
                            throws LetterboxException
Collect and discharge all letters contained in this letterbox.

Parameters:
principal - the principal executing this method.
Returns:
all letters contained in this letterbox.
Throws:
LetterboxException
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