|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manager for Portal configuration. A user's dashboard is a portal configuration and may have a configuration
Field Summary | |
static String |
DASHBOARD_PAGE_NAME
|
static String |
SYSTEM_PORTLET_PACKAGE
|
Method Summary | |
Long |
createPortalPageConfiguration(User u,
String pagename,
String description)
|
Long |
createPortalPageConfiguration(User u,
String pagename,
String description,
Long copyPageId)
|
void |
decreasePageConfigurationSequence(User user,
int position)
Decreases the position of the page configuration in the user's page configuration set. |
void |
deletePortalPageConfiguration(User u,
Long pageId)
This function removes a portal page configuration for a user including all of its portlet configurations and their properties. |
Collection |
getAllPortlets()
|
PortalPageConfiguration |
getDefaultPortalPage()
Returns the default portal page configuration |
PortalPageConfiguration |
getEditablePortalPageConfiguration(User user,
Long pageId)
|
PortalPageConfiguration |
getPortalPageConfiguration(User u,
Long pageId)
Get a portlet configuration for a particular user and page from the database. |
Map |
getPortalPageConfigurations(User remoteUser)
Get all the portal pages for a given user. |
Portlet |
getPortlet(String id)
|
Collection |
getPortlets(User user)
This function returns all the portlets a user has permission to see. |
boolean |
hasAccessToPage(User user,
Long selectPageId)
Return true only if the given User has permission to see the page with id selectPageId. |
void |
increasePageConfigurationSequence(User remoteUser,
int position)
Increases the position of the page configuration in the user's page configuration set |
boolean |
isDefaultPortalPageName(String pageName)
|
boolean |
isMultiplePortalPagesEnabled()
|
boolean |
isUsingDefaultPortalPageConfigurations(User remoteUser)
Returns true only if the user has the default portal page configuration. |
void |
movePortlets(Long[] selectedPortlets,
PortalPageConfiguration sourcePage,
PortalPageConfiguration destinationPage)
Move portlets from one page to another |
void |
moveToEndPageConfigurationSequence(User user,
int position)
Puts the page at the given position to the end fo the user's page configuration set. |
void |
moveToStartPageConfigurationSequence(User user,
int position)
Puts the page at the given position to the start of the user's page configuration set. |
void |
resetDefault(String pagename)
This function reloads the default portal page configuration from the database. |
Field Detail |
public static final String SYSTEM_PORTLET_PACKAGE
public static final String DASHBOARD_PAGE_NAME
Method Detail |
public Portlet getPortlet(String id)
public Collection getAllPortlets()
public Long createPortalPageConfiguration(User u, String pagename, String description) throws PortletConfigurationException
PortletConfigurationException
public Long createPortalPageConfiguration(User u, String pagename, String description, Long copyPageId) throws PortletConfigurationException
PortletConfigurationException
public PortalPageConfiguration getPortalPageConfiguration(User u, Long pageId) throws PortletConfigurationException
u
- the user.pageId
- id of portal page to remove.
PortletConfigurationException
public PortalPageConfiguration getDefaultPortalPage() throws PortletConfigurationException
PortletConfigurationException
public void deletePortalPageConfiguration(User u, Long pageId) throws PortletConfigurationException
u
- the user.pageId
- id of portal page to remove.
PortletConfigurationException
public Collection getPortlets(User user)
user
- requesting portlets
public PortalPageConfiguration getEditablePortalPageConfiguration(User user, Long pageId) throws PortletConfigurationException
PortletConfigurationException
public void resetDefault(String pagename)
pagename
- e.g. dashboard.public Map getPortalPageConfigurations(User remoteUser) throws PortletConfigurationException
PortletConfigurationException
public void movePortlets(Long[] selectedPortlets, PortalPageConfiguration sourcePage, PortalPageConfiguration destinationPage) throws PortletConfigurationException, org.ofbiz.core.entity.GenericEntityException
PortletConfigurationException
org.ofbiz.core.entity.GenericEntityException
public boolean isUsingDefaultPortalPageConfigurations(User remoteUser)
remoteUser
- the user.
public boolean isMultiplePortalPagesEnabled()
public void increasePageConfigurationSequence(User remoteUser, int position) throws PortletConfigurationException
remoteUser
- position
- the current position of the page to resequence.
PortletConfigurationException
public void decreasePageConfigurationSequence(User user, int position) throws PortletConfigurationException
user
- the user.position
- the current position of the page to resequence.
PortletConfigurationException
public void moveToStartPageConfigurationSequence(User user, int position) throws PortletConfigurationException
user
- the user.position
- the current position of the page to resequence.
PortletConfigurationException
public void moveToEndPageConfigurationSequence(User user, int position) throws PortletConfigurationException
user
- position
- the current position of the page to resequence.
PortletConfigurationException
public boolean isDefaultPortalPageName(String pageName)
public boolean hasAccessToPage(User user, Long selectPageId)
user
- the user.selectPageId
- the id of the page.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |