Package org.exoplatform.caldav.utils
Class CaldavConnectorUtils
java.lang.Object
org.exoplatform.caldav.utils.CaldavConnectorUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic final Stringstatic final longgetCurrentUserIdentityId(org.exoplatform.social.core.manager.IdentityManager identityManager) static StringloginOf(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 ofgetCurrentUserIdentityId(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.
-
Field Details
-
CALDAV_CONNECTOR_SETTING_SCOPE
public static final org.exoplatform.commons.api.settings.data.Scope CALDAV_CONNECTOR_SETTING_SCOPE -
CALDAV_USERNAME_KEY
- See Also:
-
CALDAV_PASSWORD_KEY
- See Also:
-
CALDAV_MIRROR_CALENDAR_KEY
- See Also:
-
CALDAV_SERVER_ID_KEY
- See Also:
-
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
- See Also:
-
-
Constructor Details
-
CaldavConnectorUtils
public CaldavConnectorUtils()
-
-
Method Details
-
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 ofgetCurrentUserIdentityId(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 ituserIdentityId- 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
-
decode
-