All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sap.prd.cmintegration.cli.GetTransportModifiableSOLMAN Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package sap.prd.cmintegration.cli;

import static sap.prd.cmintegration.cli.Commands.Helpers.getCommandName;

import java.util.function.Function;

import org.apache.commons.cli.Options;

import com.sap.cmclient.Transport;

/**
 *  Checks if a transport is modifiable.
 */
@CommandDescriptor(name="is-transport-modifiable", type = BackendType.SOLMAN)
class GetTransportModifiableSOLMAN extends TransportRelatedSOLMAN {

    private static class Opts {
        static Options addOptions(Options opts, boolean includeStandardOpts) {
            TransportRelatedSOLMAN.Opts.addOptions(opts, includeStandardOpts);
            return opts.addOption(Commands.CMOptions.RETURN_CODE);
        }
    }
    GetTransportModifiableSOLMAN(String host, String user, String password, String changeId, String transportId, boolean returnCodeMode) {
        super(host, user, password, changeId, transportId, returnCodeMode);
    }

    protected Function getAction() {
        return isModifiable;
    }

    public final static void main(String[] args) throws Exception {
        TransportRelatedSOLMAN.main(GetTransportModifiableSOLMAN.class, Opts.addOptions(new Options(), true), args,
            getCommandName(GetTransportModifiableSOLMAN.class), "",
            "Returns 'true' if the transport is modifiable. Otherwise 'false'.");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy