|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.business.portlet.PortletDAO
public final class PortletDAO
This class provides Data Access methods for Portlet objects
| Constructor Summary | |
|---|---|
PortletDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nPortletId)
Delete a record from the table and its alias |
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 |
int |
newPrimaryKey()
Returns a new primary key which will be used to add a new 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortletDAO()
| Method Detail |
|---|
public void insert(Portlet portlet)
insert in interface IPortletDAOportlet - the portlet to insert in the databasepublic void delete(int nPortletId)
delete in interface IPortletDAOnPortletId - the identifier of the portlet to be deletedpublic Portlet load(int nPortletId)
load in interface IPortletDAOnPortletId - the portlet identifier
public void store(Portlet portlet)
store in interface IPortletDAOportlet - the portlet referencepublic int newPrimaryKey()
newPrimaryKey in interface IPortletDAO
public void updateStatus(Portlet portlet,
int nStatus)
updateStatus in interface IPortletDAOportlet - the portlet to upadte in the databasenStatus - the status to update
public StyleSheet selectXslFile(int nPortletId,
int nIdMode)
selectXslFile in interface IPortletDAOnPortletId - the identifier of the portletnIdMode - the selected mode
public Collection<PortletImpl> selectPortletsListbyName(String strPortletName)
selectPortletsListbyName in interface IPortletDAOstrPortletName - the name of portlet
public Collection<Portlet> selectAliasesForPortlet(int nPortletId)
selectAliasesForPortlet in interface IPortletDAOnPortletId - the original portlet id
public List<Portlet> selectPortletsByType(String strPortletTypeId)
selectPortletsByType in interface IPortletDAOstrPortletTypeId - the portlet type
public ReferenceList selectStylesList(String strPortletTypeId)
selectStylesList in interface IPortletDAOstrPortletTypeId - the identifier of the portlet type
public boolean hasAlias(int nPortletId)
hasAlias in interface IPortletDAOnPortletId - the identifier of the portlet
public PortletType selectPortletType(String strPortletTypeId)
selectPortletType in interface IPortletDAOstrPortletTypeId - the identifier of the portlet type
public Collection<PortletImpl> selectPortletListByStyle(int nStyleId)
selectPortletListByStyle in interface IPortletDAOnStyleId - the identifier of the style
public Collection<Portlet> selectPortletsByRole(String strRole)
selectPortletsByRole in interface IPortletDAOstrRole - The role
public Portlet loadLastModifiedPortlet()
loadLastModifiedPortlet in interface IPortletDAOPortlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||