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)
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 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 JPortaljportal - JPortal to duplicatetitle - New title of the JPortaldescription - New Description of the JPortalworkspace - Workspace of the duplicate JPortalduplicateMessages - StringBuffer containing messages generated during the duplicationJPortalpublic 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 duplicationJPortalMappingpublic 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-2018 Jalios SA. All Rights Reserved.