View Javadoc

1   package org.paneris.bibliomania;
2   
3   import org.melati.poem.AccessPoemException;
4   import org.melati.poem.AccessToken;
5   import org.melati.poem.Capability;
6   
7   public class ContentAccessPoemException extends AccessPoemException {
8     /**
9      * 
10     */
11    private static final long serialVersionUID = 1L;
12    public Book book;
13  
14    public ContentAccessPoemException(Book book, AccessToken accessToken,
15                                      Capability canReadContent) {
16      super(accessToken, canReadContent);
17      this.book = book;
18    }
19  
20    public String getActionDescription() {
21      return "view " + book.getTitle();
22    }
23  }