mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
renamed AdministratorOf in AdministratorOfFeature
This commit is contained in:
@@ -30,10 +30,10 @@ import org.springframework.stereotype.Component;
|
|||||||
* @author Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
|
* @author Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
@AuthorizationFeatureDocumentation(name = AdministratorOf.NAME,
|
@AuthorizationFeatureDocumentation(name = AdministratorOfFeature.NAME,
|
||||||
description = "It can be used for verify that an user has access "
|
description = "It can be used for verify that an user has access "
|
||||||
+ "to the administrative features of the repository or of a specific community and collection")
|
+ "to the administrative features of the repository or of a specific community and collection")
|
||||||
public class AdministratorOf implements AuthorizationFeature {
|
public class AdministratorOfFeature implements AuthorizationFeature {
|
||||||
|
|
||||||
public static final String NAME = "administratorOf";
|
public static final String NAME = "administratorOf";
|
||||||
|
|
@@ -11,7 +11,7 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilder
|
|||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||||
|
|
||||||
import org.dspace.app.rest.authorization.impl.AdministratorOf;
|
import org.dspace.app.rest.authorization.impl.AdministratorOfFeature;
|
||||||
import org.dspace.app.rest.builder.CollectionBuilder;
|
import org.dspace.app.rest.builder.CollectionBuilder;
|
||||||
import org.dspace.app.rest.builder.CommunityBuilder;
|
import org.dspace.app.rest.builder.CommunityBuilder;
|
||||||
import org.dspace.app.rest.builder.EPersonBuilder;
|
import org.dspace.app.rest.builder.EPersonBuilder;
|
||||||
@@ -58,7 +58,7 @@ public class AdministratorFeatureIT extends AbstractControllerIntegrationTest {
|
|||||||
private SiteService siteService;
|
private SiteService siteService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this hold a reference to the test feature {@link AdministratorOf}
|
* this hold a reference to the test feature {@link AdministratorOfFeature}
|
||||||
*/
|
*/
|
||||||
private AuthorizationFeature administratorFeature;
|
private AuthorizationFeature administratorFeature;
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ public class AdministratorFeatureIT extends AbstractControllerIntegrationTest {
|
|||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
siteService = ContentServiceFactory.getInstance().getSiteService();
|
siteService = ContentServiceFactory.getInstance().getSiteService();
|
||||||
administratorFeature = authorizationFeatureService.find(AdministratorOf.NAME);
|
administratorFeature = authorizationFeatureService.find(AdministratorOfFeature.NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@@ -14,7 +14,7 @@ import static org.springframework.test.web.servlet.request.MockMvcRequestBuilder
|
|||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||||
|
|
||||||
import org.dspace.app.rest.authorization.impl.AdministratorOf;
|
import org.dspace.app.rest.authorization.impl.AdministratorOfFeature;
|
||||||
import org.dspace.app.rest.builder.EPersonBuilder;
|
import org.dspace.app.rest.builder.EPersonBuilder;
|
||||||
import org.dspace.app.rest.converter.ConverterService;
|
import org.dspace.app.rest.converter.ConverterService;
|
||||||
import org.dspace.app.rest.matcher.AuthorizationMatcher;
|
import org.dspace.app.rest.matcher.AuthorizationMatcher;
|
||||||
@@ -51,7 +51,7 @@ public class EnrollAdministratorIT extends AbstractControllerIntegrationTest {
|
|||||||
private SiteService siteService;
|
private SiteService siteService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this hold a reference to the test feature {@link AdministratorOf}
|
* this hold a reference to the test feature {@link AdministratorOfFeature}
|
||||||
*/
|
*/
|
||||||
private AuthorizationFeature administratorFeature;
|
private AuthorizationFeature administratorFeature;
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ public class EnrollAdministratorIT extends AbstractControllerIntegrationTest {
|
|||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
siteService = ContentServiceFactory.getInstance().getSiteService();
|
siteService = ContentServiceFactory.getInstance().getSiteService();
|
||||||
administratorFeature = authorizationFeatureService.find(AdministratorOf.NAME);
|
administratorFeature = authorizationFeatureService.find(AdministratorOfFeature.NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user