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, wait
getDisplayName
getSearchUrl
protected final void sendError(Exception e, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected final void sendError(Exception e) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected final void sendError(String message, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected 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.ServletException
IOException
protected final void sendError(String message) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
@Deprecated protected final void requirePOST() throws javax.servlet.ServletException
RequirePOST
on your method.javax.servlet.ServletException
protected SearchIndexBuilder makeSearchIndex()
public final SearchIndex getSearchIndex()
SearchItem
SearchIndex
to further search sub items inside this item.getSearchIndex
in interface SearchItem
SearchIndex.EMPTY
if this is a leaf.SearchIndexBuilder
public Search getSearch()
SearchableModelObject
Search
object to the URL hierarchy.getSearch
in interface SearchableModelObject
public String getSearchName()
getSearchName
in interface SearchItem
Copyright © 2004–2022. All rights reserved.