KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > security > authentication > DefaultMutableAuthenticationDao


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.repo.security.authentication;
18
19 import java.util.Date JavaDoc;
20
21 import net.sf.acegisecurity.UserDetails;
22 import net.sf.acegisecurity.providers.dao.UsernameNotFoundException;
23
24 import org.alfresco.error.AlfrescoRuntimeException;
25 import org.alfresco.service.cmr.repository.StoreRef;
26 import org.springframework.dao.DataAccessException;
27
28 /**
29  * An authority DAO that has no implementation and should not be called.
30  *
31  * @author Andy Hind
32  */

33 public class DefaultMutableAuthenticationDao implements MutableAuthenticationDao
34 {
35     
36     
37     /**
38      * Create a user with the given userName and password
39      *
40      * @param userName
41      * @param rawPassword
42      * @throws AuthenticationException
43      */

44     public void createUser(String JavaDoc userName, char[] rawPassword) throws AuthenticationException
45     {
46         throw new AlfrescoRuntimeException("Not implemented");
47     }
48     
49     /**
50      * Update a user's password.
51      *
52      * @param userName
53      * @param rawPassword
54      * @throws AuthenticationException
55      */

56     public void updateUser(String JavaDoc userName, char[] rawPassword) throws AuthenticationException
57     {
58         throw new AlfrescoRuntimeException("Not implemented");
59     }
60     
61     /**
62      * Delete a user.
63      *
64      * @param userName
65      * @throws AuthenticationException
66      */

67     public void deleteUser(String JavaDoc userName) throws AuthenticationException
68     {
69         throw new AlfrescoRuntimeException("Not implemented");
70     }
71     
72     /**
73      * Check is a user exists.
74      *
75      * @param userName
76      * @return
77      */

78     public boolean userExists(String JavaDoc userName)
79     {
80         return true;
81     }
82     
83     /**
84      * Enable/disable a user.
85      *
86      * @param userName
87      * @param enabled
88      */

89     public void setEnabled(String JavaDoc userName, boolean enabled)
90     {
91         throw new AlfrescoRuntimeException("Not implemented");
92     }
93     
94     /**
95      * Getter for user enabled
96      *
97      * @param userName
98      * @return
99      */

100     public boolean getEnabled(String JavaDoc userName)
101     {
102         throw new AlfrescoRuntimeException("Not implemented");
103         
104     }
105     
106     /**
107      * Set if the account should expire
108      *
109      * @param userName
110      * @param expires
111      */

112     public void setAccountExpires(String JavaDoc userName, boolean expires)
113     {
114         throw new AlfrescoRuntimeException("Not implemented");
115     }
116     
117     /**
118      * Does the account expire?
119      *
120      * @param userName
121      * @return
122      */

123             
124     public boolean getAccountExpires(String JavaDoc userName)
125     {
126         throw new AlfrescoRuntimeException("Not implemented");
127     }
128     
129     /**
130      * Has the account expired?
131      *
132      * @param userName
133      * @return
134      */

135     public boolean getAccountHasExpired(String JavaDoc userName)
136     {
137         throw new AlfrescoRuntimeException("Not implemented");
138     }
139   
140     /**
141      * Set if the password expires.
142      *
143      * @param userName
144      * @param expires
145      */

146     public void setCredentialsExpire(String JavaDoc userName, boolean expires)
147     {
148         throw new AlfrescoRuntimeException("Not implemented");
149     }
150   
151     /**
152      * Do the credentials for the user expire?
153      *
154      * @param userName
155      * @return
156      */

157     public boolean getCredentialsExpire(String JavaDoc userName)
158     {
159         throw new AlfrescoRuntimeException("Not implemented");
160     }
161     
162     /**
163      * Have the credentials for the user expired?
164      *
165      * @param userName
166      * @return
167      */

168     public boolean getCredentialsHaveExpired(String JavaDoc userName)
169     {
170         throw new AlfrescoRuntimeException("Not implemented");
171     }
172     
173     /**
174      * Set if the account is locked.
175      *
176      * @param userName
177      * @param locked
178      */

179     public void setLocked(String JavaDoc userName, boolean locked)
180     {
181         throw new AlfrescoRuntimeException("Not implemented");
182     }
183     
184     /**
185      * Is the account locked?
186      *
187      * @param userName
188      * @return
189      */

190     public boolean getAccountlocked(String JavaDoc userName)
191     {
192         throw new AlfrescoRuntimeException("Not implemented");
193     }
194     
195     /**
196      * Set the date on which the account expires
197      *
198      * @param userName
199      * @param exipryDate
200      */

201     public void setAccountExpiryDate(String JavaDoc userName, Date JavaDoc exipryDate)
202     {
203         throw new AlfrescoRuntimeException("Not implemented");
204     }
205     
206     /**
207      * Get the date when this account expires.
208      *
209      * @param userName
210      * @return
211      */

212     public Date JavaDoc getAccountExpiryDate(String JavaDoc userName)
213     {
214         throw new AlfrescoRuntimeException("Not implemented");
215     }
216     
217     /**
218      * Set the date when credentials expire.
219      *
220      * @param userName
221      * @param exipryDate
222      */

223     public void setCredentialsExpiryDate(String JavaDoc userName, Date JavaDoc exipryDate)
224     {
225         throw new AlfrescoRuntimeException("Not implemented");
226     }
227     
228     /**
229      * Get the date when the credentials/password expire.
230      *
231      * @param userName
232      * @return
233      */

234     public Date JavaDoc getCredentialsExpiryDate(String JavaDoc userName)
235     {
236         throw new AlfrescoRuntimeException("Not implemented");
237     }
238     
239     /**
240      * Get the MD4 password hash
241      *
242      * @param userName
243      * @return
244      */

245     public String JavaDoc getMD4HashedPassword(String JavaDoc userName)
246     {
247         throw new AlfrescoRuntimeException("Not implemented");
248     }
249     
250     /**
251      * Are user names case sensitive?
252      *
253      * @return
254      */

255     public boolean getUserNamesAreCaseSensitive()
256     {
257         throw new AlfrescoRuntimeException("Not implemented");
258     }
259
260     /**
261      * Return the user details for the specified user
262      *
263      * @param user String
264      * @return UserDetails
265      * @exception UsernameNotFoundException
266      * @exception DataAccessException
267      */

268     public UserDetails loadUserByUsername(String JavaDoc arg0) throws UsernameNotFoundException, DataAccessException
269     {
270         throw new AlfrescoRuntimeException("Not implemented");
271     }
272
273     /**
274      * Return salt for user
275      *
276      * @param user UserDetails
277      * @return Object
278      */

279     public Object JavaDoc getSalt(UserDetails user)
280     {
281         throw new AlfrescoRuntimeException("Not implemented");
282     }
283 }
284
Popular Tags