123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508 |
- package org.apache.archiva.consumers.lucene.test;
- /*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
- import org.apache.archiva.redback.rbac.Operation;
- import org.apache.archiva.redback.rbac.Permission;
- import org.apache.archiva.redback.rbac.RBACManager;
- import org.apache.archiva.redback.rbac.RBACManagerListener;
- import org.apache.archiva.redback.rbac.RbacManagerException;
- import org.apache.archiva.redback.rbac.RbacObjectInvalidException;
- import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
- import org.apache.archiva.redback.rbac.Resource;
- import org.apache.archiva.redback.rbac.Role;
- import org.apache.archiva.redback.rbac.UserAssignment;
- import org.springframework.stereotype.Service;
-
- import java.util.Collection;
- import java.util.List;
- import java.util.Map;
- import java.util.Set;
-
- /**
- * @author Olivier Lamy
- */
- @Service("rbacManager#test")
- public class TestRBACManager implements RBACManager
- {
-
- @Override
- public void initialize()
- {
-
- }
-
- @Override
- public boolean isFinalImplementation()
- {
- return false;
- }
-
- @Override
- public String getDescriptionKey()
- {
- return "archiva.redback.rbacmanager.test";
- }
-
- @Override
- public void addListener( RBACManagerListener listener )
- {
-
- }
-
- @Override
- public void removeListener( RBACManagerListener listener )
- {
-
- }
-
- @Override
- public Role createRole( String name )
- {
- return null;
- }
-
- @Override
- public Role createRole( String id, String name )
- {
- return null;
- }
-
- @Override
- public boolean roleExists( String name )
- {
- return false;
- }
-
- @Override
- public boolean roleExistsById( String id ) throws RbacManagerException
- {
- return false;
- }
-
- @Override
- public boolean roleExists( Role role )
- {
- return false;
- }
-
- @Override
- public Role saveRole( Role role )
- throws RbacObjectInvalidException, RbacManagerException
- {
- return null;
- }
-
- @Override
- public void saveRoles( Collection<Role> roles )
- throws RbacObjectInvalidException, RbacManagerException
- {
-
- }
-
- @Override
- public Role getRole( String roleName )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null;
- }
-
- @Override
- public Role getRoleById( String id ) throws RbacObjectNotFoundException, RbacManagerException
- {
- return null;
- }
-
- @Override
- public Map<String, Role> getRoles( Collection<String> roleNames )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void addChildRole( Role role, Role childRole )
- throws RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Map<String, Role> getChildRoleNames( Role role )
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Map<String, ? extends Role> getChildRoleIds( Role role ) throws RbacManagerException
- {
- return null;
- }
-
- @Override
- public Map<String, Role> getParentRoleNames( Role role )
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Map<String, ? extends Role> getParentRoleIds( Role role ) throws RbacManagerException
- {
- return null;
- }
-
- @Override
- public List<Role> getAllRoles()
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Set<Role> getEffectiveRoles( Role role )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removeRole( Role role )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removeRole( String roleName )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removeRoleById( String id ) throws RbacObjectNotFoundException, RbacManagerException
- {
-
- }
-
- @Override
- public Permission createPermission( String name )
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Permission createPermission( String name, String operationName, String resourceIdentifier )
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public boolean permissionExists( String name )
- {
- return false; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public boolean permissionExists( Permission permission )
- {
- return false; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Permission savePermission( Permission permission )
- throws RbacObjectInvalidException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Permission getPermission( String permissionName )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public List<Permission> getAllPermissions()
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removePermission( Permission permission )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removePermission( String permissionName )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Operation createOperation( String name )
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public boolean operationExists( String name )
- {
- return false; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public boolean operationExists( Operation operation )
- {
- return false;
- }
-
- @Override
- public Operation saveOperation( Operation operation )
- throws RbacObjectInvalidException, RbacManagerException
- {
- return null;
- }
-
- @Override
- public Operation getOperation( String operationName )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null;
- }
-
- @Override
- public List<Operation> getAllOperations()
- throws RbacManagerException
- {
- return null;
- }
-
- @Override
- public void removeOperation( Operation operation )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- }
-
- @Override
- public void removeOperation( String operationName )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- }
-
- @Override
- public Resource createResource( String identifier )
- throws RbacManagerException
- {
- return null;
- }
-
- @Override
- public boolean resourceExists( String identifier )
- {
- return false; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public boolean resourceExists( Resource resource )
- {
- return false; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Resource saveResource( Resource resource )
- throws RbacObjectInvalidException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Resource getResource( String resourceIdentifier )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public List<Resource> getAllResources()
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removeResource( Resource resource )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removeResource( String resourceIdentifier )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public UserAssignment createUserAssignment( String principal )
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public boolean userAssignmentExists( String principal )
- {
- return false; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public boolean userAssignmentExists( UserAssignment assignment )
- {
- return false; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public UserAssignment saveUserAssignment( UserAssignment userAssignment )
- throws RbacObjectInvalidException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public UserAssignment getUserAssignment( String principal )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public List<UserAssignment> getAllUserAssignments()
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public List<UserAssignment> getUserAssignmentsForRoles( Collection<String> roleIds )
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removeUserAssignment( UserAssignment userAssignment )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void removeUserAssignment( String principal )
- throws RbacObjectNotFoundException, RbacObjectInvalidException, RbacManagerException
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Collection<Role> getAssignedRoles( String principal )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Collection<Role> getAssignedRoles( UserAssignment userAssignment )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Collection<Role> getEffectivelyUnassignedRoles( String principal )
- throws RbacManagerException, RbacObjectNotFoundException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Collection<Role> getEffectivelyAssignedRoles( String principal )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Collection<Role> getUnassignedRoles( String principal )
- throws RbacManagerException, RbacObjectNotFoundException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Set<Permission> getAssignedPermissions( String principal )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Map<String, List<? extends Permission>> getAssignedPermissionMap( String principal )
- throws RbacObjectNotFoundException, RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public List<Role> getAllAssignableRoles()
- throws RbacManagerException, RbacObjectNotFoundException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public Resource getGlobalResource()
- throws RbacManagerException
- {
- return null; //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public void eraseDatabase()
- {
- //To change body of implemented methods use File | Settings | File Templates.
- }
-
- @Override
- public boolean isReadOnly()
- {
- return false;
- }
- }
|