org.broadleafcommerce.core.social.domain
Class UserConnectionImpl
java.lang.Object
org.broadleafcommerce.core.social.domain.UserConnectionImpl
- All Implemented Interfaces:
- UserConnection
@Entity
public class UserConnectionImpl
- extends Object
- implements 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
Spring Social expects 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);
------------------------------------------------------
NOTE: We are prefixing the table with "BLC_" to be consistent with the rest of the framework.
The prefix is injected into JdbcUsersConnectionRepository
- Author:
- elbertbautista
- See Also:
org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserConnectionImpl
public UserConnectionImpl()
getUserConnectionPK
public UserConnectionImpl.UserConnectionPK getUserConnectionPK()
- Specified by:
getUserConnectionPK in interface UserConnection
setUserConnectionPK
public void setUserConnectionPK(UserConnectionImpl.UserConnectionPK userConnectionPK)
- Specified by:
setUserConnectionPK in interface UserConnection
getRank
public Integer getRank()
- Specified by:
getRank in interface UserConnection
setRank
public void setRank(Integer rank)
- Specified by:
setRank in interface UserConnection
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface UserConnection
setDisplayName
public void setDisplayName(String displayName)
- Specified by:
setDisplayName in interface UserConnection
getProfileUrl
public String getProfileUrl()
- Specified by:
getProfileUrl in interface UserConnection
setProfileUrl
public void setProfileUrl(String profileUrl)
- Specified by:
setProfileUrl in interface UserConnection
getImageUrl
public String getImageUrl()
- Specified by:
getImageUrl in interface UserConnection
setImageUrl
public void setImageUrl(String imageUrl)
- Specified by:
setImageUrl in interface UserConnection
getAccessToken
public String getAccessToken()
- Specified by:
getAccessToken in interface UserConnection
setAccessToken
public void setAccessToken(String accessToken)
- Specified by:
setAccessToken in interface UserConnection
getSecret
public String getSecret()
- Specified by:
getSecret in interface UserConnection
setSecret
public void setSecret(String secret)
- Specified by:
setSecret in interface UserConnection
getRefreshToken
public String getRefreshToken()
- Specified by:
getRefreshToken in interface UserConnection
setRefreshToken
public void setRefreshToken(String refreshToken)
- Specified by:
setRefreshToken in interface UserConnection
getExpireTime
public Long getExpireTime()
- Specified by:
getExpireTime in interface UserConnection
setExpireTime
public void setExpireTime(Long expireTime)
- Specified by:
setExpireTime in interface UserConnection
Copyright © 2013. All Rights Reserved.