1 18 19 package cowsultants.itracker.ejb.authentication; 20 21 import java.rmi.*; 22 import java.rmi.server.*; 23 import java.util.*; 24 import javax.ejb.*; 25 26 import cowsultants.itracker.ejb.client.exceptions.*; 27 import cowsultants.itracker.ejb.client.interfaces.*; 28 import cowsultants.itracker.ejb.client.models.*; 29 import cowsultants.itracker.ejb.client.util.*; 30 31 38 public interface PluggableAuthenticator { 39 40 50 public UserModel checkLogin(String login, Object authentication, int authType, int reqSource) throws AuthenticatorException; 51 52 60 public PermissionModel[] getUserPermissions(UserModel user, int reqSource) throws AuthenticatorException; 61 62 74 public UserModel[] getUsersWithProjectPermission(PermissionModel[] permissions, boolean requireAll, boolean activeOnly, int reqSource) throws AuthenticatorException; 75 76 85 public boolean allowRegistration(UserModel user, Object authentication, int authType, int reqSource) throws AuthenticatorException; 86 87 102 public boolean allowProfileCreation(UserModel user, Object authentication, int authType, int reqSource) throws AuthenticatorException; 103 104 119 public boolean allowProfileUpdates(UserModel user, Object authentication, int authType, int reqSource) throws AuthenticatorException; 120 121 136 public boolean allowPasswordUpdates(UserModel user, Object authentication, int authType, int reqSource) throws AuthenticatorException; 137 138 155 public boolean allowPermissionUpdates(UserModel user, Object authentication, int authType, int reqSource) throws AuthenticatorException; 156 157 172 public boolean allowPreferenceUpdates(UserModel user, Object authentication, int authType, int reqSource) throws AuthenticatorException; 173 174 188 public boolean createProfile(UserModel user, Object authentication, int authType, int reqSource) throws AuthenticatorException; 189 190 203 public boolean updateProfile(UserModel user, int updateType, Object authentication, int authType, int reqSource) throws AuthenticatorException; 204 205 213 public void initialize(HashMap value); 214 } | Popular Tags |