|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISocialNetworkConnector
The implementations of this interface should execute low level calls to the remote social network it belongs to.
Method Summary | |
---|---|
String |
buildAuthenticationURL(String callbackURL,
SocialNetworkApplication application,
Map<String,Object> stored)
Builds the Authentication URL for the social network. |
void |
callback(String returnedValue,
SocialNetworkAccount account,
Map<String,Object> stored)
Executes the callback after application/account authorization. |
String |
publish(SocialNetworkMessage message)
Calls the social network's publish method (varies according to network). |
void |
remove(SocialNetworkMessage message)
Calls the social network's remove method (varies according to network) if there is one. |
String |
update(SocialNetworkMessage message)
Calls the social network's update method (varies according to network) if there is one. |
Method Detail |
---|
String publish(SocialNetworkMessage message) throws PortalException
message
- the message to be published.
PortalException
void remove(SocialNetworkMessage message) throws PortalException
message
- the message to be removed.
PortalException
String update(SocialNetworkMessage message) throws PortalException
message
- the message to be updated.
PortalException
String buildAuthenticationURL(String callbackURL, SocialNetworkApplication application, Map<String,Object> stored) throws PortalException
stored
object.
callbackURL
- String representing the url that should be called after the first step of authentication is taken.application
- SocialNetworkApplication contaning configuration specific values.stored
- Map to store object created by this method and that will be used in the callback(String, SocialNetworkAccount, Map)
method.
PortalException
void callback(String returnedValue, SocialNetworkAccount account, Map<String,Object> stored) throws PortalException
returnedValue
- value returned by original call/redirect from social network authorization.account
- Social network account to which the validation will occur.stored
- Map that has the objects created in buildAuthenticationURL(String, SocialNetworkApplication, Map)
to be used in callback.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |