wt.project
Interface ProjectServiceSvr

All Known Implementing Classes:
StandardProjectService

public interface ProjectServiceSvr

These methods are can only be invoked from classes running in the server.

Supported API: true

Extendable: false

See Also:
ProjectServerHelper

Method Summary
 ProjectManaged doReproject(ProjectManaged object, ProjectReference projRef)
          Associate the object with a new project

Supported API: true
 WTPrincipalReference resolveActorRole(ActorRole actorRole, Persistable object)
          Given an actorRole and an object, resolve the actor role to a principal

Supported API: true
 WTRoleHolder resolveRoles(IndirectRoleHolder indirectRoleHolder, ActorRoleHolder actorRoleHolder, RoleHolder resultsRoleHolder, Persistable object)
          Given an indirect role holder and a role holder, resolve the roles to just enabled principals.
 ProjectManaged validateReproject(ProjectManaged object, ProjectReference projRef)
          Perform pre-reproject validations

Supported API: true
 

Method Detail

resolveRoles

public WTRoleHolder resolveRoles(IndirectRoleHolder indirectRoleHolder,
                                 ActorRoleHolder actorRoleHolder,
                                 RoleHolder resultsRoleHolder,
                                 Persistable object)
                          throws ProjectException,
                                 WTException
Given an indirect role holder and a role holder, resolve the roles to just enabled principals.

Supported API: true

Parameters:
indirectRoleHolder - the IndirectRoleHolder that contains roles/actorRoles to be resolved
actorRoleHolder - the ActorRoleHolder that contains rolePrincipalMaps and roleActorRoleMaps. This is typically the Project object.
resultsRoleHolder - the RoleHolder that will be populated with RolePrincipal mappings. In the case of LifeCycle, this will be a Phase object.
object - the object that is used to lookup a principal for the ActorRole
Returns:
WTRoleHolder
Throws:
ProjectException
WTException

resolveActorRole

public WTPrincipalReference resolveActorRole(ActorRole actorRole,
                                             Persistable object)
                                      throws ProjectException,
                                             WTException
Given an actorRole and an object, resolve the actor role to a principal

Supported API: true

Parameters:
actorRole - the ActorRole to be resolved
object - the object that is used to lookup a principal for the ActorRole
Returns:
WTPrincipalReference
Throws:
ProjectException
WTException

doReproject

public ProjectManaged doReproject(ProjectManaged object,
                                  ProjectReference projRef)
                           throws WTException,
                                  ProjectException
Associate the object with a new project

Supported API: true

Parameters:
object - the ProjectManaged object to be re-projected
projRef -
Returns:
ProjectManaged
Throws:
WTException
ProjectException

validateReproject

public ProjectManaged validateReproject(ProjectManaged object,
                                        ProjectReference projRef)
                                 throws WTException,
                                        ProjectException
Perform pre-reproject validations

Supported API: true

Parameters:
object - the ProjectManaged object that should be re-projected
projRef -
Returns:
ProjectManaged
Throws:
WTException
ProjectException