Class SpecDelegator

    • Constructor Detail

      • SpecDelegator

        public SpecDelegator​(IOptionsServer server)
        Instantiates a new job spec delegator.
        Parameters:
        server - the server
    • Method Detail

      • updateSpec

        public java.lang.String updateSpec​(CustomSpec type,
                                           java.util.Map<java.lang.String,​java.lang.Object> spec)
                                    throws P4JavaException
        Description copied from interface: ISpecDelegator
        Update a Perforce spec on the Perforce server.
        Specified by:
        updateSpec in interface ISpecDelegator
        Parameters:
        type - spec type, ('job' or 'stream') to be updated.
        spec - updated spec as a map.
        Returns:
        non-null result message string from the Perforce server; this may include form trigger output pre-pended and / or appended to the "normal" message.
        Throws:
        P4JavaException - if any error occurs in the processing of this method.
      • updateSpecString

        public java.lang.String updateSpecString​(CustomSpec type,
                                                 java.lang.String spec)
                                          throws P4JavaException
        Description copied from interface: ISpecDelegator
        Update a Perforce spec on the Perforce server.
        Specified by:
        updateSpecString in interface ISpecDelegator
        Parameters:
        type - spec type, ('job' or 'stream') to be updated.
        spec - updated spec as a map.
        Returns:
        non-null result message string from the Perforce server; this may include form trigger output pre-pended and / or appended to the "normal" message.
        Throws:
        P4JavaException - if any error occurs in the processing of this method.