public interface IProjectManagerSPI
Modifier and Type | Method and Description |
---|---|
void |
addProject(IProject project)
Adds the given project.
|
void |
clearCache()
Clears cache using current transaction..
|
void |
deleteProjects(Collection<String> ids)
Deletes the projects with the given identifiers.
|
void |
disconnectProjectFromChannel(String channelId)
Disconnects the project (if any) of the given channel.
|
Collection<IProject> |
getAllProjects()
Returns all projects.
|
Optional<IProject> |
getLocalProjectByChannelId(String channelId)
Returns an optional project based on the given channel identifier.
|
Optional<IProject> |
getProjectByChannelId(String channelId)
Returns an optional project based on the given channel identifier.
|
Optional<IProject> |
getProjectByWebsiteId(String websiteId)
Returns an optional project based on the given website identifier.
|
void |
updateProject(IProject project)
Updates the given project.
|
Collection<IProject> getAllProjects() throws PortalException
PortalException
- if some error occur.Optional<IProject> getProjectByWebsiteId(String websiteId) throws PortalException
websiteId
- the website identifier.PortalException
- if some error occur.Optional<IProject> getProjectByChannelId(String channelId) throws PortalException
channelId
- the channel identifier.PortalException
- if some error occur.Optional<IProject> getLocalProjectByChannelId(String channelId) throws PortalException
channelId
- the channel identifier.PortalException
- if some error occur.void addProject(IProject project) throws AccessDeniedException, TransactionRequiredException, PortalException
project
- the project.NullPointerException
- if the given project is null
.NullPointerException
- if the given project does not have a name.NullPointerException
- if there's no current user's session.AccessDeniedException
- if the current user does not have manage portal permission.TransactionRequiredException
- if there's no current transaction.PortalException
- if there's already a project with the same channel identifier.PortalException
- if other error occur.void updateProject(IProject project) throws AccessDeniedException, TransactionRequiredException, PortalException, ImmutableResourceException
project
- the project.NullPointerException
- if the given project is null
.NullPointerException
- if the given project does not have an identifier.NullPointerException
- if the given project does not have a name.NullPointerException
- if there's no current user's session.AccessDeniedException
- if the current user does not have manage portal permission.TransactionRequiredException
- if there's no current transaction.PortalException
- if there's already a project with the same channel identifier.ImmutableResourceException
- if the project trying to be updated cannot be updated.PortalException
- if other error occur.void deleteProjects(Collection<String> ids) throws AccessDeniedException, TransactionRequiredException, PortalException, ImmutableResourceException
ids
- the identifiers of the projects to be deleted.NullPointerException
- if the given identifiers is null.NullPointerException
- if there's no current user's session.AccessDeniedException
- if the current user does not have manage portal permission.TransactionRequiredException
- if there's no current transaction.ImmutableResourceException
- if some of the projects trying to be deleted cannot be deleted.PortalException
- if other error occur.void disconnectProjectFromChannel(String channelId) throws PortalException
channelId
- the channel identifier.PortalException
void clearCache() throws PortalException
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.