Class ListOperationService

    • Constructor Detail

      • ListOperationService

        public ListOperationService​(InterMineAPI api)
        Constructor.
        Parameters:
        api - The InterMine application object.
    • Method Detail

      • getNewListType

        public java.lang.String getNewListType​(ListInput input)
        Description copied from class: ListMakerService
        Calculate the type of the new list.
        Specified by:
        getNewListType in class ListMakerService
        Parameters:
        input - The parsed parameter input.
        Returns:
        The type name.
      • getOperation

        protected abstract BagOperation getOperation​(ListInput input)
        Get the BagOperation that will create the list.
        Parameters:
        input - The parameters provided by the user.
        Returns:
        A BagOperation.
      • makeList

        protected void makeList​(ListInput input,
                                java.lang.String type,
                                Profile profile,
                                java.util.Set<java.lang.String> rubbishbin)
                         throws java.lang.Exception
        Description copied from class: ListMakerService
        Make the list requested by the user.
        Specified by:
        makeList in class ListMakerService
        Parameters:
        input - The parsed parameter input.
        type - The type of the new list.
        profile - The profile to save the list in.
        rubbishbin - The accumulator to store the list of bags to delete.
        Throws:
        java.lang.Exception - If something goes wrong.