Source Code Cross Referenced for MockSecurityService.java in  » Issue-Tracking » scarab-0.21 » org » tigris » scarab » test » mocks » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Issue Tracking » scarab 0.21 » org.tigris.scarab.test.mocks 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.tigris.scarab.test.mocks;
002:
003:        /* ================================================================
004:         * Copyright (c) 2000-2003 CollabNet.  All rights reserved.
005:         * 
006:         * Redistribution and use in source and binary forms, with or without
007:         * modification, are permitted provided that the following conditions are
008:         * met:
009:         * 
010:         * 1. Redistributions of source code must retain the above copyright
011:         * notice, this list of conditions and the following disclaimer.
012:         * 
013:         * 2. Redistributions in binary form must reproduce the above copyright
014:         * notice, this list of conditions and the following disclaimer in the
015:         * documentation and/or other materials provided with the distribution.
016:         * 
017:         * 3. The end-user documentation included with the redistribution, if
018:         * any, must include the following acknowlegement: "This product includes
019:         * software developed by CollabNet <http://www.collab.net/>."
020:         * Alternately, this acknowlegement may appear in the software itself, if
021:         * and wherever such third-party acknowlegements normally appear.
022:         * 
023:         * 4. The hosted project names must not be used to endorse or promote
024:         * products derived from this software without prior written
025:         * permission. For written permission, please contact info@collab.net.
026:         * 
027:         * 5. Products derived from this software may not use the "Tigris" or 
028:         * "Scarab" names nor may "Tigris" or "Scarab" appear in their names without 
029:         * prior written permission of CollabNet.
030:         * 
031:         * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
032:         * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
033:         * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
034:         * IN NO EVENT SHALL COLLAB.NET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
035:         * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
036:         * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
037:         * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
038:         * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
039:         * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
040:         * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
041:         * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
042:         *
043:         * ====================================================================
044:         * 
045:         * This software consists of voluntary contributions made by many
046:         * individuals on behalf of CollabNet.
047:         */
048:
049:        import java.util.Map;
050:
051:        import org.apache.commons.configuration.BaseConfiguration;
052:        import org.apache.commons.configuration.Configuration;
053:        import org.apache.fulcrum.InitializationException;
054:        import org.apache.fulcrum.ServiceBroker;
055:        import org.apache.fulcrum.ServiceException;
056:        import org.apache.fulcrum.security.SecurityService;
057:        import org.apache.fulcrum.security.entity.Group;
058:        import org.apache.fulcrum.security.entity.Permission;
059:        import org.apache.fulcrum.security.entity.Role;
060:        import org.apache.fulcrum.security.entity.User;
061:        import org.apache.fulcrum.security.util.AccessControlList;
062:        import org.apache.fulcrum.security.util.DataBackendException;
063:        import org.apache.fulcrum.security.util.EntityExistsException;
064:        import org.apache.fulcrum.security.util.GroupSet;
065:        import org.apache.fulcrum.security.util.PasswordMismatchException;
066:        import org.apache.fulcrum.security.util.PermissionSet;
067:        import org.apache.fulcrum.security.util.RoleSet;
068:        import org.apache.fulcrum.security.util.UnknownEntityException;
069:        import org.apache.log4j.Category;
070:        import org.apache.torque.util.Criteria;
071:
072:        /**
073:         * @author Eric Pugh
074:         *
075:         */
076:        public class MockSecurityService implements  SecurityService {
077:
078:            private Configuration configuration;
079:
080:            public MockSecurityService() {
081:                configuration = new BaseConfiguration();
082:                configuration.addProperty("user.class",
083:                        "org.tigris.scarab.om.ScarabUserImpl");
084:            }
085:
086:            public Class getUserClass() throws UnknownEntityException {
087:
088:                return null;
089:            }
090:
091:            public User getUserInstance() throws UnknownEntityException {
092:
093:                return null;
094:            }
095:
096:            public User getUserInstance(String userName)
097:                    throws UnknownEntityException {
098:
099:                return null;
100:            }
101:
102:            public Class getGroupClass() throws UnknownEntityException {
103:
104:                return null;
105:            }
106:
107:            public Group getGroupInstance() throws UnknownEntityException {
108:
109:                return null;
110:            }
111:
112:            public Group getGroupInstance(String groupName)
113:                    throws UnknownEntityException {
114:
115:                return null;
116:            }
117:
118:            public Class getPermissionClass() throws UnknownEntityException {
119:
120:                return null;
121:            }
122:
123:            public Permission getPermissionInstance()
124:                    throws UnknownEntityException {
125:
126:                return null;
127:            }
128:
129:            public Permission getPermissionInstance(String permName)
130:                    throws UnknownEntityException {
131:
132:                return null;
133:            }
134:
135:            public Class getRoleClass() throws UnknownEntityException {
136:
137:                return null;
138:            }
139:
140:            public Role getRoleInstance() throws UnknownEntityException {
141:
142:                return null;
143:            }
144:
145:            public Role getRoleInstance(String roleName)
146:                    throws UnknownEntityException {
147:
148:                return null;
149:            }
150:
151:            public Class getAclClass() throws UnknownEntityException {
152:
153:                return null;
154:            }
155:
156:            public AccessControlList getAclInstance(Map roles, Map permissions)
157:                    throws UnknownEntityException {
158:
159:                return null;
160:            }
161:
162:            public boolean accountExists(String userName)
163:                    throws DataBackendException {
164:
165:                return false;
166:            }
167:
168:            public boolean accountExists(User user) throws DataBackendException {
169:
170:                return false;
171:            }
172:
173:            public User getAuthenticatedUser(String username, String password)
174:                    throws DataBackendException, UnknownEntityException,
175:                    PasswordMismatchException {
176:
177:                return null;
178:            }
179:
180:            public User getUser(String username) throws DataBackendException,
181:                    UnknownEntityException {
182:
183:                return null;
184:            }
185:
186:            public User[] getUsers(Criteria criteria)
187:                    throws DataBackendException {
188:
189:                return null;
190:            }
191:
192:            public User getAnonymousUser() throws UnknownEntityException {
193:
194:                return null;
195:            }
196:
197:            public void saveUser(User user) throws UnknownEntityException,
198:                    DataBackendException {
199:
200:            }
201:
202:            public void addUser(User user, String password)
203:                    throws DataBackendException, EntityExistsException {
204:
205:            }
206:
207:            public void removeUser(User user) throws DataBackendException,
208:                    UnknownEntityException {
209:
210:            }
211:
212:            public String encryptPassword(String password) {
213:
214:                return null;
215:            }
216:
217:            public void changePassword(User user, String oldPassword,
218:                    String newPassword) throws PasswordMismatchException,
219:                    UnknownEntityException, DataBackendException {
220:
221:            }
222:
223:            public void forcePassword(User user, String password)
224:                    throws UnknownEntityException, DataBackendException {
225:
226:            }
227:
228:            public AccessControlList getACL(User user)
229:                    throws DataBackendException, UnknownEntityException {
230:
231:                return null;
232:            }
233:
234:            public PermissionSet getPermissions(Role role)
235:                    throws DataBackendException, UnknownEntityException {
236:
237:                return null;
238:            }
239:
240:            public void grant(User user, Group group, Role role)
241:                    throws DataBackendException, UnknownEntityException {
242:
243:            }
244:
245:            public void revoke(User user, Group group, Role role)
246:                    throws DataBackendException, UnknownEntityException {
247:
248:            }
249:
250:            public void revokeAll(User user) throws DataBackendException,
251:                    UnknownEntityException {
252:
253:            }
254:
255:            public void grant(Role role, Permission permission)
256:                    throws DataBackendException, UnknownEntityException {
257:
258:            }
259:
260:            public void revoke(Role role, Permission permission)
261:                    throws DataBackendException, UnknownEntityException {
262:
263:            }
264:
265:            public void revokeAll(Role role) throws DataBackendException,
266:                    UnknownEntityException {
267:
268:            }
269:
270:            public Group getGlobalGroup() {
271:
272:                return null;
273:            }
274:
275:            public Group getNewGroup(String groupName) {
276:
277:                return null;
278:            }
279:
280:            public Role getNewRole(String roleName) {
281:
282:                return null;
283:            }
284:
285:            public Permission getNewPermission(String permissionName) {
286:
287:                return null;
288:            }
289:
290:            public Group getGroup(String name) throws DataBackendException,
291:                    UnknownEntityException {
292:
293:                return null;
294:            }
295:
296:            public Role getRole(String name) throws DataBackendException,
297:                    UnknownEntityException {
298:
299:                return null;
300:            }
301:
302:            public Permission getPermission(String name)
303:                    throws DataBackendException, UnknownEntityException {
304:
305:                return null;
306:            }
307:
308:            public GroupSet getGroups(Criteria criteria)
309:                    throws DataBackendException {
310:
311:                return null;
312:            }
313:
314:            public RoleSet getRoles(Criteria criteria)
315:                    throws DataBackendException {
316:
317:                return null;
318:            }
319:
320:            public PermissionSet getPermissions(Criteria criteria)
321:                    throws DataBackendException {
322:
323:                return null;
324:            }
325:
326:            public GroupSet getAllGroups() throws DataBackendException {
327:
328:                return null;
329:            }
330:
331:            public RoleSet getAllRoles() throws DataBackendException {
332:
333:                return null;
334:            }
335:
336:            public PermissionSet getAllPermissions()
337:                    throws DataBackendException {
338:
339:                return null;
340:            }
341:
342:            public void saveGroup(Group group) throws DataBackendException,
343:                    UnknownEntityException {
344:
345:            }
346:
347:            public void saveRole(Role role) throws DataBackendException,
348:                    UnknownEntityException {
349:
350:            }
351:
352:            public void savePermission(Permission permission)
353:                    throws DataBackendException, UnknownEntityException {
354:
355:            }
356:
357:            public Group addGroup(Group group) throws DataBackendException,
358:                    EntityExistsException {
359:
360:                return null;
361:            }
362:
363:            public Role addRole(Role role) throws DataBackendException,
364:                    EntityExistsException {
365:
366:                return null;
367:            }
368:
369:            public Permission addPermission(Permission permission)
370:                    throws DataBackendException, EntityExistsException {
371:
372:                return null;
373:            }
374:
375:            public void removeGroup(Group group) throws DataBackendException,
376:                    UnknownEntityException {
377:
378:            }
379:
380:            public void removeRole(Role role) throws DataBackendException,
381:                    UnknownEntityException {
382:
383:            }
384:
385:            public void removePermission(Permission permission)
386:                    throws DataBackendException, UnknownEntityException {
387:
388:            }
389:
390:            public void renameGroup(Group group, String name)
391:                    throws DataBackendException, UnknownEntityException {
392:
393:            }
394:
395:            public void renameRole(Role role, String name)
396:                    throws DataBackendException, UnknownEntityException {
397:
398:            }
399:
400:            public void renamePermission(Permission permission, String name)
401:                    throws DataBackendException, UnknownEntityException {
402:
403:            }
404:
405:            public void init() throws InitializationException {
406:
407:            }
408:
409:            public void shutdown() {
410:
411:            }
412:
413:            public boolean isInitialized() {
414:
415:                return false;
416:            }
417:
418:            public void setServiceBroker(ServiceBroker broker) {
419:
420:            }
421:
422:            public void setName(String name) {
423:
424:            }
425:
426:            public Configuration getConfiguration() {
427:                return configuration;
428:            }
429:
430:            public String getRealPath(String path) {
431:
432:                return null;
433:            }
434:
435:            public Category getCategory() {
436:
437:                return null;
438:            }
439:
440:            public String getStatus() throws ServiceException {
441:
442:                return null;
443:            }
444:
445:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.