public class ControllerModel extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
MODEL_FILTER_PATTERN
The regex to extract the entity name from the generated filter.
|
static Pattern |
TEMPLATE_FILTER_PATTERN
The regex to extract the template name from the generated filter.
|
| Constructor and Description |
|---|
ControllerModel() |
| Modifier and Type | Method and Description |
|---|---|
private static String |
extractInvalidityReason(org.apache.felix.ipojo.architecture.InstanceDescription description) |
private static String |
extractModelName(String filter)
Extracts the model name from the given LDAP filter.
|
private static String |
extractTemplateName(String filter)
Extracts the template name from the given LDAP filter.
|
static com.fasterxml.jackson.databind.JsonNode |
from(org.wisdom.api.Controller controller,
org.wisdom.api.router.Router router,
org.wisdom.api.content.Json json)
Creates the Json representation for a valid (exposed) controller.
|
static com.fasterxml.jackson.databind.JsonNode |
from(org.apache.felix.ipojo.architecture.InstanceDescription description,
org.wisdom.api.content.Json json)
Creates the Json representation for an invalid controller.
|
private static com.fasterxml.jackson.databind.node.ArrayNode |
getRoutes(org.wisdom.api.Controller controller,
org.wisdom.api.router.Router router,
org.wisdom.api.content.Json json) |
public static final Pattern TEMPLATE_FILTER_PATTERN
public static final Pattern MODEL_FILTER_PATTERN
public static com.fasterxml.jackson.databind.JsonNode from(org.apache.felix.ipojo.architecture.InstanceDescription description,
org.wisdom.api.content.Json json)
description - the instance's descriptionjson - the json servicepublic static com.fasterxml.jackson.databind.JsonNode from(org.wisdom.api.Controller controller,
org.wisdom.api.router.Router router,
org.wisdom.api.content.Json json)
controller - the controllerrouter - the routerjson - the json serviceprivate static com.fasterxml.jackson.databind.node.ArrayNode getRoutes(org.wisdom.api.Controller controller,
org.wisdom.api.router.Router router,
org.wisdom.api.content.Json json)
private static String extractInvalidityReason(org.apache.felix.ipojo.architecture.InstanceDescription description)
private static String extractTemplateName(String filter)
filter - the filterCopyright © 2013–2015 Wisdom Framework. All rights reserved.