| Package | Description |
|---|---|
| org.sakaiproject.entitybroker | |
| org.sakaiproject.entitybroker.entityprovider.capabilities | |
| org.sakaiproject.entitybroker.util |
| Modifier and Type | Method and Description |
|---|---|
List<TemplateParseUtil.Template> |
EntityView.getParseTemplates() |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityView.loadParseTemplates(List<TemplateParseUtil.Template> templates)
Override this method if creating a custom
EntityView object |
| Modifier and Type | Method and Description |
|---|---|
List<TemplateParseUtil.Template> |
EntityViewUrlCustomizable.getParseTemplates()
Defines a set of parseable templates to use with entity url processing for this template
(which is basically a key and the template string),
the array which defines the set of template keys is
TemplateParseUtil.PARSE_TEMPLATE_KEYSRules for parse templates: 1) "{","}", and #SEPARATOR are special characters and must be used as indicated only2) Must begin with a #SEPARATOR, must not end with a #SEPARATOR3) must begin with "/{prefix}" (use the #SEPARATOR and #PREFIX constants)3) each {var} can only be used once in a template 4) {var} can never touch each other (i.e /{var1}{var2}/{id} is invalid) 5) each {var} can only have the chars from TemplateParseUtil.VALID_VAR_CHARS6) parse templates can only have the chars from TemplateParseUtil.VALID_TEMPLATE_CHARS7) Empty braces ({}) cannot appear in the template You do not have to supply a template for all the keys in TemplateParseUtil.PARSE_TEMPLATE_KEYS,
any that you do not include will simply use the default templates, be careful though,
since they will be parsed in order you have to be careful about the order you place your templates
in the list, check the default order as an example |
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateParseUtil.PreProcessedTemplate
Contains the data for templates,
each template must have a template key and the template itself
|
static class |
TemplateParseUtil.ProcessedTemplate
Contains the processed template with the values from the processed input string
that was determined to be related to this template
|
| Modifier and Type | Field and Description |
|---|---|
static List<TemplateParseUtil.Template> |
TemplateParseUtil.defaultTemplates
Stores the preloaded default templates
|
| Modifier and Type | Method and Description |
|---|---|
static TemplateParseUtil.PreProcessedTemplate |
TemplateParseUtil.preprocessTemplate(TemplateParseUtil.Template t)
process a template into a preprocessed template which can be cached
|
| Modifier and Type | Method and Description |
|---|---|
static List<TemplateParseUtil.PreProcessedTemplate> |
TemplateParseUtil.preprocessTemplates(List<TemplateParseUtil.Template> templates)
Process the templates before attempting to match them,
this is here so we can reduce the load of reprocessing the same templates over and over
|
Copyright © 2023. All rights reserved.