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.

RoleManagerStub.java 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. package org.apache.archiva.web.rss;
  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("RoleManagerStub")
  29. public class RoleManagerStub
  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 String createTemplatedRole( String templateId, String resource )
  46. throws RoleManagerException
  47. {
  48. //To change body of implemented methods use File | Settings | File Templates.
  49. return null;
  50. }
  51. @Override
  52. public void removeTemplatedRole( String templateId, String resource )
  53. throws RoleManagerException
  54. {
  55. //To change body of implemented methods use File | Settings | File Templates.
  56. }
  57. @Override
  58. public String moveTemplatedRole( String templateId, String oldResource, String newResource )
  59. throws RoleManagerException
  60. {
  61. //To change body of implemented methods use File | Settings | File Templates.
  62. return null;
  63. }
  64. @Override
  65. public void assignRole( String roleId, String principal )
  66. throws RoleManagerException
  67. {
  68. //To change body of implemented methods use File | Settings | File Templates.
  69. }
  70. @Override
  71. public void assignRoleByName( String roleName, String principal )
  72. throws RoleManagerException
  73. {
  74. //To change body of implemented methods use File | Settings | File Templates.
  75. }
  76. @Override
  77. public void assignTemplatedRole( String templateId, String resource, String principal )
  78. throws RoleManagerException
  79. {
  80. //To change body of implemented methods use File | Settings | File Templates.
  81. }
  82. @Override
  83. public void unassignRole( String roleId, String principal )
  84. throws RoleManagerException
  85. {
  86. //To change body of implemented methods use File | Settings | File Templates.
  87. }
  88. @Override
  89. public void unassignRoleByName( String roleName, String principal )
  90. throws RoleManagerException
  91. {
  92. //To change body of implemented methods use File | Settings | File Templates.
  93. }
  94. @Override
  95. public boolean roleExists( String roleId )
  96. throws RoleManagerException
  97. {
  98. return false; //To change body of implemented methods use File | Settings | File Templates.
  99. }
  100. @Override
  101. public boolean templatedRoleExists( String templateId, String resource )
  102. throws RoleManagerException
  103. {
  104. return false; //To change body of implemented methods use File | Settings | File Templates.
  105. }
  106. @Override
  107. public RedbackRoleModel getModel()
  108. {
  109. return null; //To change body of implemented methods use File | Settings | File Templates.
  110. }
  111. @Override
  112. public void verifyTemplatedRole( String templateID, String resource )
  113. throws RoleManagerException
  114. {
  115. //To change body of implemented methods use File | Settings | File Templates.
  116. }
  117. @Override
  118. public void initialize()
  119. {
  120. //To change body of implemented methods use File | Settings | File Templates.
  121. }
  122. }