Class ApplicationService

java.lang.Object
com.symphony.bdk.core.service.application.ApplicationService

@API(status=STABLE) public class ApplicationService extends Object
Service class for managing the applications and the application entitlements.

This services used for retrieving information about a particular application or application entitlements, performing some actions related to the applications like:

  • Create an application
  • Update an existing application
  • Delete an existing application
  • Get the information of an existing application
  • Update application entitlements
  • Update user applications

  • Constructor Details

  • Method Details

    • createApplication

      public ApplicationDetail createApplication(@Nonnull ApplicationDetail applicationDetail)
      Create a new application.
      Parameters:
      applicationDetail - Contains the following fields for creating an application: appId, name, appUrl, domain, and publisher. Note that appUrl is not required.
      Returns:
      The created application.
      See Also:
    • updateApplication

      public ApplicationDetail updateApplication(@Nonnull String appId, @Nonnull ApplicationDetail applicationDetail)
      Update an existing application.
      Parameters:
      appId - Id of the application needs to be updated.
      applicationDetail - Contains the following fields for creating an application: appId, name, appUrl, domain, and publisher. Note that appUrl is not required.
      Returns:
      The updated application.
      See Also:
    • deleteApplication

      public void deleteApplication(@Nonnull String appId)
      Delete an existing application.
      Parameters:
      appId - Id of the application needs to be deleted.
      See Also:
    • getApplication

      public ApplicationDetail getApplication(@Nonnull String appId)
      Gets an existing application.
      Parameters:
      appId - Id of the application.
      Returns:
      The detail of the lookup application.
      See Also:
    • listApplicationEntitlements

      public List<PodAppEntitlement> listApplicationEntitlements()
      Get the list of application entitlements for the company.
      Returns:
      The list of application entitlements.
      See Also:
    • updateApplicationEntitlements

      public List<PodAppEntitlement> updateApplicationEntitlements(@Nonnull List<PodAppEntitlement> entitlementList)
      Update the list of application entitlements for the company.
      Parameters:
      entitlementList - The list of entitlements to be updated by.
      Returns:
      The updated list of entitlements.
      See Also:
    • listUserApplications

      public List<UserAppEntitlement> listUserApplications(@Nonnull Long userId)
      Get the list of Symphony application entitlements for a particular user.
      Parameters:
      userId - User id.
      Returns:
      The list of Symphony application entitlements for this user.
      See Also:
    • updateUserApplications

      public List<UserAppEntitlement> updateUserApplications(@Nonnull Long userId, @Nonnull List<UserAppEntitlement> userAppEntitlementList)
      Updates all application entitlements for a particular user.
      Parameters:
      userId - User Id.
      userAppEntitlementList - The list of App Entitlements needs to be updated.
      Returns:
      The updated list of Symphony application entitlements for this user.
      See Also:
    • patchUserApplications

      public List<UserAppEntitlement> patchUserApplications(@Nonnull Long userId, @Nonnull List<UserAppEntitlementPatch> userAppEntitlementPatchList)
      Updates particular app entitlements for a particular user. Supports partial update.
      Parameters:
      userId - User Id.
      userAppEntitlementPatchList - The list of App Entitlements needs to be updated.
      Returns:
      The updated list of Symphony application entitlements for this user.
      See Also: