public interface IPortletDAO
Modifier and Type | Method and Description |
---|---|
void |
delete(int nPortletId)
Delete a record from the table and its alias
|
List<Integer> |
getUsedOrdersForColumns(int pageId,
int columnId)
Get list of used orders for a column
|
boolean |
hasAlias(int nPortletId)
Indicates if the portlet has alias in the database or not.
|
void |
insert(Portlet portlet)
Insert a new record in the table.
|
Portlet |
load(int nPortletId)
Load the data of a portlet from the database
|
Portlet |
loadLastModifiedPortlet()
Load the last modified portlet
|
Collection<Portlet> |
selectAliasesForPortlet(int nPortletId)
Returns the list of the alias portlets associated to the original portlet
|
Collection<PortletImpl> |
selectPortletListByStyle(int nStyleId)
Returns the list of the portlets associated to the style
|
Collection<Portlet> |
selectPortletsByRole(String strRole)
Gets a collection of portlets associated to a given role
|
List<Portlet> |
selectPortletsByType(String strPortletTypeId)
Returns a list of portlets according to the selected type
|
Collection<PortletImpl> |
selectPortletsListbyName(String strPortletName)
Returns the list of portlets in a distinct name
|
PortletType |
selectPortletType(String strPortletTypeId)
Returns the instance of the PortletType whose identifier is specified in parameter
|
ReferenceList |
selectStylesList(String strPortletTypeId)
Returns all the styles corresponding to a portlet type
|
StyleSheet |
selectXslFile(int nPortletId,
int nIdMode)
Returns the stylesheet of the portlet according to the mode
|
void |
store(Portlet portlet)
Update the record in the table
|
void |
updateStatus(Portlet portlet,
int nStatus)
Update the portlet status : 0 for activated - 1 for suspended
|
void insert(Portlet portlet)
portlet
- the portlet to insert in the databasevoid delete(int nPortletId)
nPortletId
- the identifier of the portlet to be deletedPortlet load(int nPortletId)
nPortletId
- the portlet identifiervoid store(Portlet portlet)
portlet
- the portlet referencevoid updateStatus(Portlet portlet, int nStatus)
portlet
- the portlet to upadte in the databasenStatus
- the status to updateStyleSheet selectXslFile(int nPortletId, int nIdMode)
nPortletId
- the identifier of the portletnIdMode
- the selected modeCollection<PortletImpl> selectPortletsListbyName(String strPortletName)
strPortletName
- the name of portletList<Portlet> selectPortletsByType(String strPortletTypeId)
strPortletTypeId
- the portlet typeReferenceList selectStylesList(String strPortletTypeId)
strPortletTypeId
- the identifier of the portlet typeboolean hasAlias(int nPortletId)
nPortletId
- the identifier of the portletPortletType selectPortletType(String strPortletTypeId)
strPortletTypeId
- the identifier of the portlet typeCollection<PortletImpl> selectPortletListByStyle(int nStyleId)
nStyleId
- the identifier of the styleCollection<Portlet> selectAliasesForPortlet(int nPortletId)
nPortletId
- the original portlet idCollection<Portlet> selectPortletsByRole(String strRole)
strRole
- The rolePortlet loadLastModifiedPortlet()
Portlet
Copyright © 2020 City of Paris. All rights reserved.