Package org.cyclos.impl.utils
Interface LinkGeneratorHandler
-
public interface LinkGeneratorHandlerGenerates links for various URLs in Cyclos
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ENTITY_IDScript attribute: the entity id which relates to the linkstatic StringATTR_ENTITY_ID_PARAMScript attribute: the parameter name to use for the related entity idstatic StringATTR_EXECUTIONScript attribute: the wizard execution for external redirectsstatic StringATTR_EXTERNAL_REDIRECT_EXECUTIONScript attribute: the external redirect execution for custom operationsstatic StringATTR_IDENTITY_PROVIDERScript attribute: the identity providerstatic StringATTR_INVITE_TOKENScript attribute: the invite tokenstatic StringATTR_LOCATIONScript attribute: the link related locationstatic StringATTR_MOBILE_URL_FILE_PARTScript attribute: the link related mobile url file partstatic StringATTR_PAYMENT_AMOUNTScript attribute: the easy invoice amountstatic StringATTR_PAYMENT_CURRENCYScript attribute: the easy invoice payment currencystatic StringATTR_PAYMENT_CUSTOM_VALUESScript attribute: the easy invoice payment custom field valuesstatic StringATTR_PAYMENT_DESCRIPTIONScript attribute: the easy invoice payment descriptionstatic StringATTR_PAYMENT_TOScript attribute: the easy invoice payeestatic StringATTR_PAYMENT_TYPEScript attribute: the easy invoice payment typestatic StringATTR_REPLY_TOScript attribute: the message being repliedstatic StringATTR_REQUEST_IDScript attribute: the identity provider request idstatic StringATTR_STORAGEScript attribute: the wizard execution storage for external redirectsstatic StringATTR_TICKETScript attribute: the ticketstatic StringATTR_TYPEScript attribute: the link type to be generatedstatic StringATTR_UNSUBSCRIBE_EMAIL_KEYScript attribute: the e-mail unsubscription keystatic StringATTR_UNSUBSCRIBE_EMAIL_TYPEScript attribute: the e-mail unsubscription typestatic StringATTR_URL_FILE_PARTScript attribute: the link related url file partstatic StringATTR_USERScript attribute: the link related userstatic StringATTR_VALIDATION_KEYScript attribute: the validation keystatic StringATTR_VOUCHERScript attribute: the voucherstatic StringCLASSIC_PREFIXDefault prefix for the classic (old) frontend.static StringMOBILE_REDIRECTPath to the mobile redirect url.static StringMOBILE_URL_SCHEMEThe default scheme used to open the mobile application when tapping on a link in a mobile device.static StringPARAM_INVITE_TOKENParameter with the invite token used in the invite url.static StringPATH_IDENTITY_PROVIDER_CALLBACKAPI path where the identity provider will be redirected after authorization is performed (accepted/rejected)static StringPATH_IDENTITY_PROVIDER_REDIRECTAPI path that will redirect to the identity providerstatic StringPATH_UNSUBSCRIBEPath to the unsubscribe app.static StringPATH_VOUCHER_INFOPath to the voucher info appstatic StringUI_PATH_HOMEPath to the home page in the new frontend.static StringUI_PATH_INVITEPath to the invite page in the new frontend.static StringUI_PATH_LOGINPath to the login page in the new frontend.static StringUI_PATH_NOTIFICATIONPath to the notification redirect page in the new frontend.static StringUI_PATH_OPERATION_EXTERNAL_REDIRECTPath to the custom operation external redirect callback page in the new frontend.static StringUI_PATH_REPLAY_MESSAGEPath to the reply message page in the new frontend.static StringUI_PATH_VALIDATE_EMAIL_CHANGEPath to the validate e-mail change page in the new frontend.static StringUI_PATH_VALIDATE_REGISTRATIONPath to the validate registration page in the new frontend.static StringUI_PATH_WIZARD_EXECUTIONPath to the custom wizard execution page in the new frontend.static StringUI_PATH_WIZARD_EXTERNAL_REDIRECTPath to the custom wizard external redirect callback page in the new frontend.static StringUI_PREFIXDefault prefix for the new frontend.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcustomOperationExternalRedirect(ExternalRedirectExecution ere)Generates a link for a custom operation external redirect execution.StringcustomWizardExecution(CustomWizardExecution execution, CustomWizardExecutionStorage storage)Generates a link for a custom wizard external redirect execution.StringcustomWizardExternalRedirect(CustomWizardExecution execution, CustomWizardExecutionStorage storage)Generates a link for a custom wizard external redirect execution.StringeasyInvoice(LocateUserResult payee, BigDecimal amount, String description, Currency currency, PaymentTransferType paymentType, Map<TransactionCustomField,String> customValues)Generates a link for an easy invoice.StringemailChange(String key, BasicUser user)Generates a link for the validating an e-mail change for the given user.StringemailUnsubscribe(EmailUnsubscribeType unsubscribeType, BasicUser to)Generates a link for unsubscribing an e-mailStringhome(BasicUser user)Generates a link for the home of the given user.StringidentityProviderCallback(IdentityProvider provider)Generates a link representing the callback URL that the provider must redirect to after the authorization is performed (accepted/rejected)StringidentityProviderRedirect(IdentityProvider provider, String requestId)Generates a link for the popup which will redirect the user to the identity provider authorization pageStringinvite(InviteToken inviteToken)Generates a link for the invitation email to register the invited user with the corresponding tokenStringlocation(Location location, Long entityId, BasicUser user)Generates a link for a given Location and entity adding ID parameter in the URL with the entityId value, also the link will be created taking the user's network.Stringlocation(Location location, String idParamName, Long entityId, BasicUser user)Generates a link for a given Location and entity adding the given parameter in the URL with the entityId value, also the link will be created taking the user's network.Stringlocation(Location location, String keyParamName, String entityKey, BasicUser user)Generates a link for a given Location and entity adding the given parameter in the URL with the entityKey value, also the link will be created taking the user's network.Stringlocation(Location location, BasicUser user)Generates a dynamic ("tagged") link for a given Location without using any id parameter, also the link will be created taking the user's network.Stringlogin(BasicUser user)Generates a link to the application login pageStringmobile(String urlFilePart)Generates a link to be opened directly by the Mobile Application for the given Url file part.
E.g cyclos://history?id=account_idStringmobileRedirect(String urlPart, BasicUser user)Generates a link which will redirect the user to the mobile application under the given URL part.StringmobileScheme()Returns the current mobile scheme.StringregistrationValidation(String key, BasicUser user)Generates a link for the registration validation of the given user.StringregistrationWithExternalPayment(ExternalPayment externalPayment)Generates a link for registration with the given external paymentStringreplyMessage(IncomingMessage replyTo)Generates a link for replying a given messageStringroot(BasicUser user)Generates a link for the root URL for the given user, or default if the user is nullStringticket(Ticket ticket)Generates a link for paying the given ticket.StringvoucherInfo()Generates a link for the root of the voucher information pageStringvoucherInfo(Voucher voucher)Generates a link for the voucher information page for a specific voucher
-
-
-
Field Detail
-
MOBILE_REDIRECT
static final String MOBILE_REDIRECT
Path to the mobile redirect url.- See Also:
- Constant Field Values
-
MOBILE_URL_SCHEME
static final String MOBILE_URL_SCHEME
The default scheme used to open the mobile application when tapping on a link in a mobile device. It can be changed through a customScriptType.LINK_GENERATIONscript type.- See Also:
- Constant Field Values
-
UI_PREFIX
static final String UI_PREFIX
Default prefix for the new frontend.- See Also:
- Constant Field Values
-
CLASSIC_PREFIX
static final String CLASSIC_PREFIX
Default prefix for the classic (old) frontend.- See Also:
- Constant Field Values
-
UI_PATH_HOME
static final String UI_PATH_HOME
Path to the home page in the new frontend.- See Also:
- Constant Field Values
-
UI_PATH_LOGIN
static final String UI_PATH_LOGIN
Path to the login page in the new frontend.- See Also:
- Constant Field Values
-
PATH_IDENTITY_PROVIDER_REDIRECT
static final String PATH_IDENTITY_PROVIDER_REDIRECT
API path that will redirect to the identity provider- See Also:
- Constant Field Values
-
PATH_IDENTITY_PROVIDER_CALLBACK
static final String PATH_IDENTITY_PROVIDER_CALLBACK
API path where the identity provider will be redirected after authorization is performed (accepted/rejected)- See Also:
- Constant Field Values
-
PARAM_INVITE_TOKEN
static final String PARAM_INVITE_TOKEN
Parameter with the invite token used in the invite url.- See Also:
- Constant Field Values
-
PATH_VOUCHER_INFO
static final String PATH_VOUCHER_INFO
Path to the voucher info app- See Also:
- Constant Field Values
-
PATH_UNSUBSCRIBE
static final String PATH_UNSUBSCRIBE
Path to the unsubscribe app.- See Also:
- Constant Field Values
-
UI_PATH_OPERATION_EXTERNAL_REDIRECT
static final String UI_PATH_OPERATION_EXTERNAL_REDIRECT
Path to the custom operation external redirect callback page in the new frontend.- See Also:
- Constant Field Values
-
UI_PATH_WIZARD_EXTERNAL_REDIRECT
static final String UI_PATH_WIZARD_EXTERNAL_REDIRECT
Path to the custom wizard external redirect callback page in the new frontend.- See Also:
- Constant Field Values
-
UI_PATH_INVITE
static final String UI_PATH_INVITE
Path to the invite page in the new frontend.- See Also:
- Constant Field Values
-
UI_PATH_NOTIFICATION
static final String UI_PATH_NOTIFICATION
Path to the notification redirect page in the new frontend.- See Also:
- Constant Field Values
-
UI_PATH_REPLAY_MESSAGE
static final String UI_PATH_REPLAY_MESSAGE
Path to the reply message page in the new frontend.- See Also:
- Constant Field Values
-
UI_PATH_VALIDATE_REGISTRATION
static final String UI_PATH_VALIDATE_REGISTRATION
Path to the validate registration page in the new frontend.- See Also:
- Constant Field Values
-
UI_PATH_VALIDATE_EMAIL_CHANGE
static final String UI_PATH_VALIDATE_EMAIL_CHANGE
Path to the validate e-mail change page in the new frontend.- See Also:
- Constant Field Values
-
UI_PATH_WIZARD_EXECUTION
static final String UI_PATH_WIZARD_EXECUTION
Path to the custom wizard execution page in the new frontend.- See Also:
- Constant Field Values
-
ATTR_TYPE
static final String ATTR_TYPE
Script attribute: the link type to be generated- See Also:
- Constant Field Values
-
ATTR_VALIDATION_KEY
static final String ATTR_VALIDATION_KEY
Script attribute: the validation key- See Also:
- Constant Field Values
-
ATTR_UNSUBSCRIBE_EMAIL_KEY
static final String ATTR_UNSUBSCRIBE_EMAIL_KEY
Script attribute: the e-mail unsubscription key- See Also:
- Constant Field Values
-
ATTR_UNSUBSCRIBE_EMAIL_TYPE
static final String ATTR_UNSUBSCRIBE_EMAIL_TYPE
Script attribute: the e-mail unsubscription type- See Also:
- Constant Field Values
-
ATTR_USER
static final String ATTR_USER
Script attribute: the link related user- See Also:
- Constant Field Values
-
ATTR_LOCATION
static final String ATTR_LOCATION
Script attribute: the link related location- See Also:
- Constant Field Values
-
ATTR_ENTITY_ID
static final String ATTR_ENTITY_ID
Script attribute: the entity id which relates to the link- See Also:
- Constant Field Values
-
ATTR_ENTITY_ID_PARAM
static final String ATTR_ENTITY_ID_PARAM
Script attribute: the parameter name to use for the related entity id- See Also:
- Constant Field Values
-
ATTR_URL_FILE_PART
static final String ATTR_URL_FILE_PART
Script attribute: the link related url file part- See Also:
- Constant Field Values
-
ATTR_MOBILE_URL_FILE_PART
static final String ATTR_MOBILE_URL_FILE_PART
Script attribute: the link related mobile url file part- See Also:
- Constant Field Values
-
ATTR_EXTERNAL_REDIRECT_EXECUTION
static final String ATTR_EXTERNAL_REDIRECT_EXECUTION
Script attribute: the external redirect execution for custom operations- See Also:
- Constant Field Values
-
ATTR_EXECUTION
static final String ATTR_EXECUTION
Script attribute: the wizard execution for external redirects- See Also:
- Constant Field Values
-
ATTR_STORAGE
static final String ATTR_STORAGE
Script attribute: the wizard execution storage for external redirects- See Also:
- Constant Field Values
-
ATTR_IDENTITY_PROVIDER
static final String ATTR_IDENTITY_PROVIDER
Script attribute: the identity provider- See Also:
- Constant Field Values
-
ATTR_REQUEST_ID
static final String ATTR_REQUEST_ID
Script attribute: the identity provider request id- See Also:
- Constant Field Values
-
ATTR_TICKET
static final String ATTR_TICKET
Script attribute: the ticket- See Also:
- Constant Field Values
-
ATTR_VOUCHER
static final String ATTR_VOUCHER
Script attribute: the voucher- See Also:
- Constant Field Values
-
ATTR_PAYMENT_TO
static final String ATTR_PAYMENT_TO
Script attribute: the easy invoice payee- See Also:
- Constant Field Values
-
ATTR_PAYMENT_AMOUNT
static final String ATTR_PAYMENT_AMOUNT
Script attribute: the easy invoice amount- See Also:
- Constant Field Values
-
ATTR_PAYMENT_TYPE
static final String ATTR_PAYMENT_TYPE
Script attribute: the easy invoice payment type- See Also:
- Constant Field Values
-
ATTR_PAYMENT_CURRENCY
static final String ATTR_PAYMENT_CURRENCY
Script attribute: the easy invoice payment currency- See Also:
- Constant Field Values
-
ATTR_PAYMENT_DESCRIPTION
static final String ATTR_PAYMENT_DESCRIPTION
Script attribute: the easy invoice payment description- See Also:
- Constant Field Values
-
ATTR_PAYMENT_CUSTOM_VALUES
static final String ATTR_PAYMENT_CUSTOM_VALUES
Script attribute: the easy invoice payment custom field values- See Also:
- Constant Field Values
-
ATTR_REPLY_TO
static final String ATTR_REPLY_TO
Script attribute: the message being replied- See Also:
- Constant Field Values
-
ATTR_INVITE_TOKEN
static final String ATTR_INVITE_TOKEN
Script attribute: the invite token- See Also:
- Constant Field Values
-
-
Method Detail
-
customOperationExternalRedirect
String customOperationExternalRedirect(ExternalRedirectExecution ere)
Generates a link for a custom operation external redirect execution.
-
customWizardExecution
String customWizardExecution(CustomWizardExecution execution, CustomWizardExecutionStorage storage)
Generates a link for a custom wizard external redirect execution.
-
customWizardExternalRedirect
String customWizardExternalRedirect(CustomWizardExecution execution, CustomWizardExecutionStorage storage)
Generates a link for a custom wizard external redirect execution.
-
easyInvoice
String easyInvoice(LocateUserResult payee, BigDecimal amount, String description, Currency currency, PaymentTransferType paymentType, Map<TransactionCustomField,String> customValues)
Generates a link for an easy invoice.
-
emailChange
String emailChange(String key, BasicUser user)
Generates a link for the validating an e-mail change for the given user. The default URL is{root}/content/users/validateEmailChange?key={key}
-
emailUnsubscribe
String emailUnsubscribe(EmailUnsubscribeType unsubscribeType, BasicUser to)
Generates a link for unsubscribing an e-mail
-
identityProviderCallback
String identityProviderCallback(IdentityProvider provider)
Generates a link representing the callback URL that the provider must redirect to after the authorization is performed (accepted/rejected)
-
identityProviderRedirect
String identityProviderRedirect(IdentityProvider provider, String requestId)
Generates a link for the popup which will redirect the user to the identity provider authorization page
-
invite
String invite(InviteToken inviteToken)
Generates a link for the invitation email to register the invited user with the corresponding token
-
location
String location(Location location, BasicUser user)
Generates a dynamic ("tagged") link for a given Location without using any id parameter, also the link will be created taking the user's network. This kind of url will be resolved to a static (without any tags) before send the data to the user.
-
location
String location(Location location, Long entityId, BasicUser user)
Generates a link for a given Location and entity adding ID parameter in the URL with the entityId value, also the link will be created taking the user's network.
-
location
String location(Location location, String idParamName, Long entityId, BasicUser user)
Generates a link for a given Location and entity adding the given parameter in the URL with the entityId value, also the link will be created taking the user's network.
-
location
String location(Location location, String keyParamName, String entityKey, BasicUser user)
Generates a link for a given Location and entity adding the given parameter in the URL with the entityKey value, also the link will be created taking the user's network.
-
mobile
String mobile(String urlFilePart)
Generates a link to be opened directly by the Mobile Application for the given Url file part.
E.g cyclos://history?id=account_id
-
mobileRedirect
String mobileRedirect(String urlPart, BasicUser user)
Generates a link which will redirect the user to the mobile application under the given URL part.
-
mobileScheme
String mobileScheme()
Returns the current mobile scheme. E.g cyclos://
-
registrationValidation
String registrationValidation(String key, BasicUser user)
Generates a link for the registration validation of the given user.
-
registrationWithExternalPayment
String registrationWithExternalPayment(ExternalPayment externalPayment)
Generates a link for registration with the given external payment
-
replyMessage
String replyMessage(IncomingMessage replyTo)
Generates a link for replying a given message
-
root
String root(BasicUser user)
Generates a link for the root URL for the given user, or default if the user is null
-
voucherInfo
String voucherInfo()
Generates a link for the root of the voucher information page
-
-