com.atlassian.jira.bc.portal.PortalPageService |
![]() |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
The PortalPageService is the top level service for Dashboard operations.
For historical reasons, Dashboards where called Portals and hence the prefix "Portal" is used consistently throughout the code.
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
|
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.
servceCtx | 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.
context | 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.
ctx | Context containing user, error collection and i18n bean |
---|---|
dashboard | 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 |