Class CaldavConnectorUtils

java.lang.Object
org.exoplatform.caldav.utils.CaldavConnectorUtils

public class CaldavConnectorUtils extends Object
  • Field Details

    • CALDAV_CONNECTOR_SETTING_SCOPE

      public static final org.exoplatform.commons.api.settings.data.Scope CALDAV_CONNECTOR_SETTING_SCOPE
    • CALDAV_USERNAME_KEY

      public static final String CALDAV_USERNAME_KEY
      See Also:
    • CALDAV_PASSWORD_KEY

      public static final String CALDAV_PASSWORD_KEY
      See Also:
    • CALDAV_MIRROR_CALENDAR_KEY

      public static final String CALDAV_MIRROR_CALENDAR_KEY
      See Also:
    • CALDAV_SERVER_ID_KEY

      public static final String CALDAV_SERVER_ID_KEY
      See Also:
    • CALDAV_CONNECTED_BY_MANAGED_MODE_KEY

      public static final String CALDAV_CONNECTED_BY_MANAGED_MODE_KEY
      Marks a CalDAV connection made by managed mode rather than by the user. Its presence is the whole fact: the users it marks are listed by one query on the key, and they are always connected to the designated server, since changing the designation disconnects them.
      See Also:
    • CALDAV_SERVER_URL_INIT_PARAM

      public static final String CALDAV_SERVER_URL_INIT_PARAM
      See Also:
  • Constructor Details

    • CaldavConnectorUtils

      public CaldavConnectorUtils()
  • Method Details

    • getCurrentUser

      public static final String getCurrentUser()
    • getCurrentUserIdentityId

      public static final long getCurrentUserIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager)
    • loginOf

      public static String loginOf(org.exoplatform.social.core.manager.IdentityManager identityManager, long userIdentityId)
      The eXo login of an identity, which is what a credentials provider resolves a remote account from - the mirror image of getCurrentUserIdentityId(IdentityManager), for the paths that hold an identity id and no conversation state: a scheduled sweep, a listener, a service acting for several users at once.
      Parameters:
      identityManager - the identity registry, null when a caller could not resolve it
      userIdentityId - identity of the user
      Returns:
      the login, or null when it cannot be resolved - which a caller treats as "leave this account for the next run", never as a failure
    • encode

      public static String encode(String password)
    • decode

      public static String decode(String password)