|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.higgins.rpps.core.impl.ConvertHelper
| Constructor Summary | |
|---|---|
ConvertHelper()
|
|
| Method Summary | |
|---|---|
static org.eclipse.higgins.icard.auth.ICredential |
convertCardCredential_to_ICredential(org.eclipse.higgins.icard.ICard card,
org.eclipse.higgins.icard.userprofile.CardCredential siteCredential)
|
static CardUsageTO |
convertCardUsage_to_CardUsageTO(org.eclipse.higgins.icard.userprofile.CardUsage cardUsage)
|
static CategoryTO |
convertCategory_to_CategoryTO(org.eclipse.higgins.icard.userprofile.Category category)
Convert Category object to Category transfer object |
static org.eclipse.higgins.icard.userprofile.Category |
convertCategoryTO_to_Category(CategoryTO categoryTO)
Convert Category transfer object to Category object |
static PropertyTO[] |
convertClaims_to_PropertyTO(org.eclipse.higgins.icard.ICard card,
boolean isCatchAuthentication,
Iterator claimIterator)
Converts the card's claim to the property transfer object |
static org.eclipse.higgins.icard.auth.ICredential |
convertHashtable_to_Credential(org.eclipse.higgins.icard.ICard card,
String typeofCredential,
Hashtable table)
Converts arrays with credential's fields values from HBX to ICredential object |
static ICardTemplateTO |
convertICardTemplate_to_ICardTemplateTO(org.eclipse.higgins.icard.ICardTemplate template)
|
static org.eclipse.higgins.icard.userprofile.CardCredential |
convertICredential_to_CardCredential(org.eclipse.higgins.icard.auth.ICredential credential)
|
static URI |
convertString_to_URI(String url)
|
static org.eclipse.higgins.icard.userprofile.CardCredential |
convertUITokenServiceCredentialTO_to_CardCredential(UITokenServiceCredentialTO credential)
|
static org.eclipse.higgins.icard.auth.ICredential |
convertUITokenServiceCredentialTO_to_ICredentials(org.eclipse.higgins.icard.ICard card,
UITokenServiceCredentialTO siteCredential)
Converts UITokenServiceCredential transfer object to ICredential object |
static org.eclipse.higgins.icard.auth.ICredential |
convertUITokenServiceCredentialTO_to_ICredentials(UITokenServiceCredentialTO siteCredential)
|
static UserProfileTO |
convertUserProfile_to_UserProfileTO(org.eclipse.higgins.icard.userprofile.UserProfile userProfile)
Convert UserProfile to UserProfile transfer object |
static org.eclipse.higgins.icard.userprofile.UserProfile |
convertUserProfileTO_to_UserProfile(UserProfileTO userProfileTO)
Convert UserProfile transfer object to UserProfile object |
static CardInformationTO |
createCardInformationTO(List cardHistory,
int sizeHistory)
Gets CardInformation transfer object |
static TokenResponseTO |
createTokenResponse(String token)
Gets userProfile trasfer object |
static PropertyTO[] |
getComplexValues(org.eclipse.higgins.icard.IComplexClaimType rootClaimType,
org.eclipse.higgins.icard.IComplexClaim rootClaim,
boolean isCatchAuthentication,
Iterator claimIterator)
Gets the complex values from the claim object. |
static String[] |
getSimpleValues(org.eclipse.higgins.icard.IClaim claim,
int size)
Gets the simple values from the claim object. |
static org.eclipse.higgins.icard.ICardTemplate |
loadTemplate(org.eclipse.higgins.icard.ICardTemplate[] templates,
ICardTemplateTO templeteTO)
Loads the properties from the string array. |
static void |
setITemplateContainer(org.eclipse.higgins.icard.ITemplateContainer root,
ITemplateElementTO[] elementsTO)
|
static void |
setITemplateValue(org.eclipse.higgins.icard.ITemplateValue element,
String elementTOValue)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConvertHelper()
| Method Detail |
public static org.eclipse.higgins.icard.auth.ICredential convertUITokenServiceCredentialTO_to_ICredentials(org.eclipse.higgins.icard.ICard card,
UITokenServiceCredentialTO siteCredential)
card - ICard objectsiteCredential - UITokenServiceCredentialTO which is need converting
public static org.eclipse.higgins.icard.auth.ICredential convertUITokenServiceCredentialTO_to_ICredentials(UITokenServiceCredentialTO siteCredential)
public static org.eclipse.higgins.icard.auth.ICredential convertCardCredential_to_ICredential(org.eclipse.higgins.icard.ICard card,
org.eclipse.higgins.icard.userprofile.CardCredential siteCredential)
public static org.eclipse.higgins.icard.userprofile.CardCredential convertICredential_to_CardCredential(org.eclipse.higgins.icard.auth.ICredential credential)
public static org.eclipse.higgins.icard.userprofile.CardCredential convertUITokenServiceCredentialTO_to_CardCredential(UITokenServiceCredentialTO credential)
public static org.eclipse.higgins.icard.auth.ICredential convertHashtable_to_Credential(org.eclipse.higgins.icard.ICard card,
String typeofCredential,
Hashtable table)
throws org.eclipse.higgins.icard.CardException,
UnsupportedEncodingException
typeofCredential - type of credential which is need converttable - table which contains arrays values
org.eclipse.higgins.icard.CardException
UnsupportedEncodingException
public static PropertyTO[] convertClaims_to_PropertyTO(org.eclipse.higgins.icard.ICard card,
boolean isCatchAuthentication,
Iterator claimIterator)
throws org.eclipse.higgins.icard.AuthenticationRequiredException,
org.eclipse.higgins.icard.CardException
card - isCatchAuthentication -
org.eclipse.higgins.icard.AuthenticationRequiredException
org.eclipse.higgins.icard.CardException
public static String[] getSimpleValues(org.eclipse.higgins.icard.IClaim claim,
int size)
claim - the claim object.size - the size of the value array.
public static PropertyTO[] getComplexValues(org.eclipse.higgins.icard.IComplexClaimType rootClaimType,
org.eclipse.higgins.icard.IComplexClaim rootClaim,
boolean isCatchAuthentication,
Iterator claimIterator)
throws org.eclipse.higgins.icard.CardException,
org.eclipse.higgins.icard.InvalidTypeException
isCatchAuthentication - equals "true" if needs to generete AuthenticationRequiredException or AuthenticationException
org.eclipse.higgins.icard.CardException
org.eclipse.higgins.icard.InvalidTypeExceptionpublic static UserProfileTO convertUserProfile_to_UserProfileTO(org.eclipse.higgins.icard.userprofile.UserProfile userProfile)
userProfile -
public static org.eclipse.higgins.icard.userprofile.UserProfile convertUserProfileTO_to_UserProfile(UserProfileTO userProfileTO)
public static CategoryTO convertCategory_to_CategoryTO(org.eclipse.higgins.icard.userprofile.Category category)
category -
public static org.eclipse.higgins.icard.userprofile.Category convertCategoryTO_to_Category(CategoryTO categoryTO)
categoryTO - transfer object
public static CardInformationTO createCardInformationTO(List cardHistory,
int sizeHistory)
cardHistory -
public static org.eclipse.higgins.icard.ICardTemplate loadTemplate(org.eclipse.higgins.icard.ICardTemplate[] templates,
ICardTemplateTO templeteTO)
templeteTO -
public static void setITemplateValue(org.eclipse.higgins.icard.ITemplateValue element,
String elementTOValue)
element - elementTOValue -
public static void setITemplateContainer(org.eclipse.higgins.icard.ITemplateContainer root,
ITemplateElementTO[] elementsTO)
root - elementsTO - public static TokenResponseTO createTokenResponse(String token)
Exceptionpublic static ICardTemplateTO convertICardTemplate_to_ICardTemplateTO(org.eclipse.higgins.icard.ICardTemplate template)
template -
public static URI convertString_to_URI(String url)
throws MalformedURLException,
URISyntaxException
MalformedURLException
URISyntaxExceptionpublic static CardUsageTO convertCardUsage_to_CardUsageTO(org.eclipse.higgins.icard.userprofile.CardUsage cardUsage)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||