Class FixturesResource
java.lang.Object
com.xebialabs.xlrelease.api.internal.FixturesResource
@Path("/fixtures")
@Consumes("application/json")
@Produces("application/json")
@Controller
public class FixturesResource
extends Object
Used in the testing environment to set the database to a known state.
-
Constructor Summary
ConstructorsConstructorDescriptionFixturesResource(com.xebialabs.xlrelease.security.PermissionChecker permissions, com.xebialabs.deployit.core.api.InternalSecurityProxy internalSecurityProxy, com.xebialabs.deployit.security.UserService userService, com.xebialabs.xlrelease.service.UserProfileService userProfileService, com.xebialabs.xlrelease.security.SessionService sessionService, com.xebialabs.xlrelease.service.ArchivingService archivingService, com.xebialabs.xlrelease.service.ArchivingScheduleService archivingScheduleService, com.xebialabs.deployit.repository.WorkDirFactory workDirFactory, com.xebialabs.xlrelease.service.VariableService variableService, com.xebialabs.xlrelease.actors.utils.ReleaseActorLifecycleUtils releaseActorLifecycleUtils, com.xebialabs.xlrelease.service.TeamService teamService, com.xebialabs.xlrelease.service.ConfigurationService configurationService, com.xebialabs.xlrelease.events.XLReleaseEventBus eventBus, com.xebialabs.deployit.security.RoleService roleService, com.xebialabs.xlrelease.repository.ActivityLogRepository activityLogRepository, com.xebialabs.xlrelease.repository.FolderRepository folderRepository, com.xebialabs.xlrelease.repository.FolderVariableRepository folderVariableRepository, com.xebialabs.xlrelease.repository.ReleaseRepository releaseRepository, com.xebialabs.xlrelease.service.CiIdService ciIdService, com.xebialabs.xlrelease.repository.TaskRepository taskRepository, com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository, com.xebialabs.xlrelease.repository.CalendarEntryRepository calendarEntryRepository, com.xebialabs.xlrelease.api.internal.CalendarResource calendarResource, com.xebialabs.xlrelease.service.FacetService facetService, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.jdbc.core.JdbcTemplate reportingJdbcTemplate, com.xebialabs.xlrelease.repository.TriggerRepository triggerRepository, com.xebialabs.xlrelease.triggers.actors.TriggerLifecycle<com.xebialabs.xlrelease.domain.Trigger> triggerLifecycle, com.xebialabs.xlrelease.triggers.service.TriggerService triggerService, com.xebialabs.xlrelease.service.UserTokenService userTokenService, com.xebialabs.xlrelease.service.ReleaseSearchService releaseSearchService, Integer retryAttempts) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsearchiveRelease(String releaseId) booleanbooleancheckCommentAdded(String taskId, String textToSearch) voidcreateActivityLogs(String releaseId, List<com.xebialabs.xlrelease.domain.ActivityLogEntry> logs) voidcreateArchivedRelease(com.xebialabs.xlrelease.domain.Release release) voidcreateCiTree(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem ci) Deprecated.voidcreateConfigurationItems(List<com.xebialabs.xlrelease.domain.BaseConfiguration> baseConfigurations) voidcreateEntities(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> entities) Deprecated.com.xebialabs.xlrelease.domain.facet.FacetcreateFacet(com.xebialabs.xlrelease.domain.facet.Facet facet) voidcreateFolders(List<com.xebialabs.xlrelease.domain.folder.Folder> folders) List<com.xebialabs.xlrelease.domain.variables.Variable> createFolderVariables(List<com.xebialabs.xlrelease.domain.variables.Variable> variables) voidcreatePreArchivedRelease(com.xebialabs.xlrelease.domain.Release release) voidcreateRelease(com.xebialabs.xlrelease.domain.Release release) voidcreateReleases(List<com.xebialabs.xlrelease.domain.Release> releases) voidcreateSharedConfigurations(List<com.xebialabs.xlrelease.domain.Configuration> configurations) voidcreateTeams(List<com.xebialabs.xlrelease.domain.Team> teams) voidcreateTrigger(com.xebialabs.xlrelease.domain.Trigger trigger) voidcreateUser(com.xebialabs.xlrelease.views.FixturesUser fixturesUser) voidvoidvoidvoidvoidvoiddeleteFolderVariable(String variableId) voidvoiddeleteRole(String roleName) voiddeleteSharedConfigurations(List<String> configurationIds) voidvoiddeleteTrigger(String triggerId) voiddeleteUser(String login) voiddeleteUserTokens(String username) jakarta.ws.rs.core.ResponseexpectContainingAttachments(String releaseId, com.xebialabs.xlrelease.api.internal.FixturesResource.ExpectedAttachment expectedAttachment) jakarta.ws.rs.core.ResponsepreArchiveRelease(String releaseId) jakarta.ws.rs.core.ResponsevoidupdateEntities(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> entities) voidwriteRolePermissions(String id, List<com.xebialabs.xlrelease.views.RolePermissionsView> rolePermissionsViews) voidwriteRolePrincipals(List<com.xebialabs.xlrelease.views.RolePrincipalsView> rolePrincipalsViews)
-
Constructor Details
-
FixturesResource
@Autowired public FixturesResource(com.xebialabs.xlrelease.security.PermissionChecker permissions, com.xebialabs.deployit.core.api.InternalSecurityProxy internalSecurityProxy, com.xebialabs.deployit.security.UserService userService, com.xebialabs.xlrelease.service.UserProfileService userProfileService, com.xebialabs.xlrelease.security.SessionService sessionService, com.xebialabs.xlrelease.service.ArchivingService archivingService, com.xebialabs.xlrelease.service.ArchivingScheduleService archivingScheduleService, com.xebialabs.deployit.repository.WorkDirFactory workDirFactory, com.xebialabs.xlrelease.service.VariableService variableService, com.xebialabs.xlrelease.actors.utils.ReleaseActorLifecycleUtils releaseActorLifecycleUtils, com.xebialabs.xlrelease.service.TeamService teamService, com.xebialabs.xlrelease.service.ConfigurationService configurationService, com.xebialabs.xlrelease.events.XLReleaseEventBus eventBus, com.xebialabs.deployit.security.RoleService roleService, com.xebialabs.xlrelease.repository.ActivityLogRepository activityLogRepository, com.xebialabs.xlrelease.repository.FolderRepository folderRepository, com.xebialabs.xlrelease.repository.FolderVariableRepository folderVariableRepository, com.xebialabs.xlrelease.repository.ReleaseRepository releaseRepository, com.xebialabs.xlrelease.service.CiIdService ciIdService, com.xebialabs.xlrelease.repository.TaskRepository taskRepository, com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository, com.xebialabs.xlrelease.repository.CalendarEntryRepository calendarEntryRepository, com.xebialabs.xlrelease.api.internal.CalendarResource calendarResource, com.xebialabs.xlrelease.service.FacetService facetService, @Qualifier("xlrRepositoryJdbcTemplate") org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, @Qualifier("reportingJdbcTemplate") org.springframework.jdbc.core.JdbcTemplate reportingJdbcTemplate, com.xebialabs.xlrelease.repository.TriggerRepository triggerRepository, com.xebialabs.xlrelease.triggers.actors.TriggerLifecycle<com.xebialabs.xlrelease.domain.Trigger> triggerLifecycle, com.xebialabs.xlrelease.triggers.service.TriggerService triggerService, com.xebialabs.xlrelease.service.UserTokenService userTokenService, com.xebialabs.xlrelease.service.ReleaseSearchService releaseSearchService, @Value("5") Integer retryAttempts)
-
-
Method Details
-
createEntities
@Consumes("application/json") @Produces("application/json") @POST @Deprecated public void createEntities(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> entities) Deprecated. -
createCiTree
@Consumes("application/json") @Produces("application/json") @POST @Path("tree") @Deprecated public void createCiTree(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem ci) Deprecated. -
createReleases
@Consumes("application/json") @Produces("application/json") @POST @Path("releases") public void createReleases(List<com.xebialabs.xlrelease.domain.Release> releases) -
createRelease
@Consumes("application/json") @Produces("application/json") @POST @Path("release") public void createRelease(com.xebialabs.xlrelease.domain.Release release) -
createActivityLogs
-
createPreArchivedRelease
@Consumes("application/json") @Produces("application/json") @POST @Path("preArchived") public void createPreArchivedRelease(com.xebialabs.xlrelease.domain.Release release) -
createArchivedRelease
@Consumes("application/json") @Produces("application/json") @POST @Path("archived") public void createArchivedRelease(com.xebialabs.xlrelease.domain.Release release) -
preArchiveRelease
@GET @Path("preArchive/{releaseId:.*}") public jakarta.ws.rs.core.Response preArchiveRelease(@PathParam("releaseId") String releaseId) -
archiveRelease
@Path("archive/{releaseId:.*}") @GET public jakarta.ws.rs.core.Response archiveRelease(@PathParam("releaseId") String releaseId) -
triggerArchivingOfCompletedReleases
@POST @Path("archiveAll") public jakarta.ws.rs.core.Response triggerArchivingOfCompletedReleases() -
updateEntities
@Consumes("application/json") @Produces("application/json") @PUT public void updateEntities(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> entities) -
deleteTaskAccess
@Path("task-access") @DELETE public void deleteTaskAccess() -
deleteApplicationEntity
@Path("{id:(Applications|Folder|Template|Release|Custom|Configuration).*}") @DELETE public void deleteApplicationEntity(@PathParam("id") String id) -
createConfigurationItems
@Path("/configurations") @POST public void createConfigurationItems(List<com.xebialabs.xlrelease.domain.BaseConfiguration> baseConfigurations) -
deleteConfigurationItem
@Path("/configuration/{id:.*}") @DELETE public void deleteConfigurationItem(@PathParam("id") String id) -
createUser
@Consumes("application/json") @Produces("application/json") @Path("/user") @POST public void createUser(com.xebialabs.xlrelease.views.FixturesUser fixturesUser) -
createFolders
@Consumes("application/json") @Produces("application/json") @Path("/folders") @POST public void createFolders(List<com.xebialabs.xlrelease.domain.folder.Folder> folders) -
createFolderVariables
-
deleteFolderVariable
@Consumes("application/json") @Produces("application/json") @Path("/folders/variable/{variableId}") @DELETE public void deleteFolderVariable(@PathParam("variableId") String variableId) -
createTeams
@Consumes("application/json") @Produces("application/json") @Path("/teams") @POST public void createTeams(List<com.xebialabs.xlrelease.domain.Team> teams) -
deleteUser
-
deleteRole
-
deleteCalendar
@Path("/calendar") @DELETE public void deleteCalendar() -
deleteCIs
@Path("/cis") @DELETE public void deleteCIs(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> cis) -
expectContainingAttachments
@Path("/expectContainingAttachments/{releaseId:.*}") @POST public jakarta.ws.rs.core.Response expectContainingAttachments(@PathParam("releaseId") String releaseId, com.xebialabs.xlrelease.api.internal.FixturesResource.ExpectedAttachment expectedAttachment) throws IOException - Throws:
IOException
-
writeRolePermissions
-
writeRolePrincipals
@POST @Path("roles/principals") public void writeRolePrincipals(List<com.xebialabs.xlrelease.views.RolePrincipalsView> rolePrincipalsViews) -
checkCommentAdded
-
createFacet
@Consumes("application/json") @Produces("application/json") @POST @Path("facet") public com.xebialabs.xlrelease.domain.facet.Facet createFacet(com.xebialabs.xlrelease.domain.facet.Facet facet) -
checkAuthentication
@GET @Path("auth") public boolean checkAuthentication() -
deleteGlobalVariables
@Path("/globalVariables/") @DELETE public void deleteGlobalVariables() -
createTrigger
@Path("/trigger") @POST public void createTrigger(com.xebialabs.xlrelease.domain.Trigger trigger) -
deleteTrigger
@Path("/trigger/{triggerId:.*}") @DELETE public void deleteTrigger(@PathParam("triggerId") String triggerId) -
deleteUserTokens
@Path("/tokens/{username}") @DELETE public void deleteUserTokens(@PathParam("username") String username) -
deleteAllCategories
@Path("/categories") @DELETE public void deleteAllCategories()
-