Interface DirectiveInterface

All Superinterfaces:
MetadataInterface, PublicObjectInterface, Remote, TransformationInterface

public interface DirectiveInterface extends TransformationInterface
This is the class for DirectiveInterface.
  • Field Details

    • PUBLIC_TYPE

      static final String PUBLIC_TYPE
      The public type of this object.
      See Also:
    • ROLE_DIRECTIVE

      static final String ROLE_DIRECTIVE
      The Transform role of this object if is not a template.
      See Also:
    • ROLE_DIRECTIVE_TEMPLATE

      static final String ROLE_DIRECTIVE_TEMPLATE
      The Transform role of this object if it is a template.
      See Also:
  • Method Details

    • isTemplate

      boolean isTemplate() throws RemoteException, ServiceException
      Get whether this object is a directive template or not.
      Returns:
      true if template, false otherwise.
      Throws:
      RemoteException - if error getting remote environment.
      ServiceException
    • setTemplate

      void setTemplate(boolean bIsTemplate) throws RemoteException, ServiceException
      Set this object to be a template or not.
      Parameters:
      bIsTemplate - input boolean to set true for template, false otherwise.
      Throws:
      RemoteException - if error getting remote environment.
      ServiceException
    • getInternalIdentity

      String getInternalIdentity() throws RemoteException, ServiceException
      Get the identity of this directive in the using application.
      Returns:
      id if found, null or empty string otherwise.
      Throws:
      RemoteException - if error getting remote environment.
      ServiceException
    • setInternalIdentity

      void setInternalIdentity(String internalId) throws RemoteException, ServiceException
      Set the identity of this directive in the using application. This should not be set/used outside the application that manages this object.
      Parameters:
      internalId - the UUID/GUID of this directive.
      Throws:
      RemoteException - if error getting remote environment.
      ServiceException
    • getExecutionURIById

      URI getExecutionURIById() throws RemoteException, ServiceException
      Get the URI used to execute a directive by internal identity. This URI should be called with a POST action and will return a job information necessary for status of the execution. This should be used with the POST HttpMethod. The returned object should have a "link" with rel="status" to used for status. See: http://sww.sas.com/saspedia/Data_Loader_REST_API#POST_.2Fjobs_:_Run_Directive See: http://sww.sas.com/saspedia/Data_Loader_REST_API for more details.
      Returns:
      URI if able to build, null otherwise.
      Throws:
      RemoteException - if error contacting OMR
      ServiceException - if error building up URI.
    • getExecutionURIByPath

      URI getExecutionURIByPath() throws RemoteException, ServiceException
      Get the URI used to execute a directive by path. This URI should be called with a POST action and will return a job information necessary for status of the execution. This should be used with the POST HttpMethod. The returned object should have a "link" with rel="status" to used for status. See: http://sww.sas.com/saspedia/Data_Loader_REST_API#POST_.2Fjobs_:_Run_Directive See: http://sww.sas.com/saspedia/Data_Loader_REST_API for more details.
      Returns:
      URI if able to build, null otherwise.
      Throws:
      RemoteException - if error contacting OMR
      ServiceException - if error building up URI.
    • getApplicationRestURI

      URI getApplicationRestURI() throws RemoteException, ServiceException
      Get the hosting application REST API URI for this object type. This should get you to the following API: http://sww.sas.com/saspedia/Data_Loader_REST_API
      Returns:
      URI if able to build, null otherwise.
      Throws:
      RemoteException - if error contacting OMR
      ServiceException - if error building up URI.
    • getApplicationOpenURI

      URI getApplicationOpenURI() throws RemoteException, ServiceException
      Get the hosting application Web access URI for this object type. This is for use in a Browser control or application. This should be used with the GET HttpMethod.
      Returns:
      URI if able to build, null otherwise.
      Throws:
      RemoteException - if error contacting OMR
      ServiceException - if error building up URI.