public class TagliatelleController extends Object implements Controller
Modifier and Type | Field and Description |
---|---|
static String |
PERMISSION_SYSTEM_TAGS
Describes the permission required to access the Tagliatelle infos
|
static String |
PERMISSION_SYSTEM_TAGS_STATE
Describes the permission required to access the Tagliatelle state
|
Constructor and Description |
---|
TagliatelleController() |
Modifier and Type | Method and Description |
---|---|
void |
onError(WebContext ctx,
sirius.kernel.health.HandledException error)
In case processing a request via a method fails (throws an exception), this method will be called.
|
void |
overview(WebContext ctx)
Renders a list of all known tags.
|
void |
tagInfo(WebContext ctx,
String tagLib,
String tag)
Renders details for the given tag.
|
void |
tagState(WebContext ctx) |
public static final String PERMISSION_SYSTEM_TAGS
public static final String PERMISSION_SYSTEM_TAGS_STATE
public void onError(WebContext ctx, sirius.kernel.health.HandledException error)
Controller
This provides a convenient way to render a "fallback" page like a list view, if a specialized details view or something thereof fails.
onError
in interface Controller
ctx
- the context containing the requesterror
- the error which occurredpublic void overview(WebContext ctx)
ctx
- the request to processpublic void tagInfo(WebContext ctx, String tagLib, String tag) throws Exception
tagLib
- the library which contains the tagtag
- the name of the tagctx
- the request to processException
- in case of an error while rendering the pagepublic void tagState(WebContext ctx)
Copyright © 2018. All rights reserved.