public abstract class AbstractModelObject extends Object implements SearchableModelObject
ModelObject with some convenience methods.| Constructor and Description |
|---|
AbstractModelObject() |
| Modifier and Type | Method and Description |
|---|---|
Search |
getSearch()
This binds
Search object to the URL hierarchy. |
SearchIndex |
getSearchIndex()
Returns the
SearchIndex to further search sub items inside this item. |
String |
getSearchName()
Default implementation that returns the display name.
|
protected SearchIndexBuilder |
makeSearchIndex()
Default implementation that returns empty index.
|
protected void |
requirePOST()
Deprecated.
Use
RequirePOST on your method. |
protected void |
sendError(Exception e) |
protected void |
sendError(Exception e,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Displays the error in a page.
|
protected void |
sendError(String message) |
protected void |
sendError(String message,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp) |
protected void |
sendError(String message,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
boolean pre) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayNamegetSearchUrlprotected final void sendError(Exception e, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected final void sendError(Exception e) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected final void sendError(String message, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOExceptionprotected final void sendError(String message, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, boolean pre) throws javax.servlet.ServletException, IOException
pre - If true, the message is put in a PRE tag.javax.servlet.ServletExceptionIOExceptionprotected final void sendError(String message) throws javax.servlet.ServletException, IOException
javax.servlet.ServletExceptionIOException@Deprecated protected final void requirePOST() throws javax.servlet.ServletException
RequirePOST on your method.javax.servlet.ServletExceptionprotected SearchIndexBuilder makeSearchIndex()
public final SearchIndex getSearchIndex()
SearchItemSearchIndex to further search sub items inside this item.getSearchIndex in interface SearchItemSearchIndex.EMPTY if this is a leaf.SearchIndexBuilderpublic Search getSearch()
SearchableModelObjectSearch object to the URL hierarchy.getSearch in interface SearchableModelObjectpublic String getSearchName()
getSearchName in interface SearchItemCopyright © 2019. All rights reserved.