Interface IPortletDAO
-
- All Known Implementing Classes:
PortletDAO
public interface IPortletDAOIPortletDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nPortletId)Delete a record from the table and its aliasjava.util.List<java.lang.Integer>getUsedOrdersForColumns(int pageId, int columnId)Get list of used orders for a columnbooleanhasAlias(int nPortletId)Indicates if the portlet has alias in the database or not.voidinsert(Portlet portlet)Insert a new record in the table.Portletload(int nPortletId)Load the data of a portlet from the databasePortletloadLastModifiedPortlet()Load the last modified portletjava.util.Collection<Portlet>selectAliasesForPortlet(int nPortletId)Returns the list of the alias portlets associated to the original portletjava.util.Collection<PortletImpl>selectPortletListByStyle(int nStyleId)Returns the list of the portlets associated to the stylejava.util.Collection<Portlet>selectPortletsByRole(java.lang.String strRole)Gets a collection of portlets associated to a given rolejava.util.List<Portlet>selectPortletsByType(java.lang.String strPortletTypeId)Returns a list of portlets according to the selected typejava.util.Collection<PortletImpl>selectPortletsListbyName(java.lang.String strPortletName)Returns the list of portlets in a distinct namePortletTypeselectPortletType(java.lang.String strPortletTypeId)Returns the instance of the PortletType whose identifier is specified in parameterReferenceListselectStylesList(java.lang.String strPortletTypeId)Returns all the styles corresponding to a portlet typeStyleSheetselectXslFile(int nPortletId, int nIdMode)Returns the stylesheet of the portlet according to the modevoidstore(Portlet portlet)Update the record in the tablevoidupdatePosition(Portlet portlet, int nColumn, int nOrder)Update the portlet status : 0 for activated - 1 for suspendedvoidupdateStatus(Portlet portlet, int nStatus)Update the portlet status : 0 for activated - 1 for suspended
-
-
-
Method Detail
-
insert
void insert(Portlet portlet)
Insert a new record in the table. NB : The portlet identifier will already been obtained by the portlet girl- Parameters:
portlet- the portlet to insert in the database
-
delete
void delete(int nPortletId)
Delete a record from the table and its alias- Parameters:
nPortletId- the identifier of the portlet to be deleted
-
load
Portlet load(int nPortletId)
Load the data of a portlet from the database- Parameters:
nPortletId- the portlet identifier- Returns:
- the object Portlet initialized with the data of the database
-
store
void store(Portlet portlet)
Update the record in the table- Parameters:
portlet- the portlet reference
-
updateStatus
void updateStatus(Portlet portlet, int nStatus)
Update the portlet status : 0 for activated - 1 for suspended- Parameters:
portlet- the portlet to upadte in the databasenStatus- the status to update
-
updatePosition
void updatePosition(Portlet portlet, int nColumn, int nOrder)
Update the portlet status : 0 for activated - 1 for suspended- Parameters:
portlet- the portlet to upadte in the databasenColumn- the column to updatenOrder- the order to update
-
selectXslFile
StyleSheet selectXslFile(int nPortletId, int nIdMode)
Returns the stylesheet of the portlet according to the mode- Parameters:
nPortletId- the identifier of the portletnIdMode- the selected mode- Returns:
- the stylesheet
-
selectPortletsListbyName
java.util.Collection<PortletImpl> selectPortletsListbyName(java.lang.String strPortletName)
Returns the list of portlets in a distinct name- Parameters:
strPortletName- the name of portlet- Returns:
- the list in form of Collection
-
selectPortletsByType
java.util.List<Portlet> selectPortletsByType(java.lang.String strPortletTypeId)
Returns a list of portlets according to the selected type- Parameters:
strPortletTypeId- the portlet type- Returns:
- the portlets in form of Collection
-
selectStylesList
ReferenceList selectStylesList(java.lang.String strPortletTypeId)
Returns all the styles corresponding to a portlet type- Parameters:
strPortletTypeId- the identifier of the portlet type- Returns:
- the list of styles in form of ReferenceList
-
hasAlias
boolean hasAlias(int nPortletId)
Indicates if the portlet has alias in the database or not.- Parameters:
nPortletId- the identifier of the portlet- Returns:
- true if the portlet has some alias, false if not.
-
selectPortletType
PortletType selectPortletType(java.lang.String strPortletTypeId)
Returns the instance of the PortletType whose identifier is specified in parameter- Parameters:
strPortletTypeId- the identifier of the portlet type- Returns:
- the instance of the portlet type
-
selectPortletListByStyle
java.util.Collection<PortletImpl> selectPortletListByStyle(int nStyleId)
Returns the list of the portlets associated to the style- Parameters:
nStyleId- the identifier of the style- Returns:
- the list of the portlets in form of a Collection of Portlets objects
-
selectAliasesForPortlet
java.util.Collection<Portlet> selectAliasesForPortlet(int nPortletId)
Returns the list of the alias portlets associated to the original portlet- Parameters:
nPortletId- the original portlet id- Returns:
- the list of alais portlets.
-
selectPortletsByRole
java.util.Collection<Portlet> selectPortletsByRole(java.lang.String strRole)
Gets a collection of portlets associated to a given role- Parameters:
strRole- The role- Returns:
- The collection
-
loadLastModifiedPortlet
Portlet loadLastModifiedPortlet()
Load the last modified portlet- Returns:
- the last modified
Portlet
-
getUsedOrdersForColumns
java.util.List<java.lang.Integer> getUsedOrdersForColumns(int pageId, int columnId)Get list of used orders for a column- Parameters:
pageId- the page idcolumnId- the column id- Returns:
- list of orders used for this column
-
-