Interface ICmsConnection

All Superinterfaces:
AutoCloseable, Closeable

public interface ICmsConnection extends Closeable
CMS Connection
Author:
I-D Media AG
  • Method Details

    • getConnectionId

      @Nullable @Nullable String getConnectionId()
      Connection Id
      Returns:
    • getRequester

      @NotNull @NotNull String getRequester()
      Get the Requester of this
      Returns:
    • closeConnection

      void closeConnection()
      Close the CMS connection
    • isConnected

      boolean isConnected()
      Check if the CMS is available
      Returns:
    • getProjects

      @NotNull @NotNull ICmsProject[] getProjects()
      Get a list of all CMS projects
      Returns:
    • getUsers

      @NotNull @NotNull Collection<ICmsUser> getUsers(Collection<String> vsUserIds)
      Get users based on their id
      Parameters:
      vsUserIds - User list
      Returns:
    • getAllUsers

      @NotNull @NotNull List<ICmsUser> getAllUsers()
      Get all users from the cms
      Returns:
    • getProjectById

      @Nullable @Nullable ICmsProject getProjectById(String sId)
      Get a cms project by its id
      Parameters:
      sId -
      Returns:
    • getConnectionObject

      @Nullable <T> T getConnectionObject(Class<T> type)
      Cast generic connection object to CMS specific instance to leave abstraction
      Type Parameters:
      T - Class to cast
      Parameters:
      type -
      Returns: