public abstract class PortletHome extends Object implements PortletHomeInterface
| Constructor and Description |
|---|
PortletHome() |
| Modifier and Type | Method and Description |
|---|---|
Portlet |
create(Portlet portlet)
Creates a new portlet in the database
|
static Portlet |
findByPrimaryKey(int nKey)
Returns the Portlet whose primary key is specified in parameter
|
static List<Portlet> |
findByType(String strIdPortletType)
Returns a collection of portlets according to the selected type
|
static Collection<Portlet> |
getAliasList(int nPortletId)
Returns the collection of the StyleSheet objects associated to the Style
|
static Portlet |
getLastModifiedPortlet()
Get the last modified portlet
|
static Collection<PortletImpl> |
getPortletListByStyle(int nStyleId)
Returns the collection of the StyleSheet objects associated to the Style
|
static Collection<Portlet> |
getPortletsByRoleKey(String strRole)
Gets a collection of portlets associated to a given role
|
static Collection<PortletImpl> |
getPortletsListbyName(String strPortletName)
Returns the list of portlets for the search on publishing
|
static PortletType |
getPortletType(String strPortletTypeId)
Returns the instance of the PortletType whose identifier is specified in parameter
|
static ReferenceList |
getStylesList(String strIdPortletType)
Returns all the styles corresponding to a portlet typeun type de portlet
|
static List<Integer> |
getUsedOrdersForColumns(int pageId,
int columnId)
Get list of used orders for a column
|
static boolean |
hasAlias(int nIdPortlet)
Indicates if the portlet has alias
|
static void |
invalidate(int nIdPortlet)
Invalidate a portlet whose identifier is specified in paramaeter
|
static void |
invalidate(Portlet portlet)
Invalidate the portlet which is specified in parameter Invalidates the alias portlets connected to this portlet too.
|
static void |
notifyListeners(PortletEvent event)
Notifies listeners
|
void |
remove(Portlet portlet)
Deletes the portlet in the database
|
void |
update(Portlet portlet)
Updates a portlet with the values of the specified portlet instance
|
static void |
updateStatus(Portlet portlet,
int nStatus)
Update the status of portlet
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDAO, getPortletTypeIdpublic static Portlet findByPrimaryKey(int nKey)
nKey - the portlet identifierpublic static List<Portlet> findByType(String strIdPortletType)
strIdPortletType - the portlet typepublic static Collection<PortletImpl> getPortletsListbyName(String strPortletName)
strPortletName - STh name of the portletpublic static ReferenceList getStylesList(String strIdPortletType)
strIdPortletType - the identifier of the portlet typepublic static Collection<Portlet> getPortletsByRoleKey(String strRole)
strRole - The rolepublic Portlet create(Portlet portlet)
portlet - An instance of the portlet to createpublic void remove(Portlet portlet)
portlet - the portlet to removepublic void update(Portlet portlet)
portlet - portlet to updatepublic static void invalidate(Portlet portlet)
portlet - the portlet instancepublic static void invalidate(int nIdPortlet)
nIdPortlet - the portlet identifierpublic static boolean hasAlias(int nIdPortlet)
nIdPortlet - the portlet identifierpublic static void updateStatus(Portlet portlet, int nStatus)
portlet - the portlet to removenStatus - The status to updatepublic static PortletType getPortletType(String strPortletTypeId)
strPortletTypeId - the identifier of the portlet typepublic static Collection<PortletImpl> getPortletListByStyle(int nStyleId)
nStyleId - identifier of the stylepublic static Collection<Portlet> getAliasList(int nPortletId)
nPortletId - identifier of the portletpublic static Portlet getLastModifiedPortlet()
public static void notifyListeners(PortletEvent event)
event - the eventCopyright © 2020 City of Paris. All rights reserved.