|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpase.server.DashboardServiceImpl
public class DashboardServiceImpl
The main purpose of this class is to implement DashboardService.
| Constructor Summary | |
|---|---|
DashboardServiceImpl()
|
|
| Method Summary | |
|---|---|
boolean |
addPortletIDByDashboardId(java.lang.String dboardId,
java.lang.String portletID)
|
boolean |
deleteDashboard(java.lang.String boardId)
Deletes a Dashboard and its style list. |
boolean |
deleteDashboardStyle(java.lang.String styleId)
Deletes a DashboardStyle from table. |
boolean |
deletePortalIDByPortletID(java.lang.String portletID)
|
com.flowring.dashboard.Dashboard |
getDashboard(java.lang.String boardId)
Returns a Dashboard object by a given Dashboard id. |
java.util.HashMap |
getDashboardByPortletID(java.lang.String PortletID)
Get the DashboardID to show Dashboard in Portlet. |
java.util.List |
getDashboardGroupList()
Gets a list of group from Dashboard without duplicated. |
java.util.List |
getDashboardGroupList(java.lang.String proId)
Gets a list of group from Dashboard by the given process id. |
java.util.List |
getDashboardGroupListOfUser(java.lang.String memId,
boolean isMainRoleOnly)
Gets a list of group of user's from Dashboard without duplicated. |
java.lang.String |
getDashboardId(java.lang.String prjId,
java.lang.String proId,
java.lang.String grpId)
Gets a Dashboard id by the given value. |
java.util.List |
getDashboardList()
Gets a dashboard list. |
java.util.List |
getDashboardListByConditionType(java.lang.String columnName,
int relation,
java.lang.String columnValue)
Gets a dashboard list by condition type. |
java.util.List |
getDashboardListByGroup(java.lang.String grpId)
Gets a dashboard list by the given group id, which contains each id's name. |
java.util.List |
getDashboardProcessList(java.lang.String prjId)
Gets a list of process from Dashboard by the given project id. |
java.util.List |
getDashboardProjectList()
Gets a list of project form Dashboard without duplicate. |
java.util.List |
getDashboardStyleIdList(java.lang.String boardId)
Gets DashboardStyle id list of a dashboard by a given value. |
java.util.List |
getDashboardStyleList(java.lang.String boardId)
Gets a DashboardStyle list by a given value. |
boolean |
insertDashboard(com.flowring.dashboard.Dashboard dboard)
Adds a Dashboard only. |
boolean |
insertDashboardStyle(com.flowring.dashboard.DashboardStyle dstyle)
Adds a DashboardStyle into table. |
boolean |
isDashboardExist(java.lang.String prjId,
java.lang.String proId,
java.lang.String grpId)
Test dashboard exist or not by the given value. |
boolean |
isDashboardStyleSiblingOrderExist(java.lang.String boardId,
int siblingOrder)
Tests whether the dashboard style's SiblingOrder exist or not. |
com.flowring.dashboard.Dashboard |
newDashboard()
Create a new Dashboard with a new system id which get from
System. |
com.flowring.dashboard.DashboardStyle |
newDashboardStyle(java.lang.String boardId)
Create a new DashboardStyle with a new system id which get
from System. |
void |
setDashboardDao(com.flowring.dao.DashboardDao dashboardDao)
Sets a dashboardDao. |
boolean |
updateDashboard(com.flowring.dashboard.Dashboard dboard)
Updates a Dashboard only. |
boolean |
updateDashboardStyle(com.flowring.dashboard.DashboardStyle dstyle)
Updates a DashboardStyle from table. |
boolean |
updateDashOfPortletByPortletId(java.lang.String dboardId,
java.lang.String portletId)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DashboardServiceImpl()
| Method Detail |
|---|
public java.util.List getDashboardList()
DashboardService
getDashboardList in interface DashboardServiceDashboard object.- See Also:
Dashboard
public java.util.List getDashboardListByConditionType(java.lang.String columnName,
int relation,
java.lang.String columnValue)
DashboardServiceGets a dashboard list by condition type. For a example:
String columnName = "GID"; //MUST be a AF_Dashboard column name int relation = "LIKE"; String columnValue = "value"; List dboards = wfci.getDashboardListByConditionType(columnName, relation, columnValue);
getDashboardListByConditionType in interface DashboardServiceDashboard object.public java.util.List getDashboardListByGroup(java.lang.String grpId)
DashboardService
getDashboardListByGroup in interface DashboardServicegrpId - a group id, see PASEGroup.
Dashboard object.- See Also:
PASEGroup,
Dashboardpublic com.flowring.dashboard.Dashboard newDashboard()
DashboardServiceDashboard with a new system id which get from
System.
newDashboard in interface DashboardServiceDashboard object.public com.flowring.dashboard.Dashboard getDashboard(java.lang.String boardId)
DashboardServiceDashboard object by a given Dashboard id.
getDashboard in interface DashboardServiceboardId - a Dashboard id.
Dashboard object.public java.util.List getDashboardProjectList()
DashboardService
getDashboardProjectList in interface DashboardServiceProject object.- See Also:
Projectpublic java.util.List getDashboardProcessList(java.lang.String prjId)
DashboardService
getDashboardProcessList in interface DashboardServiceprjId - a project id.
DBProcess object, and each process is a root process.- See Also:
DBProcesspublic java.util.List getDashboardGroupList()
DashboardService
getDashboardGroupList in interface DashboardServicePASEGroup object.- See Also:
PASEGroup
public java.util.List getDashboardGroupListOfUser(java.lang.String memId,
boolean isMainRoleOnly)
DashboardService
getDashboardGroupListOfUser in interface DashboardServicememId - a member id.isMainRoleOnly - if true, only the MainRole will be
retrived; if false ,all role will be retrived.
PASEGroup object.- See Also:
PASEGrouppublic java.util.List getDashboardGroupList(java.lang.String proId)
DashboardService
getDashboardGroupList in interface DashboardServiceproId - a process id.
PASEGroup object.- See Also:
PASEGrouppublic boolean insertDashboard(com.flowring.dashboard.Dashboard dboard)
DashboardServiceAdds a Dashboard only.
NOTE: It will not insert its style list, using insertDashboardStyle(DashboardStyle) to insert its style.
insertDashboard in interface DashboardServicedboard - a Dashboard object.
true if insert success; false
otherwise.Dashboardpublic boolean updateDashboard(com.flowring.dashboard.Dashboard dboard)
DashboardServiceUpdates a Dashboard only.
NOTE: It will not update its style list, using updateDashboardStyle(DashboardStyle) to update its style.
updateDashboard in interface DashboardServicedboard - a Dashboard object.
true if update success; false
otherwise.Dashboardpublic boolean deleteDashboard(java.lang.String boardId)
DashboardServiceDeletes a Dashboard and its style list.
NOTE: It will delete its style list.
deleteDashboard in interface DashboardServiceboardId - a dashboard id.
true if delete success; false
otherwise.
public java.lang.String getDashboardId(java.lang.String prjId,
java.lang.String proId,
java.lang.String grpId)
DashboardService
getDashboardId in interface DashboardServiceprjId - a project id.proId - a process id.grpId - a group id.
null if not found.Project,
DBProcess,
PASEGroup
public boolean isDashboardExist(java.lang.String prjId,
java.lang.String proId,
java.lang.String grpId)
DashboardService
isDashboardExist in interface DashboardServiceprjId - a project id.proId - a process id.grpId - a group id.
true if dashboard is exist; false
otherwise.Project,
DBProcess,
PASEGrouppublic java.util.List getDashboardStyleList(java.lang.String boardId)
DashboardService
getDashboardStyleList in interface DashboardServiceboardId - a Dashboard id.
DashboardStyle object.DashboardStylepublic com.flowring.dashboard.DashboardStyle newDashboardStyle(java.lang.String boardId)
DashboardServiceDashboardStyle with a new system id which get
from System.
newDashboardStyle in interface DashboardServiceboardId - a Dashboard id.
DashboardsStyle object.public java.util.List getDashboardStyleIdList(java.lang.String boardId)
DashboardService
getDashboardStyleIdList in interface DashboardServiceboardId - a dashboard id.
public boolean insertDashboardStyle(com.flowring.dashboard.DashboardStyle dstyle)
DashboardService
insertDashboardStyle in interface DashboardServicedstyle - a DashboardStyle object.
true if insert success; false
otherwise.DashboardStylepublic boolean updateDashboardStyle(com.flowring.dashboard.DashboardStyle dstyle)
DashboardService
updateDashboardStyle in interface DashboardServicedstyle - a DashboardStyle object.
true if update success; false
otherwise.DashboardStylepublic boolean deleteDashboardStyle(java.lang.String styleId)
DashboardService
deleteDashboardStyle in interface DashboardServicestyleId - a DashboardStyle id.
true if delete success; false
otherwise.
public boolean isDashboardStyleSiblingOrderExist(java.lang.String boardId,
int siblingOrder)
DashboardService
isDashboardStyleSiblingOrderExist in interface DashboardServiceboardId - a dashboard id.siblingOrder - a dashboard style's sibling order for view.
true if exist; false otherwise.public void setDashboardDao(com.flowring.dao.DashboardDao dashboardDao)
com.flowring.dao.DashboardDaoAware
setDashboardDao in interface com.flowring.dao.DashboardDaoAwaredashboardDao - a dashboard dao.DashboardDaopublic java.util.HashMap getDashboardByPortletID(java.lang.String PortletID)
DashboardService
getDashboardByPortletID in interface DashboardService
public boolean addPortletIDByDashboardId(java.lang.String dboardId,
java.lang.String portletID)
addPortletIDByDashboardId in interface DashboardService
public boolean updateDashOfPortletByPortletId(java.lang.String dboardId,
java.lang.String portletId)
updateDashOfPortletByPortletId in interface DashboardServicepublic boolean deletePortalIDByPortletID(java.lang.String portletID)
deletePortalIDByPortletID in interface DashboardService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||