Package org.cyclos.impl.utils
Interface LinkGeneratorHandler
-
- All Known Implementing Classes:
LinkGeneratorHandlerImpl
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_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_STORAGEScript attribute: the wizard execution storage for external redirectsstatic StringATTR_TICKETScript attribute: the ticketstatic StringATTR_TYPEScript attribute: the link type to be generatedstatic StringATTR_URL_FILE_PARTScript attribute: the link related url file partstatic StringATTR_USERScript attribute: the link related userstatic StringATTR_VALIDATION_KEYScript attribute: the validation key
-
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.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.StringforgotPassword(String key, BasicUser user)Generates a link for the forgot password request for the given user.Stringlocation(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, 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(ConfigurationAccessor configuration)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://forgotPassword?key=ZBCXYZStringmobileRedirect(String urlPart, BasicUser user)Generates a link which will redirect the user to the mobile application under the given URL part.StringregistrationValidation(String key, BasicUser user)Generates a link for the registration validation of the given user.Stringticket(Ticket ticket)Generates a link for paying the given ticket.
-
-
-
Field Detail
-
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_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_TICKET
static final String ATTR_TICKET
Script attribute: the ticket- 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
-
-
Method Detail
-
customOperationExternalRedirect
String customOperationExternalRedirect(ExternalRedirectExecution ere)
Generates a link for a custom operation external redirect execution. The default URL is{root}/external-redirect-callback/{maskId(ere.getId()}/{ere.getVerificationToken()}
-
customWizardExternalRedirect
String customWizardExternalRedirect(CustomWizardExecution execution, CustomWizardExecutionStorage storage)
Generates a link for a custom wizard external redirect execution. The default URL is{root}/wizard-external-callback/{execution.getKey()}
-
easyInvoice
String easyInvoice(LocateUserResult payee, BigDecimal amount, String description, Currency currency, PaymentTransferType paymentType, Map<TransactionCustomField,String> customValues)
Generates a link for an easy invoice. The default URL is{root}/pay?to={payee.principal}&amount={amount}&description={description}¤cy={maskId(currency.id)}&type={maskId(type.id)}[&{customValues.key.internalName}={customValues.value}]
-
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}
-
forgotPassword
String forgotPassword(String key, BasicUser user)
Generates a link for the forgot password request for the given user. The default URL is{root}#access.passwords.forgot!key={key}
-
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.
-
login
String login(ConfigurationAccessor configuration)
Generates a link to the application login page
-
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://forgotPassword?key=ZBCXYZ
-
mobileRedirect
String mobileRedirect(String urlPart, BasicUser user)
Generates a link which will redirect the user to the mobile application under the given URL part. The default URL is{root}/mobile-redirect/{urlPart}
-
registrationValidation
String registrationValidation(String key, BasicUser user)
Generates a link for the registration validation of the given user. The default URL is{root}/content/users/validateRegistration?key={key}
-
-