java.lang.Object | |
↳ | com.atlassian.jira.bc.portal.DefaultPortalPageService |
The base class for PortalPageService implementations
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called to create and store the specified portalPage into the database.
| |||||||||||
Called to create and store the specified portalPage into the database.
| |||||||||||
Called to create and store the specified portalPage into the database by cloning its Portlet content from an existing PortalPage object.
| |||||||||||
Decreases the position of the page configuration in the user's page configuration set.
| |||||||||||
Delete all Portal Pages owned by a user.
| |||||||||||
Called to delete the PortalPage with the specified portalPageId.
| |||||||||||
Retrieve all
PortalPage 's a user has favourited. | |||||||||||
Get a user's non private
PortalPage 's. | |||||||||||
Retrieve all
PortalPage 's a user owns/has created. | |||||||||||
Retrieve a given
PortalPage by id. | |||||||||||
Get
PortalPage 's owned by a given user that have been favourited by at least one other user | |||||||||||
Returns all portlet configurations for a particular dashboard in colums and rows.
| |||||||||||
This returns the System Default PortalPage as defined by the JIRA Administrators
| |||||||||||
Increases the position of the page configuration in the user's page configuration set
| |||||||||||
Is the passed PortalPage a favourite of the passed User.
| |||||||||||
Puts the given page to the end of the user's page configuration set.
| |||||||||||
Puts the given page to the start of the user's page configuration set.
| |||||||||||
Save a specific
PortletConfiguration to a
database store. | |||||||||||
Search for the PortalPages that match the passed SearchParameters.
| |||||||||||
Updates the specified PortalPage in the database
| |||||||||||
Updates the specified PortalPage in the database , no permission checks are applied, but the user must be an administrator
| |||||||||||
This will validate that the dashboard page can be changed to the new owbner.
| |||||||||||
Called to validate that sequence of a PortalPage can be changed.
| |||||||||||
Called to validate that the PortalPage object is in a valid state for creation.
| |||||||||||
Called to validate that a new PortalPage can be created by cloning its Portlet content from an existing PortalPage object.
| |||||||||||
Called to validate that the specified portalPage with the portalPageId can be deleted.
| |||||||||||
Check if the user in the service context has permission to get the portal page with the id provided.
| |||||||||||
This will validate that the input parameters are valid for a search that encompasses ANY share entity type.
| |||||||||||
Called to validate that the PortalPage can be be updated
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check that the passed permissions are valid for the System Dashboard.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Called to create and store the specified portalPage into the database.
serviceCtx | the JiraServiceContext in play |
---|---|
portalPage | the PortalPage object that is to be created |
Called to create and store the specified portalPage into the database.
serviceCtx | the JiraServiceContext in play |
---|---|
portalPage | the PortalPage object that is to be created |
isFavourite | set to true if the PortalPage should be marked as a favourite |
Called to create and store the specified portalPage into the database by cloning its Portlet content from an existing PortalPage object.
serviceCtx | the JiraServiceContext in play |
---|---|
portalPage | the PortalPage object that is to be created |
clonePortalPageId | the id of an existing PortalPage to clone |
isFavourite | set to true if the PortalPage should be marked as a favourite |
Decreases the position of the page configuration in the user's page configuration set.
serviceCtx | the context of the service call |
---|---|
portalPageId | the id of the PortalPage to re-sequence |
Delete all Portal Pages owned by a user. This method will also remove all favourites for all portlets as well as remove all favourites for the user. A nice big cleanup method for when deleting a user.
user | The user to clean up after. |
---|
Called to delete the PortalPage with the specified portalPageId.
serviceCtx | the JiraServiceContext in play |
---|---|
portalPageId | the id of the PortalPage to delete |
Retrieve all PortalPage
's a user has favourited. Permission checks are done to ensure the user can see the PortalPage
, as
visibility may have been removed from underneath them.
user | The user who has favourite PortalPage 's. Also to test visibility and with |
---|
PortalPage
objects that represent PortalPage
's the user has favourited.
Get a user's non private PortalPage
's. I.e. PortalPage
's that other users can possibly see.
user | The author of the PortalPage 's |
---|
Retrieve all PortalPage
's a user owns/has created.
user | The user who created the PortalPage 's. |
---|
PortalPage
objects that represent PortalPage
's the user has created.
Retrieve a given PortalPage
by id.
context | JIRA Service context containing an error collection and user requesting (to run) the
PortalPage . The PortalPage must exist and the user must be able to
see PortalPage else an error will result. |
---|---|
portalPageId | The id of the PortalPage to retrieve. Id must not be null. |
Get PortalPage
's owned by a given user that have been favourited by at least one other user
user | The author of the PortalPage 's |
---|
Returns all portlet configurations for a particular dashboard in colums and rows. The portlet configurations are returned sorted correctly in each column by row.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
portalPageId | The id of the portal page to get |
This returns the System Default PortalPage as defined by the JIRA Administrators
Increases the position of the page configuration in the user's page configuration set
serviceCtx | the context of the service call |
---|---|
portalPageId | the id of the PortalPage to re-sequence |
Is the passed PortalPage a favourite of the passed User.
user | the user to check. |
---|---|
portalPage | the page to check. |
Puts the given page to the end of the user's page configuration set.
serviceCtx | the context of the service call |
---|---|
portalPageId | the id of the PortalPage to re-sequence |
Puts the given page to the start of the user's page configuration set.
serviceCtx | the context of the service call |
---|---|
portalPageId | the id of the PortalPage to re-sequence |
Save a specific PortletConfiguration
to a
database store.
serviceCtx | the context of the service call |
---|---|
portletConfiguration | The portletConfiguration to update |
Search for the PortalPages that match the passed SearchParameters. The result can be paged so that a subset of the results can be returned.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
searchParameters | the searchParameters to query. |
pagePosition | the page to return. |
pageWidth | the number of results per page. |
Updates the specified PortalPage in the database
serviceCtx | the JiraServiceContext in play |
---|---|
portalPage | the PortalPage to update |
isFavourite | set to true if the PortalPage is to be marked as a favourite |
Updates the specified PortalPage in the database , no permission checks are applied, but the user must be an administrator
serviceCtx | the JiraServiceContext in play |
---|---|
user | must be admin in order to make the change |
portalPage | the PortalPage to update |
This will validate that the dashboard page can be changed to the new owbner.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
page | the PortalPage to validate |
Called to validate that sequence of a PortalPage can be changed.
serviceCtx | the context of the service call |
---|---|
portalPageId | the id of the PortalPage to re-sequence |
Called to validate that the PortalPage object is in a valid state for creation. Call this before calling the create method .
serviceCtx | the JiraServiceContext in play |
---|---|
portalPage | the PortalPage object that is to be validated for create |
Called to validate that a new PortalPage can be created by cloning its Portlet content from an existing PortalPage object.
serviceCtx | the JiraServiceContext in play |
---|---|
portalPage | the PortalPage object that is to be created |
clonePortalPageId | the id of an existing PortalPage to clone |
Called to validate that the specified portalPage with the portalPageId can be deleted.
serviceCtx | the JiraServiceContext in play |
---|---|
portalPageId | the id of the PortalPage to delete |
Check if the user in the service context has permission to get the portal page with the id provided.
context | Context containing user, error collection and i18n bean |
---|---|
portalPageId | The id of the portal page to get |
This will validate that the input parameters are valid for a search that encompasses ANY share entity type.
serviceCtx | Context containing user, error collection and i18n bean |
---|---|
searchParameters | the SharedEntitySearchParameters to validate |
Called to validate that the PortalPage can be be updated
serviceCtx | the JiraServiceContext in play |
---|---|
portalPage | the PortalPage to update |
Check that the passed permissions are valid for the System Dashboard.
serviceCtx | the JiraServiceContext in play |
---|---|
sharePermissions | the Set of SharePermission 's to check |