public class DefaultSubscriptionRequestHandler extends Object implements SubscriptionRequestHandler
Modifier and Type | Field and Description |
---|---|
static String |
PRINCIPAL_NAME_PROPERTY |
static String |
SUBSCRIPTION_REQUEST_ACCEPTED_EVENT |
static String |
SUBSCRIPTION_REQUEST_CREATED_EVENT |
static String |
SUBSCRIPTION_REQUEST_REJECTED_EVENT |
static String |
SUBSCRIPTION_REQUESTS_ROOT_NAME |
static String |
SUBSCRIPTION_REQUESTS_ROOT_TYPE |
Constructor and Description |
---|
DefaultSubscriptionRequestHandler() |
Modifier and Type | Method and Description |
---|---|
void |
acceptSubscriptionRequest(SocialWorkspace socialWorkspace,
SubscriptionRequest subscriptionRequest) |
void |
handleSubscriptionRequestFor(SocialWorkspace socialWorkspace,
Principal principal) |
boolean |
isSubscriptionRequestPending(SocialWorkspace socialWorkspace,
Principal principal) |
void |
rejectSubscriptionRequest(SocialWorkspace socialWorkspace,
SubscriptionRequest subscriptionRequest) |
public static final String SUBSCRIPTION_REQUESTS_ROOT_NAME
public static final String SUBSCRIPTION_REQUESTS_ROOT_TYPE
public static final String SUBSCRIPTION_REQUEST_CREATED_EVENT
public static final String SUBSCRIPTION_REQUEST_ACCEPTED_EVENT
public static final String SUBSCRIPTION_REQUEST_REJECTED_EVENT
public static final String PRINCIPAL_NAME_PROPERTY
public void handleSubscriptionRequestFor(SocialWorkspace socialWorkspace, Principal principal)
handleSubscriptionRequestFor
in interface SubscriptionRequestHandler
public boolean isSubscriptionRequestPending(SocialWorkspace socialWorkspace, Principal principal)
isSubscriptionRequestPending
in interface SubscriptionRequestHandler
public void acceptSubscriptionRequest(SocialWorkspace socialWorkspace, SubscriptionRequest subscriptionRequest)
acceptSubscriptionRequest
in interface SubscriptionRequestHandler
public void rejectSubscriptionRequest(SocialWorkspace socialWorkspace, SubscriptionRequest subscriptionRequest)
rejectSubscriptionRequest
in interface SubscriptionRequestHandler
Copyright © 2011 Nuxeo SA. All Rights Reserved.