Class Cms2Callable
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.cms2.Cms2Callable
-
@VelocityCallable("singleton") public final class Cms2Callable extends Object
-
-
Constructor Summary
Constructors Constructor Description Cms2Callable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canUnpublishPage(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page
createCms2PageFromGuid(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strGuid)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page
createCms2PageFromMenuGuid(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strMenuGuid)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page
createCms2PageFromRecId(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecIdPage)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2Publication
createCms2PublicationFormVersion(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version p_version)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2Publication
createCms2PublicationFromRecId(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecIdPub)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2Template
createCms2TemplateFromRecId(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecIdTemplate)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version
createCms2VersionFromRecId(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecIdVersion)
boolean
denyWriteByRelease(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid)
String
getCmsLink(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecId, String p_strLinkText, String p_strStyle, boolean p_bTooltip, boolean p_bPopup)
String
getMenuItemRecId(CmsMenuItem p_item, String p_strLang)
String
getMenuPath(String p_strMenuGuid, String p_strLang, String p_strSeparator)
String
getMenuPath(String p_strMenuGuid, String p_strLang, String p_strSeparator, boolean p_bFullDepth)
String
getPermissionName(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page)
List<String>
getPrincipalsWithReadPermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page, de.uplanet.jdbc.JdbcConnection p_conn)
List<String>
getPrincipalsWithWritePermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page, de.uplanet.jdbc.JdbcConnection p_conn)
Map<String,String>
getPublicationLanguageMappings(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2SystemSetting
getSystemSettings(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid)
de.uplanet.lucy.server.auxiliaries.cms2.Cms2Publication
getUserRelevantPublication(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page)
boolean
hasReleaseRequest(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version p_version)
boolean
hasWritePermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page)
boolean
informUserByReleasedModification(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid)
static boolean
isCms2(String p_strAppGuid)
Deprecated.static boolean
isCms2(String p_strAppGuid, String p_strDgGuid)
static boolean
isCms2ByAppGuidAndPageGuid(String p_strAppGuid, String p_strPageGuid)
boolean
isReleaseCommissioner(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserGuid, de.uplanet.lucy.server.auxiliaries.cms2.Cms2Category p_category)
void
setReadPermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page, de.uplanet.jdbc.JdbcConnection p_conn, List<String> p_principals)
void
setWritePermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page, de.uplanet.jdbc.JdbcConnection p_conn, List<String> p_principals)
void
swapPublishedVersions(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version p_oldVersion, de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version p_newVersion)
-
-
-
Method Detail
-
getSystemSettings
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2SystemSetting getSystemSettings(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid)
-
createCms2PageFromRecId
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page createCms2PageFromRecId(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecIdPage) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
createCms2PageFromMenuGuid
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page createCms2PageFromMenuGuid(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strMenuGuid) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
createCms2PageFromGuid
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page createCms2PageFromGuid(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strGuid) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
createCms2VersionFromRecId
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version createCms2VersionFromRecId(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecIdVersion) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
createCms2PublicationFromRecId
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2Publication createCms2PublicationFromRecId(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecIdPub) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
createCms2PublicationFormVersion
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2Publication createCms2PublicationFormVersion(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version p_version) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
createCms2TemplateFromRecId
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2Template createCms2TemplateFromRecId(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecIdTemplate) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
hasReleaseRequest
public boolean hasReleaseRequest(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version p_version) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
getPublicationLanguageMappings
public Map<String,String> getPublicationLanguageMappings(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
getMenuItemRecId
public String getMenuItemRecId(CmsMenuItem p_item, String p_strLang) throws org.json.simple.parser.ParseException
- Throws:
org.json.simple.parser.ParseException
-
swapPublishedVersions
public void swapPublishedVersions(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version p_oldVersion, de.uplanet.lucy.server.auxiliaries.cms2.Cms2Version p_newVersion) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
canUnpublishPage
public boolean canUnpublishPage(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
setReadPermission
public void setReadPermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page, de.uplanet.jdbc.JdbcConnection p_conn, List<String> p_principals) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
setWritePermission
public void setWritePermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page, de.uplanet.jdbc.JdbcConnection p_conn, List<String> p_principals) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
hasWritePermission
public boolean hasWritePermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page)
-
getPrincipalsWithReadPermission
public List<String> getPrincipalsWithReadPermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page, de.uplanet.jdbc.JdbcConnection p_conn) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
getPrincipalsWithWritePermission
public List<String> getPrincipalsWithWritePermission(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page, de.uplanet.jdbc.JdbcConnection p_conn) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
denyWriteByRelease
public boolean denyWriteByRelease(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid)
-
informUserByReleasedModification
public boolean informUserByReleasedModification(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid)
-
isReleaseCommissioner
public boolean isReleaseCommissioner(de.uplanet.jdbc.JdbcConnection p_conn, String p_strUserGuid, de.uplanet.lucy.server.auxiliaries.cms2.Cms2Category p_category) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
getPermissionName
public String getPermissionName(de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
getMenuPath
public String getMenuPath(String p_strMenuGuid, String p_strLang, String p_strSeparator, boolean p_bFullDepth)
-
getMenuPath
public String getMenuPath(String p_strMenuGuid, String p_strLang, String p_strSeparator)
-
getUserRelevantPublication
public de.uplanet.lucy.server.auxiliaries.cms2.Cms2Publication getUserRelevantPublication(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.auxiliaries.cms2.Cms2Page p_page) throws de.uplanet.lucy.server.businesslogic.BlException
- Throws:
de.uplanet.lucy.server.businesslogic.BlException
-
getCmsLink
public String getCmsLink(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strAppGuid, String p_strRecId, String p_strLinkText, String p_strStyle, boolean p_bTooltip, boolean p_bPopup)
-
isCms2
@Deprecated public static boolean isCms2(String p_strAppGuid)
Deprecated.
-
-