/** * Returns the layout revision ID of this layout revision. * * @return the layout revision ID of this layout revision */ @Override public long getLayoutRevisionId() { return _layoutRevision.getLayoutRevisionId(); }
/** * Returns the color scheme ID of this layout revision. * * @return the color scheme ID of this layout revision */ @Override public String getColorSchemeId() { return _layoutRevision.getColorSchemeId(); }
/** * Returns the company ID of this layout revision. * * @return the company ID of this layout revision */ @Override public long getCompanyId() { return _layoutRevision.getCompanyId(); }
soapModel.setMvccVersion(model.getMvccVersion()); soapModel.setLayoutRevisionId(model.getLayoutRevisionId()); soapModel.setGroupId(model.getGroupId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setUserId(model.getUserId()); soapModel.setUserName(model.getUserName()); soapModel.setCreateDate(model.getCreateDate()); soapModel.setModifiedDate(model.getModifiedDate()); soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId()); soapModel.setLayoutBranchId(model.getLayoutBranchId()); soapModel.setParentLayoutRevisionId(model.getParentLayoutRevisionId()); soapModel.setHead(model.isHead()); soapModel.setMajor(model.isMajor()); soapModel.setPlid(model.getPlid()); soapModel.setPrivateLayout(model.isPrivateLayout()); soapModel.setName(model.getName()); soapModel.setTitle(model.getTitle()); soapModel.setDescription(model.getDescription()); soapModel.setKeywords(model.getKeywords()); soapModel.setRobots(model.getRobots()); soapModel.setTypeSettings(model.getTypeSettings()); soapModel.setIconImageId(model.getIconImageId()); soapModel.setThemeId(model.getThemeId()); soapModel.setColorSchemeId(model.getColorSchemeId()); soapModel.setCss(model.getCss()); soapModel.setStatus(model.getStatus()); soapModel.setStatusByUserId(model.getStatusByUserId()); soapModel.setStatusByUserName(model.getStatusByUserName()); soapModel.setStatusDate(model.getStatusDate());
@Override public Layout mergeLayoutRevisionIntoLayout(Layout layout) { LayoutStagingHandler layoutStagingHandler = getLayoutStagingHandler( layout); if (layoutStagingHandler == null) { return (Layout)layout.clone(); } layout = layoutStagingHandler.getLayout(); layout = (Layout)layout.clone(); LayoutRevision layoutRevision = layoutStagingHandler.getLayoutRevision(); layout.setName(layoutRevision.getName()); layout.setTitle(layoutRevision.getTitle()); layout.setDescription(layoutRevision.getDescription()); layout.setKeywords(layoutRevision.getKeywords()); layout.setRobots(layoutRevision.getRobots()); layout.setTypeSettings(layoutRevision.getTypeSettings()); layout.setIconImageId(layoutRevision.getIconImageId()); layout.setThemeId(layoutRevision.getThemeId()); layout.setColorSchemeId(layoutRevision.getColorSchemeId()); layout.setCss(layoutRevision.getCss()); return layout; }
@Override public WorkflowTask getWorkflowTask( long userId, LayoutRevision layoutRevision) throws PortalException { WorkflowInstanceLink workflowInstanceLink = _workflowInstanceLinkLocalService.fetchWorkflowInstanceLink( layoutRevision.getCompanyId(), layoutRevision.getGroupId(), LayoutRevision.class.getName(), layoutRevision.getLayoutRevisionId()); if (workflowInstanceLink == null) { return null; } List<WorkflowTask> workflowTasks = WorkflowTaskManagerUtil.getWorkflowTasksByWorkflowInstance( layoutRevision.getCompanyId(), userId, workflowInstanceLink.getWorkflowInstanceId(), false, 0, 1, null); if (!workflowTasks.isEmpty()) { return workflowTasks.get(0); } return null; }
_layoutRevisionLocalService.getLayoutRevision(layoutRevisionId); layoutBranchId = layoutRevision.getLayoutBranchId(); layoutSetBranchId, layoutBranchId, plid); if (lastLayoutRevision.getLayoutRevisionId() == layoutRevisionId) { deleteRecentLayoutRevisionId(userId, layoutSetBranchId, plid);
/** * Returns the localized description of this layout revision in the language. Uses the default language if no localization exists for the requested language. * * @param locale the locale of the language * @return the localized description of this layout revision */ @Override public String getDescription(java.util.Locale locale) { return _layoutRevision.getDescription(locale); }
/** * Returns the keywords of this layout revision. * * @return the keywords of this layout revision */ @Override public String getKeywords() { return _layoutRevision.getKeywords(); }
if ((layoutRevision != null) && !layoutRevision.isInactive()) { return layoutRevision; StagingUtil.setRecentLayoutRevisionId( user, layoutSetBranchId, layout.getPlid(), layoutRevision.getLayoutRevisionId()); LayoutRevisionLocalServiceUtil.updateStatus( serviceContext.getUserId(), layoutRevision.getLayoutRevisionId(), WorkflowConstants.STATUS_INCOMPLETE, serviceContext);
/** * Returns the layout set branch ID of this layout revision. * * @return the layout set branch ID of this layout revision */ @Override public long getLayoutSetBranchId() { return _layoutRevision.getLayoutSetBranchId(); }
/** * Returns the layout branch ID of this layout revision. * * @return the layout branch ID of this layout revision */ @Override public long getLayoutBranchId() { return _layoutRevision.getLayoutBranchId(); }
/** * Returns the icon image ID of this layout revision. * * @return the icon image ID of this layout revision */ @Override public long getIconImageId() { return _layoutRevision.getIconImageId(); }
/** * Returns the group ID of this layout revision. * * @return the group ID of this layout revision */ @Override public long getGroupId() { return _layoutRevision.getGroupId(); }
/** * Returns the css of this layout revision. * * @return the css of this layout revision */ @Override public String getCss() { return _layoutRevision.getCss(); }
/** * Returns the localized description of this layout revision in the language, optionally using the default language if no localization exists for the requested language. * * @param locale the local of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized description of this layout revision. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned. */ @Override public String getDescription(java.util.Locale locale, boolean useDefault) { return _layoutRevision.getDescription(locale, useDefault); }
/** * Returns the localized keywords of this layout revision in the language, optionally using the default language if no localization exists for the requested language. * * @param locale the local of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized keywords of this layout revision. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned. */ @Override public String getKeywords(java.util.Locale locale, boolean useDefault) { return _layoutRevision.getKeywords(locale, useDefault); }
@Override public boolean isIncomplete(Layout layout) { LayoutRevision layoutRevision = LayoutStagingUtil.getLayoutRevision( layout); if (layoutRevision != null) { long layoutSetBranchId = layoutRevision.getLayoutSetBranchId(); if (isLayoutRevisionIncomplete( layout.getPlid(), layoutRevision, layoutSetBranchId)) { return true; } } return false; }
layoutBranchId = layoutRevision.getLayoutBranchId();
@Override public Long get(LayoutRevision layoutRevision) { return layoutRevision.getLayoutRevisionId(); }