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

    Constructors
    Constructor
    Description
    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, 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 Type
    Method
    Description
    jakarta.ws.rs.core.Response
     
    boolean
     
    boolean
    checkCommentAdded(String taskId, String textToSearch)
     
    void
    createActivityLogs(String releaseId, List<com.xebialabs.xlrelease.domain.ActivityLogEntry> logs)
     
    void
    createArchivedRelease(com.xebialabs.xlrelease.domain.Release release)
     
    void
    createCiTree(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem ci)
    Deprecated.
    void
    createConfigurationItems(List<com.xebialabs.xlrelease.domain.BaseConfiguration> baseConfigurations)
     
    void
    createEntities(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> entities)
    Deprecated.
    com.xebialabs.xlrelease.domain.facet.Facet
    createFacet(com.xebialabs.xlrelease.domain.facet.Facet facet)
     
    void
    createFolders(List<com.xebialabs.xlrelease.domain.folder.Folder> folders)
     
    List<com.xebialabs.xlrelease.domain.variables.Variable>
    createFolderVariables(List<com.xebialabs.xlrelease.domain.variables.Variable> variables)
     
    void
    createPreArchivedRelease(com.xebialabs.xlrelease.domain.Release release)
     
    void
    createRelease(com.xebialabs.xlrelease.domain.Release release)
     
    void
    createReleases(List<com.xebialabs.xlrelease.domain.Release> releases)
     
    void
    createSharedConfigurations(List<com.xebialabs.xlrelease.domain.Configuration> configurations)
     
    void
    createTeams(List<com.xebialabs.xlrelease.domain.Team> teams)
     
    void
    createTrigger(com.xebialabs.xlrelease.domain.Trigger trigger)
     
    void
    createUser(com.xebialabs.xlrelease.views.FixturesUser fixturesUser)
     
    void
     
    void
     
    void
     
    void
    deleteCIs(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> cis)
     
    void
     
    void
     
    void
     
    void
    deleteRole(String roleName)
     
    void
     
    void
     
    void
    deleteTrigger(String triggerId)
     
    void
     
    void
     
    jakarta.ws.rs.core.Response
    expectContainingAttachments(String releaseId, com.xebialabs.xlrelease.api.internal.FixturesResource.ExpectedAttachment expectedAttachment)
     
    jakarta.ws.rs.core.Response
     
    jakarta.ws.rs.core.Response
     
    void
    updateEntities(List<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> entities)
     
    void
    writeRolePermissions(String id, List<com.xebialabs.xlrelease.views.RolePermissionsView> rolePermissionsViews)
     
    void
    writeRolePrincipals(List<com.xebialabs.xlrelease.views.RolePrincipalsView> rolePrincipalsViews)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @Consumes("application/json") @Produces("application/json") @POST @Path("activityLogs/{releaseId:.*}") public void createActivityLogs(@PathParam("releaseId") String releaseId, List<com.xebialabs.xlrelease.domain.ActivityLogEntry> logs)
    • 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

      @Consumes("application/json") @Produces("application/json") @Path("/folders/variables") @POST public List<com.xebialabs.xlrelease.domain.variables.Variable> createFolderVariables(List<com.xebialabs.xlrelease.domain.variables.Variable> variables)
    • 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)
    • createSharedConfigurations

      @Consumes("application/json") @Produces("application/json") @Path("/shared") @POST public void createSharedConfigurations(List<com.xebialabs.xlrelease.domain.Configuration> configurations)
    • deleteSharedConfigurations

      @Consumes("application/json") @Produces("application/json") @Path("/shared") @DELETE public void deleteSharedConfigurations(List<String> configurationIds)
    • deleteUser

      @Path("/user/{login}") @DELETE public void deleteUser(@PathParam("login") String login)
    • deleteRole

      @Path("/role/{roleName}") @DELETE public void deleteRole(@PathParam("roleName") String roleName)
    • 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

      @POST @Path("roles/permissions/{id:.*?}") public void writeRolePermissions(@PathParam("id") String id, List<com.xebialabs.xlrelease.views.RolePermissionsView> rolePermissionsViews)
    • writeRolePrincipals

      @POST @Path("roles/principals") public void writeRolePrincipals(List<com.xebialabs.xlrelease.views.RolePrincipalsView> rolePrincipalsViews)
    • checkCommentAdded

      @POST @Path("expectCommentAdded/{taskId:.*?}") public boolean checkCommentAdded(@PathParam("taskId") String taskId, String textToSearch)
    • 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()