Tabnine Logo
CmsDeletedResourcesList.getList
Code IndexAdd Tabnine to your IDE (free)

How to use
getList
method
in
org.opencms.workplace.commons.CmsDeletedResourcesList

Best Java code snippets using org.opencms.workplace.commons.CmsDeletedResourcesList.getList (Showing top 6 results out of 315)

origin: org.opencms/opencms-solr

/**
 * Builds the html code for the report with the list of deleted resources.<p>
 * 
 * @return html code for the report with the list of deleted resources
 * 
 * @throws JspException if dialog actions fail
 * @throws IOException in case of errros forwarding to the required result page
 * @throws ServletException in case of errros forwarding to the required result page
 */
public String buildReport() throws JspException, ServletException, IOException {
  CmsDeletedResourcesList list = new CmsDeletedResourcesList(getJsp(), getParamResource(), Boolean.valueOf(
    getParamReadtree()).booleanValue());
  list.actionDialog();
  list.getList().setBoxed(false);
  StringBuffer result = new StringBuffer(512);
  result.append("<div style='height:200px; overflow: auto;'>\n");
  result.append(list.getList().listHtml());
  result.append("</div>\n");
  return result.toString();
}
origin: org.opencms/org.opencms.workplace

/**
 * Builds the html code for the report with the list of deleted resources.<p>
 *
 * @return html code for the report with the list of deleted resources
 *
 * @throws JspException if dialog actions fail
 * @throws IOException in case of errros forwarding to the required result page
 * @throws ServletException in case of errros forwarding to the required result page
 */
public String buildReport() throws JspException, ServletException, IOException {
  CmsDeletedResourcesList list = new CmsDeletedResourcesList(
    getJsp(),
    getParamResource(),
    Boolean.valueOf(getParamReadtree()).booleanValue());
  list.actionDialog();
  list.getList().setBoxed(false);
  StringBuffer result = new StringBuffer(512);
  result.append("<div style='height:200px; overflow: auto;'>\n");
  result.append(list.getList().listHtml());
  result.append("</div>\n");
  return result.toString();
}
origin: org.opencms/opencms-solr

/**
 * Public constructor with JSP action element.<p>
 * 
 * @param jsp an initialized JSP action element
 * @param resourcename the name of the resource to display deleted entries for
 * @param readTree display deleted resources for the subtree
 */
public CmsDeletedResourcesList(CmsJspActionElement jsp, String resourcename, boolean readTree) {
  super(
    jsp,
    LIST_ID,
    Messages.get().container(Messages.GUI_DELETED_RESOURCES_LIST_NAME_0),
    null,
    CmsListOrderEnum.ORDER_ASCENDING,
    null);
  // set the style to show common workplace dialog layout
  setParamStyle("");
  // prevent paging, usually there are only few model files
  getList().setMaxItemsPerPage(Integer.MAX_VALUE);
  // hide print button
  getList().getMetadata().getIndependentAction(CmsListPrintIAction.LIST_ACTION_ID).setVisible(false);
  // suppress the box around the list
  getList().setBoxed(false);
  // hide title of the list
  //getList().setShowTitle(false);
  m_readTree = readTree;
  m_resourcename = resourcename;
}
origin: org.opencms/org.opencms.workplace

/**
 * Public constructor with JSP action element.<p>
 *
 * @param jsp an initialized JSP action element
 * @param resourcename the name of the resource to display deleted entries for
 * @param readTree display deleted resources for the subtree
 */
public CmsDeletedResourcesList(CmsJspActionElement jsp, String resourcename, boolean readTree) {
  super(
    jsp,
    LIST_ID,
    Messages.get().container(Messages.GUI_DELETED_RESOURCES_LIST_NAME_0),
    null,
    CmsListOrderEnum.ORDER_ASCENDING,
    null);
  // set the style to show common workplace dialog layout
  setParamStyle("");
  // prevent paging, usually there are only few model files
  getList().setMaxItemsPerPage(Integer.MAX_VALUE);
  // hide print button
  getList().getMetadata().getIndependentAction(CmsListPrintIAction.LIST_ACTION_ID).setVisible(false);
  // suppress the box around the list
  getList().setBoxed(false);
  // hide title of the list
  //getList().setShowTitle(false);
  m_readTree = readTree;
  m_resourcename = resourcename;
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.workplace.list.A_CmsListDialog#getListItems()
 */
@Override
protected List getListItems() throws CmsException {
  List ret = new ArrayList();
  List list = getCms().readDeletedResources(m_resourcename, m_readTree);
  Iterator iter = list.iterator();
  while (iter.hasNext()) {
    I_CmsHistoryResource res = (I_CmsHistoryResource)iter.next();
    CmsListItem item = getList().newItem(res.getStructureId().toString());
    String resourcePath = getCms().getSitePath((CmsResource)res);
    item.set(LIST_COLUMN_NAME, m_resourcename + "|" + resourcePath);
    item.set(LIST_COLUMN_DELETION_DATE, new Date(res.getDateLastModified()));
    item.set(LIST_COLUMN_VERSION, String.valueOf(res.getVersion()));
    item.set(LIST_COLUMN_TYPEID, String.valueOf(res.getTypeId()));
    ret.add(item);
  }
  return ret;
}
origin: org.opencms/org.opencms.workplace

/**
 * @see org.opencms.workplace.list.A_CmsListDialog#getListItems()
 */
@Override
protected List<CmsListItem> getListItems() throws CmsException {
  List<CmsListItem> ret = new ArrayList<CmsListItem>();
  List<I_CmsHistoryResource> list = getCms().readDeletedResources(m_resourcename, m_readTree);
  Iterator<I_CmsHistoryResource> iter = list.iterator();
  while (iter.hasNext()) {
    I_CmsHistoryResource res = iter.next();
    CmsListItem item = getList().newItem(res.getStructureId().toString());
    String resourcePath = getCms().getSitePath((CmsResource)res);
    item.set(LIST_COLUMN_NAME, m_resourcename + "|" + resourcePath);
    LOG.info("deleted resource list, name = " + m_resourcename + "|" + resourcePath);
    item.set(LIST_COLUMN_DELETION_DATE, new Date(res.getDateLastModified()));
    item.set(LIST_COLUMN_VERSION, String.valueOf(res.getVersion()));
    item.set(LIST_COLUMN_TYPEID, String.valueOf(res.getTypeId()));
    ret.add(item);
  }
  return ret;
}
org.opencms.workplace.commonsCmsDeletedResourcesListgetList

Popular methods of CmsDeletedResourcesList

  • <init>
    Public constructor with JSP action element.
  • actionDialog
  • getCms
  • setParamStyle

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now