|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.higgins.sync.bean.CardSyncFacadeBean
public class CardSyncFacadeBean
CardSync Bean Facade.
| Field Summary | |
|---|---|
static ThreadLocal<org.eclipse.higgins.sync.auth.IAuthenticateService> |
authenticateService
|
static ThreadLocal<Map<String,IResourceCommand>> |
commandMap
|
static ThreadLocal<org.eclipse.higgins.user.login.LoginService> |
loginService
Instance of LoginService.. |
static ThreadLocal<org.eclipse.higgins.sync.meta.IResourceMetaDataService> |
metaDataService
|
static ThreadLocal<org.eclipse.higgins.user.account.IUserAccountService> |
userAccountService
Instance of IUserAccountService. |
static ThreadLocal<org.eclipse.higgins.user.profile.IUserProfileService> |
userProfileService
Instance of IUserProfileService . |
| Constructor Summary | |
|---|---|
CardSyncFacadeBean()
|
|
| Method Summary | |
|---|---|
org.eclipse.higgins.user.login.UserAccount |
authenticate(AuthCredentialTO authCredentialTO)
Authenticate user by AuthCredentialTO. |
AccessTokenTO |
createAccessToken(AuthCredentialTO authCredentialTO)
Authenticate user and build AccessTokenEntity. |
UserProfileTO |
createUserProfile(UserProfileTO userProfileTO)
Create new UserProfile. |
void |
deleteAccessToken(String id)
|
void |
deleteCard(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
String id)
|
void |
deleteUserProfile(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity)
Delete UserProfile. |
CmdExecStatusesTO |
execCommands(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
CommandsTO commandsTO,
List<String> resourceTypeList)
Retrieve changes between client RootRevisionTO and server RootRevisionTO. |
org.eclipse.higgins.sync.auth.entity.AccessTokenEntity |
getAccessToken(String accessTokenId)
Return AccessTokenEntity by Access Token Id. |
CardTO |
getCard(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
String id)
Returns Card by Id. |
List<CardTO> |
getCards(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity)
|
CommandsTO |
getCommandLog(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
RevisionTO clientRootRevisionTO,
List<String> resourceTypeList)
Retrieve changes between client RootRevisionTO and server RootRevisionTO. |
RevisionTO |
getRootRevision(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessToken,
List<String> resourceTypeList)
Return Root resource revision. |
UserProfileTO |
getUserProfile(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity)
Return UserProfile by user identifier. |
List<CardTO> |
importFromCrd(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
FileTO fileTO)
Import crd or crds file. |
CardTO |
persistCard(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
CardTO cardTO)
Create new P/M Card. |
UserProfileTO |
updateUserProfile(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
UserProfileTO userProfileTO)
Update UserProfile. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ThreadLocal<org.eclipse.higgins.user.profile.IUserProfileService> userProfileService
public static final ThreadLocal<org.eclipse.higgins.user.login.LoginService> loginService
public static final ThreadLocal<org.eclipse.higgins.sync.meta.IResourceMetaDataService> metaDataService
public static final ThreadLocal<org.eclipse.higgins.user.account.IUserAccountService> userAccountService
public static final ThreadLocal<org.eclipse.higgins.sync.auth.IAuthenticateService> authenticateService
public static final ThreadLocal<Map<String,IResourceCommand>> commandMap
| Constructor Detail |
|---|
public CardSyncFacadeBean()
| Method Detail |
|---|
public UserProfileTO createUserProfile(UserProfileTO userProfileTO)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.user.profile.exception.UserProfileException,
NoSuchAlgorithmException,
UnsupportedEncodingException,
org.eclipse.higgins.user.account.exception.UserAccountException
userProfileTO - authCredentialTO -
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.user.profile.exception.UserProfileException
org.eclipse.higgins.user.account.exception.UserAccountException
UnsupportedEncodingException
NoSuchAlgorithmExceptionpublic void deleteAccessToken(String id)
id - IAuthenticateService.deleteAccessToken(java.lang.String)
public org.eclipse.higgins.user.login.UserAccount authenticate(AuthCredentialTO authCredentialTO)
throws org.eclipse.higgins.user.login.exception.ConfigurationException,
org.eclipse.higgins.user.login.exception.LoginException,
org.eclipse.higgins.sync.auth.exceptions.AuthenticationException,
org.eclipse.higgins.user.profile.exception.UserProfileException
org.eclipse.higgins.user.login.exception.ConfigurationException
org.eclipse.higgins.user.login.exception.LoginException
org.eclipse.higgins.sync.auth.exceptions.AuthenticationException
org.eclipse.higgins.user.profile.exception.UserProfileException
public AccessTokenTO createAccessToken(AuthCredentialTO authCredentialTO)
throws org.eclipse.higgins.sync.auth.exceptions.AuthenticationException,
org.eclipse.higgins.user.login.exception.ConfigurationException,
org.eclipse.higgins.user.login.exception.LoginException,
org.eclipse.higgins.user.profile.exception.UserProfileException
authCredentialTO -
org.eclipse.higgins.sync.auth.exceptions.AuthenticationException
org.eclipse.higgins.user.profile.exception.UserProfileException
org.eclipse.higgins.user.login.exception.LoginException
org.eclipse.higgins.user.login.exception.ConfigurationException
public org.eclipse.higgins.sync.auth.entity.AccessTokenEntity getAccessToken(String accessTokenId)
throws org.eclipse.higgins.sync.auth.exceptions.AuthenticationException
accessTokenId -
org.eclipse.higgins.sync.auth.exceptions.AuthenticationExceptionIAuthenticateService.getAccessToken(java.lang.String)
public RevisionTO getRootRevision(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessToken,
List<String> resourceTypeList)
throws org.eclipse.higgins.sync.auth.exceptions.AuthenticationException,
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
accessToken - resourceTypeList -
org.eclipse.higgins.sync.auth.exceptions.AuthenticationException
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
public UserProfileTO getUserProfile(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.user.profile.exception.UserProfileException,
org.eclipse.higgins.user.account.exception.UserAccountException
accessTokenEntity -
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.user.profile.exception.UserProfileException
org.eclipse.higgins.user.account.exception.UserAccountException
public void deleteUserProfile(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.user.profile.exception.UserProfileException,
org.eclipse.higgins.user.account.exception.UserAccountException
accessTokenEntity -
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.user.profile.exception.UserProfileException
org.eclipse.higgins.user.account.exception.UserAccountException
public UserProfileTO updateUserProfile(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
UserProfileTO userProfileTO)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.user.profile.exception.UserProfileException,
org.eclipse.higgins.user.account.exception.UserAccountException
accessTokenEntity - userProfileTO -
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.user.profile.exception.UserProfileException
org.eclipse.higgins.user.account.exception.UserAccountException
public List<CardTO> getCards(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.icard.CardException
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.icard.CardException
public CardTO getCard(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
String id)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.icard.CardException
accessTokenEntity - id -
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.icard.CardException
public CardTO persistCard(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
CardTO cardTO)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.icard.CardException
accessTokenEntity - cardTO -
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.icard.CardException
public void deleteCard(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
String id)
accessToken - id -
public List<CardTO> importFromCrd(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
FileTO fileTO)
throws org.eclipse.higgins.icard.CardException,
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
accessTokenEntity - crd - - binary file.password - for crds file.
org.eclipse.higgins.icard.CardException
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
public CommandsTO getCommandLog(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
RevisionTO clientRootRevisionTO,
List<String> resourceTypeList)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.sync.auth.exceptions.AuthenticationException
accessTokenEntity - clientRootRevisionTO - resourceTypeList - if null return for all resources.
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.sync.auth.exceptions.AuthenticationException
public CmdExecStatusesTO execCommands(org.eclipse.higgins.sync.auth.entity.AccessTokenEntity accessTokenEntity,
CommandsTO commandsTO,
List<String> resourceTypeList)
throws org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException,
org.eclipse.higgins.sync.auth.exceptions.AuthenticationException
accessTokenEntity - clientRootRevisionTO -
org.eclipse.higgins.sync.meta.exceptions.ResourceMetaDataException
org.eclipse.higgins.sync.auth.exceptions.AuthenticationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||