Skip to content

Commit

Permalink
cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Apr 11, 2021
1 parent 9708aa6 commit 7e24e88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
package design.aem.reports;

import com.adobe.acs.commons.reports.api.ReportCellCSVExporter;
import com.day.cq.commons.jcr.JcrConstants;

import com.day.cq.wcm.api.Page;
import com.day.cq.wcm.api.components.Component;
import com.day.cq.wcm.api.components.ComponentManager;
import org.apache.commons.lang3.StringUtils;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceUtil;
import org.apache.sling.api.resource.ValueMap;
import org.apache.sling.models.annotations.Default;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.Self;
import org.apache.sling.models.annotations.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.inject.Inject;
import java.util.*;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

import static design.aem.reports.PageComponentsReportCellValue.getResourceChildrenComponentsTreeList;
import static design.aem.utils.components.CommonUtil.RESOURCE_TYPE;
import static org.apache.commons.lang3.StringUtils.isNotEmpty;
import org.apache.sling.models.annotations.Optional;

/**
* Model for rendering component paths in a page when exporting content to csv
*/
@Model(adaptables = Resource.class)
public class PageComponentTreeReportCellCSVExporter implements ReportCellCSVExporter {
public class PageComponentTreeReportCellCSVExporter {

private static final Logger log = LoggerFactory.getLogger(PageComponentTreeReportCellCSVExporter.class);

Expand All @@ -37,7 +33,6 @@ public class PageComponentTreeReportCellCSVExporter implements ReportCellCSVExpo
@Default(values = "")
private String componentattribute;

@Override
public String getValue(Object result) {

Resource resource = (Resource)result;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
package design.aem.reports;

import com.adobe.acs.commons.reports.api.ReportCellCSVExporter;
import com.day.cq.wcm.api.Page;
import com.day.cq.wcm.api.components.Component;
import com.day.cq.wcm.api.components.ComponentManager;
import org.apache.commons.lang3.StringUtils;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceUtil;
import org.apache.sling.api.resource.ValueMap;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.Self;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.*;
import java.util.HashMap;

import static design.aem.reports.PageComponentsReportCellValue.getResourceChildrenComponents;
import static design.aem.utils.components.CommonUtil.RESOURCE_TYPE;
import static org.apache.commons.lang3.StringUtils.isNotEmpty;

/**
* Model for rendering component paths in a page when exporting content to csv
*/
@Model(adaptables = Resource.class)
public class PageComponentsReportCellCSVExporter implements ReportCellCSVExporter {
public class PageComponentsReportCellCSVExporter {

private static final Logger log = LoggerFactory.getLogger(PageComponentsReportCellCSVExporter.class);

@Override
public String getValue(Object result) {

Resource resource = (Resource)result;
Expand Down

0 comments on commit 7e24e88

Please sign in to comment.