Class UserConnectionImpl
java.lang.Object
org.broadleafcommerce.core.social.domain.UserConnectionImpl
- All Implemented Interfaces:
UserConnection
This class creates the following BLC domain object for the Spring Social User Connection.
The following is the SQL that is needed for Spring Social to achieve JDBC-based persistence.
http://static.springsource.org/spring-social/docs/1.0.x/reference/html/serviceprovider.html#service-providers-persisting-connections
It is expected that the following table be created: ----------------------------------------------------- create table UserConnection (userId varchar(255) not null, providerId varchar(255) not null, providerUserId varchar(255), rank int not null, displayName varchar(255), profileUrl varchar(512), imageUrl varchar(512), accessToken varchar(255) not null, secret varchar(255), refreshToken varchar(255), expireTime bigint, primary key (userId, providerId, providerUserId));
create unique index UserConnectionRank on UserConnection(userId, providerId, rank); ------------------------------------------------------
- Author:
- elbertbautista
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRank()voidsetAccessToken(String accessToken) voidsetDisplayName(String displayName) voidsetExpireTime(Long expireTime) voidsetImageUrl(String imageUrl) voidsetProfileUrl(String profileUrl) voidvoidsetRefreshToken(String refreshToken) voidvoidsetUserConnectionPK(UserConnectionImpl.UserConnectionPK userConnectionPK)
-
Constructor Details
-
UserConnectionImpl
public UserConnectionImpl()
-
-
Method Details
-
getUserConnectionPK
- Specified by:
getUserConnectionPKin interfaceUserConnection
-
setUserConnectionPK
- Specified by:
setUserConnectionPKin interfaceUserConnection
-
getRank
- Specified by:
getRankin interfaceUserConnection
-
setRank
- Specified by:
setRankin interfaceUserConnection
-
getDisplayName
- Specified by:
getDisplayNamein interfaceUserConnection
-
setDisplayName
- Specified by:
setDisplayNamein interfaceUserConnection
-
getProfileUrl
- Specified by:
getProfileUrlin interfaceUserConnection
-
setProfileUrl
- Specified by:
setProfileUrlin interfaceUserConnection
-
getImageUrl
- Specified by:
getImageUrlin interfaceUserConnection
-
setImageUrl
- Specified by:
setImageUrlin interfaceUserConnection
-
getAccessToken
- Specified by:
getAccessTokenin interfaceUserConnection
-
setAccessToken
- Specified by:
setAccessTokenin interfaceUserConnection
-
getSecret
- Specified by:
getSecretin interfaceUserConnection
-
setSecret
- Specified by:
setSecretin interfaceUserConnection
-
getRefreshToken
- Specified by:
getRefreshTokenin interfaceUserConnection
-
setRefreshToken
- Specified by:
setRefreshTokenin interfaceUserConnection
-
getExpireTime
- Specified by:
getExpireTimein interfaceUserConnection
-
setExpireTime
- Specified by:
setExpireTimein interfaceUserConnection
-