KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > methodhead > reg > RegPolicy


1 /*
2  * Copyright (C) 2006 Methodhead Software LLC. All rights reserved.
3  *
4  * This file is part of TransferCM.
5  *
6  * TransferCM is free software; you can redistribute it and/or modify it under the
7  * terms of the GNU General Public License as published by the Free Software
8  * Foundation; either version 2 of the License, or (at your option) any later
9  * version.
10  *
11  * TransferCM is distributed in the hope that it will be useful, but WITHOUT ANY
12  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * TransferCM; if not, write to the Free Software Foundation, Inc., 51 Franklin St,
18  * Fifth Floor, Boston, MA 02110-1301 USA
19  */

20
21 package com.methodhead.reg;
22
23 import java.util.List JavaDoc;
24 import com.methodhead.util.OperationContext;
25
26 public interface RegPolicy {
27
28   // constants ////////////////////////////////////////////////////////////////
29

30   // constructors /////////////////////////////////////////////////////////////
31

32   // methods //////////////////////////////////////////////////////////////////
33

34   /**
35    * Returns a new {@link User User};
36    */

37   public User newRegUser();
38
39   /**
40    * Returns a list of <tt>LabelValueBeans</tt> representing the roles
41    * available in the system. The label of each bean may be the name of a
42    * message resource, in which case the label will be updated with that
43    * message.
44    */

45   public List JavaDoc getRoleOptions(
46     OperationContext op );
47
48   /**
49    * Sends the user their password.
50    */

51   public void sendPassword(
52     User user,
53     String JavaDoc password,
54     OperationContext op );
55
56   public String JavaDoc isListUsersAuthorized(
57     OperationContext op );
58
59   public String JavaDoc isDeleteUserAuthorized(
60     OperationContext op );
61
62   public String JavaDoc isSaveUserAuthorized(
63     OperationContext op );
64
65   public String JavaDoc isSaveNewUserAuthorized(
66     OperationContext op );
67
68   public String JavaDoc isEditUserAuthorized(
69     OperationContext op );
70
71   public String JavaDoc isNewUserAuthorized(
72     OperationContext op );
73
74   public String JavaDoc isRolesFormAuthorized(
75     OperationContext op );
76
77   public String JavaDoc isRolesAuthorized(
78     OperationContext op );
79 }
80
Popular Tags