Class FixDelegator

    • Constructor Detail

      • FixDelegator

        public FixDelegator​(IOptionsServer server)
        Instantiates a new fix delegator.
        Parameters:
        server - the server
    • Method Detail

      • fixJobs

        public java.util.List<IFix> fixJobs​(java.util.List<java.lang.String> jobIds,
                                            int changeListId,
                                            java.lang.String status,
                                            boolean delete)
                                     throws ConnectionException,
                                            RequestException,
                                            AccessException
        Description copied from interface: IFixDelegator
        Mark each named job as being fixed by the changelist number given with changeListId.
        Specified by:
        fixJobs in interface IFixDelegator
        Parameters:
        jobIds - non-null non-empty list of affected job IDs.
        changeListId - changelist ID for affected changelist.
        status - the status
        delete - whether to delete.
        Returns:
        list of affected fixes.
        Throws:
        ConnectionException - the connection exception
        RequestException - the request exception
        AccessException - the access exception
      • fixJobs

        public java.util.List<IFix> fixJobs​(@Nonnull
                                            java.util.List<java.lang.String> jobIds,
                                            int changeListId,
                                            FixJobsOptions opts)
                                     throws P4JavaException
        Description copied from interface: IFixDelegator
        Mark each named job as being fixed by the changelist number given with changeListId.
        Specified by:
        fixJobs in interface IFixDelegator
        Parameters:
        jobIds - non-null non-empty list of affected job IDs.
        changeListId - changelist ID for affected changelist.
        opts - FixJobsOptions object describing optional parameters; if null, no options are set.
        Returns:
        list of affected fixes.
        Throws:
        P4JavaException - if an error occurs processing this method and its parameters.