You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TestRoleManager.java 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. package org.apache.archiva.consumers.lucene.test;
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. import org.apache.archiva.redback.role.RoleManager;
  21. import org.apache.archiva.redback.role.RoleManagerException;
  22. import org.apache.archiva.redback.role.model.RedbackRoleModel;
  23. import org.springframework.stereotype.Service;
  24. import java.net.URL;
  25. /**
  26. * @author Olivier Lamy
  27. */
  28. @Service( "roleManager#test" )
  29. public class TestRoleManager
  30. implements RoleManager
  31. {
  32. @Override
  33. public void loadRoleModel( URL resourceLocation )
  34. throws RoleManagerException
  35. {
  36. //To change body of implemented methods use File | Settings | File Templates.
  37. }
  38. @Override
  39. public void loadRoleModel( RedbackRoleModel model )
  40. throws RoleManagerException
  41. {
  42. //To change body of implemented methods use File | Settings | File Templates.
  43. }
  44. @Override
  45. public void createTemplatedRole( String templateId, String resource )
  46. throws RoleManagerException
  47. {
  48. //To change body of implemented methods use File | Settings | File Templates.
  49. }
  50. @Override
  51. public void removeTemplatedRole( String templateId, String resource )
  52. throws RoleManagerException
  53. {
  54. //To change body of implemented methods use File | Settings | File Templates.
  55. }
  56. @Override
  57. public void updateRole( String templateId, String oldResource, String newResource )
  58. throws RoleManagerException
  59. {
  60. //To change body of implemented methods use File | Settings | File Templates.
  61. }
  62. @Override
  63. public void assignRole( String roleId, String principal )
  64. throws RoleManagerException
  65. {
  66. //To change body of implemented methods use File | Settings | File Templates.
  67. }
  68. @Override
  69. public void assignRoleByName( String roleName, String principal )
  70. throws RoleManagerException
  71. {
  72. //To change body of implemented methods use File | Settings | File Templates.
  73. }
  74. @Override
  75. public void assignTemplatedRole( String templateId, String resource, String principal )
  76. throws RoleManagerException
  77. {
  78. //To change body of implemented methods use File | Settings | File Templates.
  79. }
  80. @Override
  81. public void unassignRole( String roleId, String principal )
  82. throws RoleManagerException
  83. {
  84. //To change body of implemented methods use File | Settings | File Templates.
  85. }
  86. @Override
  87. public void unassignRoleByName( String roleName, String principal )
  88. throws RoleManagerException
  89. {
  90. //To change body of implemented methods use File | Settings | File Templates.
  91. }
  92. @Override
  93. public boolean roleExists( String roleId )
  94. throws RoleManagerException
  95. {
  96. return false; //To change body of implemented methods use File | Settings | File Templates.
  97. }
  98. @Override
  99. public boolean templatedRoleExists( String templateId, String resource )
  100. throws RoleManagerException
  101. {
  102. return false; //To change body of implemented methods use File | Settings | File Templates.
  103. }
  104. @Override
  105. public RedbackRoleModel getModel()
  106. {
  107. return null; //To change body of implemented methods use File | Settings | File Templates.
  108. }
  109. @Override
  110. public void verifyTemplatedRole( String templateID, String resource )
  111. throws RoleManagerException
  112. {
  113. //To change body of implemented methods use File | Settings | File Templates.
  114. }
  115. @Override
  116. public void initialize()
  117. {
  118. //To change body of implemented methods use File | Settings | File Templates.
  119. }
  120. }