Class ExtractorOfAInprogressSubmissionInformations


  • @Component("extractorOf")
    public class ExtractorOfAInprogressSubmissionInformations
    extends Object
    Methods of this class are used on PreAuthorize annotations to convert input parameters.
    Author:
    Mykhaylo Boychuk (mykhaylo.boychuk at 4science.it)
    • Constructor Detail

      • ExtractorOfAInprogressSubmissionInformations

        public ExtractorOfAInprogressSubmissionInformations()
    • Method Detail

      • getAInprogressSubmissionID

        public Integer getAInprogressSubmissionID​(@Nullable
                                                  javax.servlet.http.HttpServletRequest request,
                                                  Integer versionHistoryId)
        This method is used on security checks, given a versionHistory id, it searches the latest version and checks if there is a Workspace/Workflow item in progress submission, if yes return the id of this one, otherwise returns null.
        Parameters:
        request - The current request
        versionHistoryId - VersionHistoryId
        Returns:
      • getAInprogressSubmissionTarget

        public String getAInprogressSubmissionTarget​(@Nullable
                                                     javax.servlet.http.HttpServletRequest request,
                                                     Integer versionHistoryId)
        This method is used on security checks, given a versionHistory id, it searches the latest version and checks if there is a Workspace/Workflow item in progress submission, if yes return the rest name - 'workspaceitem' or 'workflowitem', otherwise it returns the empty string.
        Parameters:
        request - The current request
        versionHistoryId - VersionHistoryId
        Returns:
      • getVersionIdByItemUUID

        public Integer getVersionIdByItemUUID​(@Nullable
                                              javax.servlet.http.HttpServletRequest request,
                                              UUID uuid)
        This method is used on security checks, given an item UUID, it searches the relative version, if version exist return its id, otherwise returns null.
        Parameters:
        request - The current request
        uuid - Item uuid
        Returns: