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) |
ControllerStatus |
duplicateJPortal(AbstractJPortal jportal,
WizardContext context,
boolean updateIds)
Duplicate a
JPortal |
JPortalMapping |
duplicateJPortalMapping(JPortalMapping jPortalMapping,
boolean updateids,
WizardContext context)
Duplicate a JPortalMapping, iterate through
JBlockMapping and duplicate them |
java.util.List<Portlet> |
getAllPortlets(AbstractJPortal jPortal,
JPortalMapping mapping) |
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)
JPropertiesListenerYou cannot alter the value received in parameters.
propertiesChange in interface JPropertiesListenerproperties - 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 AbstractJPortaljPortal - the AbstractJPortaljPortalMapping - the JPortalMappingmbr - the MemberControllerStatuspublic JPortalActionResult saveJPortalStructure(AbstractJPortal jPortal, java.lang.String jPortalMappingJSon, Member mbr)
JPortalMapping for given AbstractJPortaljPortal - the AbstractJPortaljPortalMappingJSon - JSon structure of Portalmbr - the MemberJPortalActionResultpublic java.util.List<JPortalStructure> getJPortalStructures(AbstractJPortal jportal, int firstResult, int maxResults)
JPortalStructure for the given AbstractJPortaljportal - firstResult - maxResults - JPortalStructure with the given parameterspublic JPortalStructure getJPortalStructure(AbstractJPortal jPortal, boolean isDraftStructure)
jPortal - the AbstractJPortalisDraftStructure - if true, will search for not published structureJPortalStructure for given AbstractJPortalpublic JPortalStructure getJPortalStructure(java.lang.String structureId)
JPortalStructurestructureId - 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 AbstractJPortaljPortalName - 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 java.util.List<Portlet> getAllPortlets(AbstractJPortal jPortal, JPortalMapping mapping)
public boolean isCompatibleType(Portlet portlet)
public ControllerStatus duplicateJPortal(AbstractJPortal jportal, WizardContext context, boolean updateIds)
JPortaljportal - the JPortal to duplicatecontext - Wizardcontext from the duplicate() method on AbstractJPortalupdateIds - if true, will only update the portlet ids from the jportalMapping and update store structure, if false, will duplicate the
portletControllerStatuspublic JPortalMapping duplicateJPortalMapping(JPortalMapping jPortalMapping, boolean updateids, WizardContext context)
JBlockMapping and duplicate themjPortalMapping - JPortalMapping to be duplicatedupdateids - if true, will only update the portlet ids from the jportalMapping, if false, will duplicate the portletcontext - WizardContextJPortalMappingpublic java.util.List<JPortalTemplate> getJPortalTemplateList()
public JPortalTemplate getJPortalTemplate(java.lang.String templateName)
public java.util.Set<PortalInterface> getPortletPortalSet(Portlet portlet, Member mbr)
portlet - the Portletmbr - the Member to check read rightsPortalInterfaceCopyright © 2001-2019 Jalios SA. All Rights Reserved.