public class JPortalManager extends java.lang.Object implements JPropertiesListener
Modifier and Type | Class and Description |
---|---|
static class |
JPortalManager.JPortalComponentIndexComparator |
static class |
JPortalManager.JPortalComponentNameComparator |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JPORTAL_MAPPING_EXTRA_INFO_KEY |
static JPortalActionResult |
OK_ACTION |
REVISION
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateJPortalJavascriptAndCss(Member member) |
AbstractJPortal |
duplicateJPortal(Member member,
AbstractJPortal jportal,
java.lang.String title,
java.lang.String description,
Workspace workspace,
java.lang.StringBuffer duplicateMessages)
Duplicate a JPortal
|
JPortalMapping |
duplicateJPortalMapping(Member author,
JPortalMapping jPortalMapping,
Workspace workspace,
java.lang.StringBuffer duplicateMessages)
Duplicate a JPortalMapping, iterate through
JBlock and duplicate them |
static JPortalManager |
getInstance() |
java.util.Set<JPortalComponent> |
getJPortalComponentSet(java.lang.String userLang) |
JPortalMapping |
getJPortalMapping(AbstractJPortal jPortal,
boolean isDraftStructure) |
JPortalMapping |
getJPortalMapping(JPortalStructure structure) |
JPortalStructure |
getJPortalStructure(AbstractJPortal jPortal,
boolean isDraftStructure) |
JPortalStructure |
getJPortalStructure(java.lang.String structureId)
Retrieve
JPortalStructure |
java.util.List<JPortalStructure> |
getJPortalStructures(AbstractJPortal jportal,
int firstResult,
int maxResults)
Retrieve a list of
JPortalStructure for the given AbstractJPortal |
JPortalTemplate |
getJPortalTemplate(java.lang.String templateName) |
java.util.List<JPortalTemplate> |
getJPortalTemplateList() |
java.util.Set<PortalInterface> |
getPortletPortalSet(Portlet portlet,
Member mbr)
Returns the set of PortalInterface where the given Portlet is used
|
java.util.Map<java.lang.String,java.util.List<JPortalComponent>> |
getPortletTypeMap() |
boolean |
isCompatibleType(Portlet portlet) |
void |
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk.
|
ControllerStatus |
publishJPortal(AbstractJPortal jPortal,
java.lang.String jPortalName,
Member mbr,
java.util.Map<java.lang.String,java.lang.Object> context,
int pstatus,
Category[] categories,
java.util.Date pdate)
Publish the JPortal
|
void |
resetACL() |
JPortalMapping |
revertJPortalStructure(AbstractJPortal jPortal,
JPortalStructure structure,
Member mbr) |
ControllerStatus |
saveJPortalStructure(AbstractJPortal jPortal,
JPortalMapping jPortalMapping,
Member mbr)
Saves the given
JPortalMapping for given AbstractJPortal |
JPortalActionResult |
saveJPortalStructure(AbstractJPortal jPortal,
java.lang.String jPortalMappingJSon,
Member mbr)
Saves the given
JPortalMapping for given AbstractJPortal |
public static final java.lang.String JPORTAL_MAPPING_EXTRA_INFO_KEY
public static final JPortalActionResult OK_ACTION
public static JPortalManager getInstance()
public void propertiesChange(JProperties properties)
JPropertiesListener
You cannot alter the value received in parameters.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been modified (may not contain all JCMS properties)public void resetACL()
public boolean canUpdateJPortalJavascriptAndCss(Member member)
public java.util.Map<java.lang.String,java.util.List<JPortalComponent>> getPortletTypeMap()
public java.util.Set<JPortalComponent> getJPortalComponentSet(java.lang.String userLang)
public JPortalMapping revertJPortalStructure(AbstractJPortal jPortal, JPortalStructure structure, Member mbr)
public JPortalMapping getJPortalMapping(AbstractJPortal jPortal, boolean isDraftStructure)
public JPortalMapping getJPortalMapping(JPortalStructure structure)
public ControllerStatus saveJPortalStructure(AbstractJPortal jPortal, JPortalMapping jPortalMapping, Member mbr)
JPortalMapping
for given AbstractJPortal
jPortal
- the AbstractJPortal
jPortalMapping
- the JPortalMapping
mbr
- the Member
ControllerStatus
public JPortalActionResult saveJPortalStructure(AbstractJPortal jPortal, java.lang.String jPortalMappingJSon, Member mbr)
JPortalMapping
for given AbstractJPortal
jPortal
- the AbstractJPortal
jPortalMappingJSon
- JSon structure of Portalmbr
- the Member
JPortalActionResult
public java.util.List<JPortalStructure> getJPortalStructures(AbstractJPortal jportal, int firstResult, int maxResults)
JPortalStructure
for the given AbstractJPortal
jportal
- firstResult
- maxResults
- JPortalStructure
with the given parameterspublic JPortalStructure getJPortalStructure(AbstractJPortal jPortal, boolean isDraftStructure)
jPortal
- the AbstractJPortal
isDraftStructure
- if true, will search for not published structureJPortalStructure
for given AbstractJPortal
public JPortalStructure getJPortalStructure(java.lang.String structureId)
JPortalStructure
structureId
- JPortalStructure
with the given IDpublic ControllerStatus publishJPortal(AbstractJPortal jPortal, java.lang.String jPortalName, Member mbr, java.util.Map<java.lang.String,java.lang.Object> context, int pstatus, Category[] categories, java.util.Date pdate)
jPortal
- the AbstractJPortal
jPortalName
- the JPortal namembr
- the Member
performing the actioncontext
- for update contextpstatus
- the workflow statuscategories
- the Category
array of this JPortalpdate
- the date of publicationControllerStatus
based on result of the performed actionpublic boolean isCompatibleType(Portlet portlet)
public AbstractJPortal duplicateJPortal(Member member, AbstractJPortal jportal, java.lang.String title, java.lang.String description, Workspace workspace, java.lang.StringBuffer duplicateMessages)
member
- The Member
who's duplicating the JPortal
jportal
- JPortal
to duplicatetitle
- New title of the JPortal
description
- New Description of the JPortal
workspace
- Workspace
of the duplicate JPortal
duplicateMessages
- StringBuffer
containing messages generated during the duplicationJPortal
public JPortalMapping duplicateJPortalMapping(Member author, JPortalMapping jPortalMapping, Workspace workspace, java.lang.StringBuffer duplicateMessages)
JBlock
and duplicate themauthor
- Member
duplicating the JPortaljPortalMapping
- JPortalMapping
to be duplicatedworkspace
- Workspace
where the jportal is duplicatedduplicateMessages
- StringBuffer
containing messages generated during the duplicationJPortalMapping
public java.util.List<JPortalTemplate> getJPortalTemplateList()
public JPortalTemplate getJPortalTemplate(java.lang.String templateName)
public java.util.Set<PortalInterface> getPortletPortalSet(Portlet portlet, Member mbr)
portlet
- the Portlet
mbr
- the Member
to check read rightsPortalInterface
Copyright © 2001-2018 Jalios SA. All Rights Reserved.