|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.socialnetworkintegration.connector.FacebookConnector
public class FacebookConnector
Facebook implementation.
Field Summary | |
---|---|
static java.lang.String |
NETWORK_NAME
|
Constructor Summary | |
---|---|
FacebookConnector()
|
Method Summary | |
---|---|
java.lang.String |
buildAuthenticationURL(java.lang.String callbackURL,
SocialNetworkApplication application,
java.util.Map<java.lang.String,java.lang.Object> stored)
Builds the Authentication URL for the social network. |
void |
callback(java.lang.String returnedValue,
SocialNetworkAccount account,
java.util.Map<java.lang.String,java.lang.Object> stored)
Executes the callback after application/account authorization. |
java.lang.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. |
java.lang.String |
update(SocialNetworkMessage message)
Calls the social network's update method (varies according to network) if there is one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NETWORK_NAME
Constructor Detail |
---|
public FacebookConnector()
Method Detail |
---|
public java.lang.String publish(SocialNetworkMessage message) throws PortalException
ISocialNetworkConnector
publish
in interface ISocialNetworkConnector
message
- the message to be published.
PortalException
public void remove(SocialNetworkMessage message) throws PortalException
ISocialNetworkConnector
remove
in interface ISocialNetworkConnector
message
- the message to be removed.
PortalException
public java.lang.String update(SocialNetworkMessage message) throws PortalException
ISocialNetworkConnector
update
in interface ISocialNetworkConnector
message
- the message to be updated.
PortalException
public java.lang.String buildAuthenticationURL(java.lang.String callbackURL, SocialNetworkApplication application, java.util.Map<java.lang.String,java.lang.Object> stored) throws PortalException
ISocialNetworkConnector
stored
object.
buildAuthenticationURL
in interface ISocialNetworkConnector
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 ISocialNetworkConnector.callback(String, SocialNetworkAccount, Map)
method.
PortalException
public void callback(java.lang.String returnedValue, SocialNetworkAccount account, java.util.Map<java.lang.String,java.lang.Object> stored) throws PortalException
ISocialNetworkConnector
callback
in interface ISocialNetworkConnector
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 ISocialNetworkConnector.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 |