Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.staging;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONArray;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.lar.MissingReference;
import com.liferay.portal.kernel.lar.PortletDataContext;
import com.liferay.portal.kernel.util.DateRange;
import com.liferay.portal.kernel.util.UnicodeProperties;
import com.liferay.portal.kernel.workflow.WorkflowTask;
import com.liferay.portal.kernel.xml.Element;
import com.liferay.portal.model.Group;
import com.liferay.portal.model.Layout;
import com.liferay.portal.model.LayoutRevision;
import com.liferay.portal.model.LayoutSet;
import com.liferay.portal.model.Portlet;
import com.liferay.portal.model.User;
import com.liferay.portal.service.ServiceContext;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.portlet.PortletPreferences;
import javax.portlet.PortletRequest;
import javax.servlet.http.HttpServletRequest;
/**
* @author Raymond Augé
*/
public interface Staging {
public String buildRemoteURL(
String remoteAddress, int remotePort, String remotePathContext,
boolean secureConnection, long remoteGroupId, boolean privateLayout);
public String buildRemoteURL(UnicodeProperties typeSettingsProperties);
/**
* @deprecated As of 7.0.0, replaced by {@link
* com.liferay.portal.service.StagingLocalServiceUtil#
* checkDefaultLayoutSetBranches(long, Group, boolean, boolean,
* boolean, ServiceContext))}
*/
@Deprecated
public void checkDefaultLayoutSetBranches(
long userId, Group liveGroup, boolean branchingPublic,
boolean branchingPrivate, boolean remote,
ServiceContext serviceContext)
throws PortalException, SystemException;
public void copyFromLive(PortletRequest PortletRequest) throws Exception;
public void copyFromLive(PortletRequest PortletRequest, Portlet portlet)
throws Exception;
public void copyPortlet(
PortletRequest PortletRequest, long sourceGroupId,
long targetGroupId, long sourcePlid, long targetPlid,
String portletId)
throws Exception;
public void copyRemoteLayouts(
long sourceGroupId, boolean privateLayout,
Map layoutIdMap, Map parameterMap,
String remoteAddress, int remotePort, String remotePathContext,
boolean secureConnection, long remoteGroupId,
boolean remotePrivateLayout, Date startDate, Date endDate)
throws Exception;
public void deleteLastImportSettings(Group liveGroup, boolean privateLayout)
throws PortalException, SystemException;
public void deleteRecentLayoutRevisionId(
HttpServletRequest request, long layoutSetBranchId, long plid)
throws SystemException;
public void deleteRecentLayoutRevisionId(
User user, long layoutSetBranchId, long plid)
throws SystemException;
/**
* @deprecated As of 6.2.0, replaced by {@link
* com.liferay.portal.service.StagingLocalService#disableStaging(
* Group, ServiceContext)}
*/
public void disableStaging(
Group scopeGroup, Group liveGroup, ServiceContext serviceContext)
throws Exception;
/**
* @deprecated As of 6.2.0, replaced by {@link
* com.liferay.portal.service.StagingLocalService#disableStaging(
* Group, ServiceContext)}
*/
public void disableStaging(Group liveGroup, ServiceContext serviceContext)
throws Exception;
/**
* @deprecated As of 6.2.0, replaced by {@link
* com.liferay.portal.service.StagingLocalService#disableStaging(
* PortletRequest, Group, ServiceContext)}
*/
public void disableStaging(
PortletRequest portletRequest, Group scopeGroup, Group liveGroup,
ServiceContext serviceContext)
throws Exception;
/**
* @deprecated As of 6.2.0, replaced by {@link
* com.liferay.portal.service.StagingLocalService#disableStaging(
* PortletRequest, Group, ServiceContext)}
*/
public void disableStaging(
PortletRequest portletRequest, Group liveGroup,
ServiceContext serviceContext)
throws Exception;
/**
* @deprecated As of 6.2.0, replaced by {@link
* com.liferay.portal.service.StagingLocalService#enableLocalStaging(
* long, Group, boolean, boolean, ServiceContext)}
*/
public void enableLocalStaging(
long userId, Group scopeGroup, Group liveGroup,
boolean branchingPublic, boolean branchingPrivate,
ServiceContext serviceContext)
throws Exception;
/**
* @deprecated As of 6.2.0, replaced by {@link
* com.liferay.portal.service.StagingLocalService#enableRemoteStaging(
* long, Group, boolean, boolean, String, int, String, boolean,
* long, ServiceContext)}
*/
public void enableRemoteStaging(
long userId, Group scopeGroup, Group liveGroup,
boolean branchingPublic, boolean branchingPrivate,
String remoteAddress, int remotePort, String remotePathContext,
boolean secureConnection, long remoteGroupId,
ServiceContext serviceContext)
throws Exception;
public JSONArray getErrorMessagesJSONArray(
Locale locale, Map missingReferences,
Map contextMap);
public JSONObject getExceptionMessagesJSONObject(
Locale locale, Exception e, Map contextMap);
public Date getLastPublishDate(LayoutSet layoutSet) throws PortalException;
public Date getLastPublishDate(PortletPreferences jxPortletPreferences);
public Group getLiveGroup(long groupId)
throws PortalException, SystemException;
public long getLiveGroupId(long groupId)
throws PortalException, SystemException;
public List getMissingParentLayouts(Layout layout, long liveGroupId)
throws Exception;
public long getRecentLayoutRevisionId(
HttpServletRequest request, long layoutSetBranchId, long plid)
throws PortalException, SystemException;
public long getRecentLayoutRevisionId(
User user, long layoutSetBranchId, long plid)
throws PortalException, SystemException;
public long getRecentLayoutSetBranchId(
HttpServletRequest request, long layoutSetId);
public long getRecentLayoutSetBranchId(User user, long layoutSetId)
throws SystemException;
public String getSchedulerGroupName(String destinationName, long groupId);
public String getStagedPortletId(String portletId);
public Map getStagingParameters();
public Map getStagingParameters(
PortletRequest PortletRequest);
public JSONArray getWarningMessagesJSONArray(
Locale locale, Map missingReferences,
Map contextMap);
public WorkflowTask getWorkflowTask(
long userId, LayoutRevision layoutRevision)
throws PortalException, SystemException;
public boolean hasWorkflowTask(long userId, LayoutRevision layoutRevision)
throws PortalException, SystemException;
public boolean isIncomplete(Layout layout, long layoutSetBranchId);
public void lockGroup(long userId, long groupId) throws Exception;
public void publishLayout(
long userId, long plid, long liveGroupId, boolean includeChildren)
throws Exception;
public void publishLayouts(
long userId, long sourceGroupId, long targetGroupId,
boolean privateLayout, long[] layoutIds,
Map parameterMap, Date startDate, Date endDate)
throws PortalException, SystemException;
public void publishLayouts(
long userId, long sourceGroupId, long targetGroupId,
boolean privateLayout, Map layoutIdMap,
Map parameterMap, Date startDate, Date endDate)
throws PortalException, SystemException;
public void publishLayouts(
long userId, long sourceGroupId, long targetGroupId,
boolean privateLayout, Map parameterMap,
Date startDate, Date endDate)
throws PortalException, SystemException;
public void publishToLive(PortletRequest PortletRequest) throws Exception;
public void publishToLive(PortletRequest PortletRequest, Portlet portlet)
throws Exception;
public void publishToRemote(PortletRequest PortletRequest) throws Exception;
public void scheduleCopyFromLive(PortletRequest PortletRequest)
throws Exception;
public void schedulePublishToLive(PortletRequest PortletRequest)
throws Exception;
public void schedulePublishToRemote(PortletRequest PortletRequest)
throws Exception;
public void setRecentLayoutBranchId(
HttpServletRequest request, long layoutSetBranchId, long plid,
long layoutBranchId)
throws SystemException;
public void setRecentLayoutBranchId(
User user, long layoutSetBranchId, long plid, long layoutBranchId)
throws SystemException;
public void setRecentLayoutRevisionId(
HttpServletRequest request, long layoutSetBranchId, long plid,
long layoutRevisionId)
throws SystemException;
public void setRecentLayoutRevisionId(
User user, long layoutSetBranchId, long plid, long layoutRevisionId)
throws SystemException;
public void setRecentLayoutSetBranchId(
HttpServletRequest request, long layoutSetId, long layoutSetBranchId);
public void setRecentLayoutSetBranchId(
User user, long layoutSetId, long layoutSetBranchId)
throws SystemException;
public void unlockGroup(long groupId) throws SystemException;
public void unscheduleCopyFromLive(PortletRequest PortletRequest)
throws Exception;
public void unschedulePublishToLive(PortletRequest PortletRequest)
throws Exception;
public void unschedulePublishToRemote(PortletRequest PortletRequest)
throws Exception;
public void updateLastImportSettings(
Element layoutElement, Layout layout,
PortletDataContext portletDataContext)
throws Exception;
public void updateLastPublishDate(
long sourceGroupId, boolean privateLayout, Date lastPublishDate)
throws Exception;
public void updateLastPublishDate(
long sourceGroupId, boolean privateLayout, DateRange dateRange,
Date lastPublishDate)
throws Exception;
public void updateLastPublishDate(
String portletId, PortletPreferences portletPreferences,
Date lastPublishDate)
throws Exception;
public void updateLastPublishDate(
String portletId, PortletPreferences portletPreferences,
DateRange dateRange, Date lastPublishDate);
public void updateStaging(PortletRequest PortletRequest, Group liveGroup)
throws Exception;
public void validateRemote(
String remoteAddress, int remotePort, String remotePathContext,
boolean secureConnection, long remoteGroupId)
throws PortalException;
}