001// --------------------------------------------------------------------------------
002// Copyright 2002-2024 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016
017package com.echothree.control.user.job.common;
018
019import com.echothree.control.user.job.common.form.*;
020import com.echothree.model.data.user.common.pk.UserVisitPK;
021import com.echothree.util.common.command.CommandResult;
022
023public interface JobService
024        extends JobForms {
025    
026    // -------------------------------------------------------------------------
027    //   Testing
028    // -------------------------------------------------------------------------
029    
030    String ping();
031    
032    // --------------------------------------------------------------------------------
033    //   Jobs
034    // --------------------------------------------------------------------------------
035    
036    CommandResult createJob(UserVisitPK userVisitPK, CreateJobForm form);
037    
038    CommandResult getJob(UserVisitPK userVisitPK, GetJobForm form);
039    
040    CommandResult getJobs(UserVisitPK userVisitPK, GetJobsForm form);
041    
042    CommandResult getJobStatusChoices(UserVisitPK userVisitPK, GetJobStatusChoicesForm form);
043    
044    CommandResult setJobStatus(UserVisitPK userVisitPK, SetJobStatusForm form);
045    
046    CommandResult editJob(UserVisitPK userVisitPK, EditJobForm form);
047    
048    CommandResult deleteJob(UserVisitPK userVisitPK, DeleteJobForm form);
049    
050    CommandResult startJob(UserVisitPK userVisitPK, StartJobForm form);
051    
052    CommandResult endJob(UserVisitPK userVisitPK, EndJobForm form);
053    
054    // --------------------------------------------------------------------------------
055    //   Job Descriptions
056    // --------------------------------------------------------------------------------
057    
058    CommandResult createJobDescription(UserVisitPK userVisitPK, CreateJobDescriptionForm form);
059    
060    CommandResult getJobDescriptions(UserVisitPK userVisitPK, GetJobDescriptionsForm form);
061    
062    CommandResult editJobDescription(UserVisitPK userVisitPK, EditJobDescriptionForm form);
063    
064    CommandResult deleteJobDescription(UserVisitPK userVisitPK, DeleteJobDescriptionForm form);
065    
066}