public static String getPortletDataPath( PortletDataContext portletDataContext) { return getPortletDataPath( portletDataContext, portletDataContext.getPortletId(), portletDataContext.getPlid()); }
public long getModelAdditionCount(StagedModelType stagedModelType) { return getModelAdditionCount( stagedModelType.getClassName(), stagedModelType.getReferrerClassName()); }
public static String getManifestSummaryKey( StagedModelType stagedModelType) { return getManifestSummaryKey( stagedModelType.getClassName(), stagedModelType.getReferrerClassName()); }
protected void importMissingGroupReference( PortletDataContext portletDataContext, Element referenceElement) throws PortletDataException { StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler( "com.liferay.site.model.adapter.StagedGroup"); stagedModelDataHandler.importMissingReference( portletDataContext, referenceElement); }
protected boolean validateMissingGroupReference( PortletDataContext portletDataContext, Element referenceElement) { StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler( "com.liferay.site.model.adapter.StagedGroup"); return stagedModelDataHandler.validateReference( portletDataContext, referenceElement); }
@Override public void prepareManifestSummary( PortletDataContext portletDataContext, PortletPreferences portletPreferences) throws PortletDataException { try { doPrepareManifestSummary(portletDataContext, portletPreferences); } catch (Exception e) { throw _handleException( e, PortletDataException.PREPARE_MANIFEST_SUMMARY, portletDataContext.getPortletId()); } }
public long getModelDeletionCount(StagedModelType stagedModelType) { return getModelDeletionCount( stagedModelType.getClassName(), stagedModelType.getReferrerClassName()); }
public static boolean isRange( PortletDataContext portletDataContext, String range) { return isRange(portletDataContext.getParameterMap(), range); }
public static <T extends StagedModel> void sendStatusMessage( String messageType, T stagedModel, ManifestSummary manifestSummary) { _getPortletDataHandlerStatusMessageSender().sendStatusMessage( messageType, stagedModel, manifestSummary); }
public static <T extends StagedModel> String getDisplayName(T stagedModel) { StagedModelDataHandler<T> stagedModelDataHandler = _getStagedModelDataHandler(stagedModel); if (stagedModelDataHandler == null) { return StringPool.BLANK; } return stagedModelDataHandler.getDisplayName(stagedModel); }
public static <T extends StagedModel> void exportStagedModel( PortletDataContext portletDataContext, T stagedModel) throws PortletDataException { if (!ExportImportHelperUtil.isReferenceWithinExportScope( portletDataContext, stagedModel)) { return; } StagedModelDataHandler<T> stagedModelDataHandler = _getStagedModelDataHandler(stagedModel); if (stagedModelDataHandler == null) { return; } stagedModelDataHandler.exportStagedModel( portletDataContext, stagedModel); }
public static PortletDataContext clonePortletDataContext( PortletDataContext portletDataContext) { return _portletDataContextFactory.clonePortletDataContext( portletDataContext); }
protected boolean validateMissingReference(String uuid, long groupId) { T existingStagedModel = fetchMissingReference(uuid, groupId); if (existingStagedModel == null) { return false; } return true; }
/** * Returns all the registered staged model data handlers. * * @return the registered staged model data handlers */ public static List<StagedModelDataHandler<?>> getStagedModelDataHandlers() { return _instance._getStagedModelDataHandlers(); }
/** * Registers the staged model data handler. * * @param stagedModelDataHandler the staged model data handler to register */ public static void register( StagedModelDataHandler<?> stagedModelDataHandler) { _instance._register(stagedModelDataHandler); }
@Override public boolean validateSchemaVersion(String schemaVersion) { try { return doValidateSchemaVersion(schemaVersion); } catch (Exception e) { return false; } }
public static boolean isReferenceWithinExportScope( PortletDataContext portletDataContext, StagedModel stagedModel) { return _exportImportHelper.isReferenceWithinExportScope( portletDataContext, stagedModel); }
public static void processBackgroundTaskManifestSummary( long userId, long sourceGroupId, BackgroundTask backgroundTask, File file) throws PortalException { _exportImportHelper.processBackgroundTaskManifestSummary( userId, sourceGroupId, backgroundTask, file); }
public static void sendStatusMessage( String messageType, String portletId, ManifestSummary manifestSummary) { _getPortletDataHandlerStatusMessageSender().sendStatusMessage( messageType, portletId, manifestSummary); }
public static void sendStatusMessage( String messageType, String[] portletIds, ManifestSummary manifestSummary) { _getPortletDataHandlerStatusMessageSender().sendStatusMessage( messageType, portletIds, manifestSummary); }