|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.portal.AbstractPortalManager
Field Summary | |
protected OfBizDelegator |
delegator
|
protected org.apache.log4j.Category |
log
|
protected com.atlassian.plugin.PluginManager |
pluginManager
|
Fields inherited from interface com.atlassian.jira.portal.PortalManager |
DASHBOARD_PAGE_NAME, SYSTEM_PORTLET_PACKAGE |
Constructor Summary | |
AbstractPortalManager(com.atlassian.plugin.PluginManager pluginManager,
OfBizDelegator delegator,
CollectionReorderer collectionReorderer)
|
Method Summary | |
Long |
createPortalPageConfiguration(User u,
String pagename,
String description)
Creates a new Portal Page Configuration in the database. |
Long |
createPortalPageConfiguration(User u,
String pagename,
String description,
Long copyPageId)
|
void |
decreasePageConfigurationSequence(User remoteUser,
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()
Get all the available portlets. |
PortalPageConfiguration |
getDefaultPortalPage()
Goes to the database and fetches the default dashboard configuration. |
PortalPageConfiguration |
getEditablePortalPageConfiguration(User user,
Long pageId)
|
PortalPageConfiguration |
getPortalPageConfiguration(User user,
Long pageId)
Get a portlet configuration for a particular user and page from the database. |
Map |
getPortalPageConfigurations(User user)
Get all the portal pages for a given user. |
Portlet |
getPortlet(String id)
Get a particular portlet, based on it's id. |
Collection |
getPortlets(User user)
This function returns all the portlets a user has permission to see. |
boolean |
hasAccessToPage(User u,
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 |
protected abstract boolean |
isAllowedPortalName(String name)
|
boolean |
isDefaultPortalPageName(String pageName)
|
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 remoteUser,
int position)
Puts the page at the given position to the end fo the user's page configuration set. |
void |
moveToStartPageConfigurationSequence(User remoteUser,
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.portal.PortalManager |
isMultiplePortalPagesEnabled |
Field Detail |
protected final org.apache.log4j.Category log
protected final com.atlassian.plugin.PluginManager pluginManager
protected final OfBizDelegator delegator
Constructor Detail |
public AbstractPortalManager(com.atlassian.plugin.PluginManager pluginManager, OfBizDelegator delegator, CollectionReorderer collectionReorderer)
Method Detail |
protected abstract boolean isAllowedPortalName(String name)
public Collection getAllPortlets()
getAllPortlets
in interface PortalManager
public Collection getPortlets(User user)
getPortlets
in interface PortalManager
user
- requesting portlets
public Long createPortalPageConfiguration(User u, String pagename, String description) throws PortletConfigurationException
createPortalPageConfiguration
in interface PortalManager
u
- pagename
-
PortletConfigurationException
public Long createPortalPageConfiguration(User u, String pagename, String description, Long copyPageId) throws PortletConfigurationException
createPortalPageConfiguration
in interface PortalManager
PortletConfigurationException
public PortalPageConfiguration getPortalPageConfiguration(User user, Long pageId) throws PortletConfigurationException
PortalManager
getPortalPageConfiguration
in interface PortalManager
user
- the user.pageId
- id of portal page to remove.
PortletConfigurationException
public PortalPageConfiguration getEditablePortalPageConfiguration(User user, Long pageId) throws PortletConfigurationException
getEditablePortalPageConfiguration
in interface PortalManager
PortletConfigurationException
public void resetDefault(String pagename)
resetDefault
in interface PortalManager
pagename
- e.g. dashboard.public Map getPortalPageConfigurations(User user) throws PortletConfigurationException
PortalManager
getPortalPageConfigurations
in interface PortalManager
PortletConfigurationException
public void movePortlets(Long[] selectedPortlets, PortalPageConfiguration sourcePage, PortalPageConfiguration destinationPage) throws PortletConfigurationException, org.ofbiz.core.entity.GenericEntityException
PortalManager
movePortlets
in interface PortalManager
PortletConfigurationException
org.ofbiz.core.entity.GenericEntityException
public boolean isUsingDefaultPortalPageConfigurations(User remoteUser)
PortalManager
isUsingDefaultPortalPageConfigurations
in interface PortalManager
remoteUser
- the user.
public void increasePageConfigurationSequence(User remoteUser, int position) throws PortletConfigurationException
PortalManager
increasePageConfigurationSequence
in interface PortalManager
remoteUser
- position
- the current position of the page to resequence.
PortletConfigurationException
public void decreasePageConfigurationSequence(User remoteUser, int position) throws PortletConfigurationException
PortalManager
decreasePageConfigurationSequence
in interface PortalManager
remoteUser
- the user.position
- the current position of the page to resequence.
PortletConfigurationException
public void moveToStartPageConfigurationSequence(User remoteUser, int position) throws PortletConfigurationException
PortalManager
moveToStartPageConfigurationSequence
in interface PortalManager
remoteUser
- the user.position
- the current position of the page to resequence.
PortletConfigurationException
public void moveToEndPageConfigurationSequence(User remoteUser, int position) throws PortletConfigurationException
PortalManager
moveToEndPageConfigurationSequence
in interface PortalManager
remoteUser
- position
- the current position of the page to resequence.
PortletConfigurationException
public PortalPageConfiguration getDefaultPortalPage() throws PortletConfigurationException
getDefaultPortalPage
in interface PortalManager
PortletConfigurationException
public void deletePortalPageConfiguration(User u, Long pageId) throws PortletConfigurationException
PortalManager
deletePortalPageConfiguration
in interface PortalManager
u
- the user.pageId
- id of portal page to remove.
PortletConfigurationException
public Portlet getPortlet(String id)
getPortlet
in interface PortalManager
public boolean isDefaultPortalPageName(String pageName)
isDefaultPortalPageName
in interface PortalManager
public boolean hasAccessToPage(User u, Long selectPageId)
PortalManager
hasAccessToPage
in interface PortalManager
u
- the user.selectPageId
- the id of the page.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |