Package org.exoplatform.caldav.plugin
Class NoSubscriptionChannel
java.lang.Object
org.exoplatform.caldav.plugin.NoSubscriptionChannel
- All Implemented Interfaces:
CalendarSubscriptionChannel
The subscription channel of an account no contributed channel recognises:
no subscription is read in its listing, and nothing can be edited. The null
object of
CalendarSubscriptionChannel.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe identifier of the absent channel.static final NoSubscriptionChannelThe single instance. -
Method Summary
Modifier and TypeMethodDescription<T> TasSubscriber(CalDavEndpoint endpoint, String userUid, Function<SubscriptionEdits, T> job) Refuses: no session can be opened.id()The channel's stable identifier, for the log.ownersOf(CalDavEndpoint endpoint) Refuses: no listing can be read.subscriptionOf(String href, String principal) No subscription: the collection is what the DAV listing says.No uid: nobody is addressed.
-
Field Details
-
CHANNEL_ID
The identifier of the absent channel.- See Also:
-
INSTANCE
The single instance.
-
-
Method Details
-
id
The channel's stable identifier, for the log.- Specified by:
idin interfaceCalendarSubscriptionChannel- Returns:
- the identifier, never blank
-
userUidOf
No uid: nobody is addressed.- Specified by:
userUidOfin interfaceCalendarSubscriptionChannel- Parameters:
principal- the principal- Returns:
- null
-
subscriptionOf
No subscription: the collection is what the DAV listing says.- Specified by:
subscriptionOfin interfaceCalendarSubscriptionChannel- Parameters:
href- the collectionprincipal- the account's principal- Returns:
- null
-
asSubscriber
public <T> T asSubscriber(CalDavEndpoint endpoint, String userUid, Function<SubscriptionEdits, T> job) Refuses: no session can be opened.- Specified by:
asSubscriberin interfaceCalendarSubscriptionChannel- Type Parameters:
T- what the job would produce- Parameters:
endpoint- the user's endpointuserUid- the user's uidjob- the edits- Returns:
- never
- Throws:
UnsupportedOperationException- always
-
ownersOf
Refuses: no listing can be read.- Specified by:
ownersOfin interfaceCalendarSubscriptionChannel- Parameters:
endpoint- the account's endpoint- Returns:
- never
- Throws:
UnsupportedOperationException- always
-