org.broadleafcommerce.core.content.service.ContentService Maven / Gradle / Ivy
/*
* Copyright 2008-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.broadleafcommerce.core.content.service;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.broadleafcommerce.core.content.domain.Content;
import org.broadleafcommerce.core.content.domain.ContentDetails;
import org.broadleafcommerce.core.content.domain.ContentPageInfo;
import org.broadleafcommerce.core.content.domain.ContentXmlData;
/**
* @author btaylor
*
*/
public interface ContentService {
public Content findContentById(Integer id);
public ContentDetails findContentDetailsById(Integer id);
public String findContentDetailsXmlById(Integer id);
public Map findContentDetailsMapById(Integer id) throws Exception;
public List findContentDetailsListById(Integer id) throws Exception;
public List findContentDetails(String sandbox, String contentType, Map mvelParameters);
public List findContentDetails(String sandbox, String contentType, Map mvelParameters, Date displayDate);
public List findContent(String sandbox, String contentType, Map mvelParameters, Date displayDate);
public String renderedContentDetails(String styleSheet, List contentDetails) throws Exception;
public String renderedContentDetails(String styleSheetString, List contentDetails, int rowCount) throws Exception;
public String renderedContent(String styleSheetString, List contentList, int rowCount) throws Exception;
public List checkoutContentToSandbox(List contentIds, String sandboxName);
public void submitContentFromSandbox(List contentIds, String sandboxName, String username, String note);
public void approveContent(List contentIds, String sandboxName, String username);
public void removeContentFromSandbox(List contentIds, String sandbox);
public void rejectContent(List contentIds, String sandbox, String username);
public List readContentForSandbox(String sandbox);
public List readContentForSandboxAndType(String sandbox, String contentType);
public List readContentAwaitingApproval();
public Content saveContent(Content content, List details);
public List readAllContentPageInfos();
public Map constructParentUrlMap();
}