@Named @Path(value="/fixture") @Produces(value="application/json") @Consumes(value="application/json") public class TestkitFixtureResource extends Object
Constructor and Description |
---|
TestkitFixtureResource(DirectoryManager directoryManager,
ApplicationManager applicationManager,
ApplicationFactory crowdApplicationFactory,
GroupAdministrationConfigurationService groupAdministrationConfigurationService,
TombstoneManager tombstoneManager) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createSampleDirectory(int userCount,
int groupCount,
int usersPerGroup,
int nestedGroupCount,
boolean createGroupManagingAllGroups,
String namePrefix) |
javax.ws.rs.core.Response |
loginUsers(String cachedName,
String delegatedName,
boolean includeExisting)
The purpose of this method is to fill in cache of the delegated directory by logging in all users from cached
directory, that should be pointed at the same target directory.
|
void |
removeTombstones() |
javax.ws.rs.core.Response |
updateDirectory(String directoryName,
String addNamePrefix,
int addUserCount,
int renameUserCount,
int reAddUserCount,
int updateUserCount,
int userMembershipModifications,
int groupMembershipModifications)
Modifies directory entities.
|
@Inject public TestkitFixtureResource(DirectoryManager directoryManager, ApplicationManager applicationManager, ApplicationFactory crowdApplicationFactory, GroupAdministrationConfigurationService groupAdministrationConfigurationService, TombstoneManager tombstoneManager)
@Path(value="/directory/internal") @POST public javax.ws.rs.core.Response createSampleDirectory(@QueryParam(value="users") @DefaultValue(value="10000") int userCount, @QueryParam(value="groups") @DefaultValue(value="1000") int groupCount, @QueryParam(value="usersPerGroup") @DefaultValue(value="25") int usersPerGroup, @QueryParam(value="nestedGroupCount") @DefaultValue(value="10") int nestedGroupCount, @QueryParam(value="createGroupManagingAllGroups") @DefaultValue(value="false") boolean createGroupManagingAllGroups, @QueryParam(value="namePrefix") @DefaultValue(value="") String namePrefix) throws Exception
Exception
@Path(value="/directory/internal/update") @POST public javax.ws.rs.core.Response updateDirectory(@QueryParam(value="directoryName") String directoryName, @QueryParam(value="addNamePrefix") @DefaultValue(value="") String addNamePrefix, @QueryParam(value="addUserCount") int addUserCount, @QueryParam(value="renameUserCount") int renameUserCount, @QueryParam(value="reAddUserCount") int reAddUserCount, @QueryParam(value="updateUserCount") int updateUserCount, @QueryParam(value="userMembershipModifications") int userMembershipModifications, @QueryParam(value="groupMembershipModifications") int groupMembershipModifications) throws Exception
directoryName
- name of the directory to modifyaddNamePrefix
- prefix of names of users to addaddUserCount
- number of users to addrenameUserCount
- number of users to renamereAddUserCount
- number of users to remove and re-add with different nameupdateUserCount
- number of users to updateuserMembershipModifications
- number of user memberships to remove and addgroupMembershipModifications
- number of group memberships to remove and addException
@Path(value="/directory/delegated/loginusers") public javax.ws.rs.core.Response loginUsers(@QueryParam(value="cachedName") String cachedName, @QueryParam(value="delegatedName") String delegatedName, @QueryParam(value="includeExisting") boolean includeExisting) throws Exception
cachedName
- name of the directory to fetch the user names fromdelegatedName
- name of the delegated directoryincludeExisting
- whether users already existing in the delegated directory should be logged inException
@Path(value="/tombstone") @DELETE public void removeTombstones()
Copyright © 2021 Atlassian. All rights reserved.
View cookie preferences