Class IxbusConnectorService

java.lang.Object
org.exoplatform.addons.ixbus.IxbusConnectorService

public class IxbusConnectorService extends Object
  • Constructor Details

    • IxbusConnectorService

      public IxbusConnectorService(org.exoplatform.container.xml.InitParams params, org.exoplatform.services.organization.OrganizationService organizationService)
  • Method Details

    • getUserIdentifier

      public String getUserIdentifier(String username)
      Returns:
      the ixbus identifier of the user, or null when the user has no ixbus account or ixbus could not be read
    • getAllUsers

      public Map<String,String> getAllUsers()
      Returns:
      the email of every ixbus user by identifier, or null when ixbus could not be read
    • getUserFoldersCount

      public int getUserFoldersCount(String username)
    • getUserFolders

      public List<DocumentEntity> getUserFolders(String username)
      Returns:
      the folders the user follows, or null when ixbus could not be read
    • getUserActionsCount

      public int getUserActionsCount(String username)
    • getUserActions

      public List<DocumentEntity> getUserActions(String username)
      Returns:
      the folders waiting for an action of the user, or null when ixbus could not be read
    • getPendingFolders

      public Map<String,List<DocumentEntity>> getPendingFolders(Collection<String> userIdentifiers)
      Reads, for each user, the folders waiting for one of their actions, as the drawer's required actions do: ixbus includes there the steps assigned to a function or a service the user holds, which a folder's own step target does not name. The users are read in parallel, with the job read timeout.
      Returns:
      the folders of each user, or null for a user whose folders could not be read
    • getPermissions

      public List<String> getPermissions()
      Returns:
      the permission expressions of the addon, as for its top bar button (exo.ixbus.permissions): only the users who hold one of them are notified
    • getSettings

      public SettingsEntity getSettings()