Class ScheduleAliasManager

    • Constructor Detail

      • ScheduleAliasManager

        public ScheduleAliasManager()
    • Method Detail

      • addOrUpdateScheduleAlias

        public ScheduleAlias addOrUpdateScheduleAlias​(java.lang.String alias,
                                                      java.lang.String schedule,
                                                      java.lang.String auditUser)
                                               throws java.lang.Exception
        Creates or updates a schedule alias. If one exists with the alias name, it will be updated.
        Parameters:
        alias - Schedule alias name (starts with @).
        schedule - Schedule that is represented by the alias
        auditUser - Optional user that is marked in audit columns. Defaults to "embeddedAPI".
        Returns:
        the added or updated ScheduleAlias
        Throws:
        java.lang.Exception - Any type of unexpected exception.
      • getScheduleAlias

        public ScheduleAlias getScheduleAlias​(java.lang.String alias)
                                       throws java.lang.Exception
        Provides details on a a defined schedule alias.
        Parameters:
        alias - Schedule alias name (starts with @).
        Returns:
        the ScheduleAlias with the matching alias (or null).
        Throws:
        java.lang.Exception - Any type of unexpected exception.
      • deleteScheduleAlias

        public ScheduleAlias deleteScheduleAlias​(java.lang.String alias,
                                                 java.lang.String auditUser)
                                          throws java.lang.Exception
        Deletes the schedule alias with the supplied alias. If none exists, this is a no-op.
        Parameters:
        alias - Schedule alias name (starts with @).
        auditUser - Optional user that is marked in audit columns. Defaults to "embeddedAPI".
        Returns:
        the ScheduleAlias that was deleted (or null).
        Throws:
        java.lang.Exception - Any type of unexpected exception.