|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPortletDAO
IPortletDAO Interface
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 |
int |
newPrimaryKey()
Returns a new primary key which will be used to add a new portlet |
java.util.Collection<PortletImpl> |
selectPortletListByStyle(int nStyleId)
Returns the list of the portlets associated to the style |
java.util.List<Portlet> |
selectPortletsByType(java.lang.String strPortletTypeId)
Returns a list of portlets according to the selected type |
java.util.Collection<PortletImpl> |
selectPortletsListbyName(java.lang.String strPortletName)
Returns the list of portlets in a distinct name |
PortletType |
selectPortletType(java.lang.String strPortletTypeId)
Returns the instance of the PortletType whose identifier is specified in parameter |
ReferenceList |
selectStylesList(java.lang.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 |
Method Detail |
---|
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 identifier
void store(Portlet portlet)
portlet
- the portlet referenceint newPrimaryKey()
void 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 mode
java.util.Collection<PortletImpl> selectPortletsListbyName(java.lang.String strPortletName)
strPortletName
- the name of portlet
java.util.List<Portlet> selectPortletsByType(java.lang.String strPortletTypeId)
strPortletTypeId
- the portlet type
ReferenceList selectStylesList(java.lang.String strPortletTypeId)
strPortletTypeId
- the identifier of the portlet type
boolean hasAlias(int nPortletId)
nPortletId
- the identifier of the portlet
PortletType selectPortletType(java.lang.String strPortletTypeId)
strPortletTypeId
- the identifier of the portlet type
java.util.Collection<PortletImpl> selectPortletListByStyle(int nStyleId)
nStyleId
- the identifier of the style
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |