View Javadoc

1   package net.ramapuram.thomas.service;
2   
3   import net.ramapuram.thomas.model.Role;
4   
5   import java.util.List;
6   
7   /**
8    * Business Service Interface to handle communication between web and
9    * persistence layer.
10   *
11   * @author <a href="mailto:dan@getrolling.com">Dan Kibler </a>
12   */
13  public interface RoleManager extends GenericManager<Role, Long> {
14      /**
15       * {@inheritDoc}
16       */
17      List getRoles(Role role);
18  
19      /**
20       * {@inheritDoc}
21       */
22      Role getRole(String rolename);
23  
24      /**
25       * {@inheritDoc}
26       */
27      Role saveRole(Role role);
28  
29      /**
30       * {@inheritDoc}
31       */
32      void removeRole(String rolename);
33  }