|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.project.StandardProjectService
Standard implementation of the project service interfaces.
Use the newStandardProjectService
static factory method(s),
not the StandardProjectService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static Object |
IGNORE_DELETE_KEY
|
private static String |
RESOURCE
|
private static String |
SERVICE_NAME
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardProjectService()
|
Method Summary | |
Role[] |
allRoles()
Deprecated. in R4.0. Use the appropriate call on the EnumeratedType object to get these values. |
private void |
applyResolution(Role role,
Enumeration principals,
RoleHolder roleHolder)
|
Project |
copyProject(Project aProject,
String copyName,
String folderLocation,
boolean persist)
Produces a copy of the Project object with the name passed as argument. |
ProjectReference |
createTeamInstance(Persistable object)
Deprecated. in R6.0 |
protected void |
dispatchVetoableEvent(String eventType,
ProjectManaged object)
Dispatches a ProjectServiceEvent that includes the event type and target (i.e., ProjectManaged object). |
ProjectManaged |
doReproject(ProjectManaged object,
ProjectReference projRef)
Associate the object with a new project Supported API: false |
private Vector |
findProjectsByDomain(AdministrativeDomain aDomain)
find methods * |
Vector |
getCandidateProjects()
Answer a vector of project references that the project managed object can be assigned to Supported API: false |
Vector |
getCandidateProjects(AdminDomainRef domainRef)
Answer a vector of project references that the project managed object can be assigned to Supported API: false |
Vector |
getCandidateProjects(String domain)
Answer a vector of project references from the specified domain that the project managed object can be assigned to Supported API: false |
String |
getConceptualClassname()
Deprecated. |
private static Cabinet |
getContainingCabinet(CabinetBased foldered)
|
Vector |
getEnabledProjectNames()
Return an unsorted Vector of Project names as Strings. |
private String |
getIdentity(ProjectManaged p)
|
private Object |
getIgnoreDelete()
|
Vector |
getMembers(Project aProject)
Answer a vector of WTPrincipalReference of all members of a project Supported API: false |
Project |
getProject(AdministrativeDomain adminDomain,
String projectName)
Given the AdministrativeDomain and name of a project, find the Project object. |
Project |
getProject(ProjectManaged object)
Given a ProjectManaged object, answer the assigned project Supported API: false |
Project |
getProject(String projectIdentity)
Given the name or the identity of a project, find the Project object. |
Vector |
getProjectNames()
Retrieve an unsorted Vector of Project names as strings. |
Vector |
getProjects()
Answer a vector of project references for all projects, including the disabled ones Supported API: false |
private String |
getStringOfProjectIdentities(QueryResult qr)
|
Vector |
getTeamInstances()
Deprecated. in R6.0 |
private boolean |
isCheckedOut(ProjectManaged object)
|
private boolean |
isWorkingCopy(ProjectManaged object)
|
static StandardProjectService |
newStandardProjectService()
Default factory for the class. |
protected void |
performStartupProcess()
Overrides the startup process specific to the project service to provide custom startup for event subscription. |
protected void |
processLatestIterationChange(ProjectManaged original,
ProjectManaged replacement)
Maintain the cookie information upon checkin, etc |
private Vector |
projectQRtoProjectRefVector(QueryResult aResultSet)
|
void |
registerEvents(ManagerService manager)
Overrides the registration of all applicable lifecycle service events with the service manager. |
ProjectManaged |
reproject(ProjectManaged object,
ProjectReference projRef)
Associate a project managed object with a new project. |
WTPrincipalReference |
resolveActorRole(ActorRole actorRole,
Persistable object)
Given an actorRole and an object, resolve the actor role to a principal Supported API: false |
private Enumeration |
resolveByActorRole(Role roleToResolve,
ActorRoleHolder actorRoleHolder,
Persistable object)
|
private Enumeration |
resolveByAllPrincipals(Role roleToResolve,
ActorRoleHolder actorRoleHolder,
Persistable object)
|
private Enumeration |
resolveByPrincipal(Role roleToResolve,
RoleHolder roleHolder)
|
private Enumeration |
resolveByRole(Role roleToResolve,
IndirectRoleHolder indirectRoleHolder,
ActorRoleHolder actorRoleHolder,
Persistable object)
|
private Enumeration |
resolveRole(Role role,
IndirectRoleHolder indirectRoleHolder,
ActorRoleHolder actorRoleHolder,
Persistable object)
role resolution methods * |
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. |
void |
setIgnoreDelete(Object obj)
Supported API: false |
private ProjectManaged |
setProject(ProjectManaged object,
Project aProject)
|
private ProjectManaged |
setProject(ProjectManaged object,
ProjectReference projRef)
|
ProjectManaged |
setProject(ProjectManaged object,
String projectName,
String domain)
Deprecated. at 6.0 (Use the ProjectHelper.setProject(myObject, ProjectHelper.service.getProject(AdministrativeDomainHelper.manager.getDomain(adminDomainName), projectName)) instead |
private void |
validateIsLatestIteration(ProjectManaged object,
String action)
|
private void |
validateProject(ProjectManaged object)
|
ProjectManaged |
validateReproject(ProjectManaged object,
ProjectReference projRef)
Perform pre-reproject validations Supported API: false |
Vector |
whereUsed(ProjectReference project)
Answer a Vector of ProjectManaged objects Note: Any services that persist a ProjectReferenceare individually responsible for making sure the Project doesn't disappear on them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final Object IGNORE_DELETE_KEY
private static final boolean VERBOSE
private static final String SERVICE_NAME
Constructor Detail |
public StandardProjectService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public void registerEvents(ManagerService manager)
registerEvents
in interface Manager
registerEvents
in class StandardManager
manager
- the ManagerService object used to override the registration of applicable events with the service managerprotected void dispatchVetoableEvent(String eventType, ProjectManaged object) throws WTException, WTPropertyVetoException
eventType
- The name of the PersistentManagerEvent type.object
- The target of the persistable operation.
WTException
WTPropertyVetoException
public static StandardProjectService newStandardProjectService() throws WTException
WTException
public WTRoleHolder resolveRoles(IndirectRoleHolder indirectRoleHolder, ActorRoleHolder actorRoleHolder, RoleHolder resultsRoleHolder, Persistable object) throws ProjectException, WTException
resolveRoles
in interface ProjectServiceSvr
indirectRoleHolder
- the IndirectRoleHolder that contains roles/actorRoles to be resolvedactorRoleHolder
- 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
ProjectException
WTException
public WTPrincipalReference resolveActorRole(ActorRole actorRole, Persistable object) throws ProjectException, WTException
resolveActorRole
in interface ProjectServiceSvr
actorRole
- the ActorRole to be resolvedobject
- the object that is used to lookup a principal for the ActorRole
ProjectException
WTException
public ProjectManaged doReproject(ProjectManaged object, ProjectReference projRef) throws WTException, ProjectException
doReproject
in interface ProjectServiceSvr
object
- the ProjectManaged object to be re-projectedprojRef
-
WTException
ProjectException
public ProjectManaged validateReproject(ProjectManaged object, ProjectReference projRef) throws WTException, ProjectException
validateReproject
in interface ProjectServiceSvr
object
- the ProjectManaged object that should be re-projectedprojRef
-
WTException
ProjectException
public Vector getCandidateProjects(String domain) throws WTException, ProjectException
getCandidateProjects
in interface ProjectService
domain
- the name of the domain used as search criteria in the retrieval of candidate projects
WTException
ProjectException
public Vector getCandidateProjects() throws WTException, ProjectException
getCandidateProjects
in interface ProjectService
WTException
ProjectException
public Vector getCandidateProjects(AdminDomainRef domainRef) throws WTException, ProjectException
getCandidateProjects
in interface ProjectService
domainRef
- the AdminDomainRef object used as search criteria in the retrieval of candidate projects
WTException
ProjectException
public Role[] allRoles() throws WTException
allRoles
in interface ProjectService
WTException
public Project getProject(ProjectManaged object) throws WTException, ProjectException
getProject
in interface ProjectService
object
- the ProjectManaged object
WTException
ProjectException
public Project getProject(AdministrativeDomain adminDomain, String projectName) throws WTException, ProjectException
getProject
in interface ProjectService
adminDomain
- the AdministrativeDomain of the projectprojectName
- the name of the project
WTException
ProjectException
public Project getProject(String projectIdentity) throws WTException, ProjectException
getProject
in interface ProjectService
projectIdentity
- a String that contains the identity of the project
WTException
ProjectException
public ProjectManaged setProject(ProjectManaged object, String projectName, String domain) throws WTException, ProjectException, WTPropertyVetoException
setProject
in interface ProjectService
object
- the ProjectManaged object whose project should be setprojectName
- a String that contains the name of the project to set on the ProjectManaged object.domain
- a String that contain the AdministrativeDomain of the project that should be set
WTException
ProjectException
WTPropertyVetoException
public ProjectManaged reproject(ProjectManaged object, ProjectReference projRef) throws WTException, ProjectException
reproject
in interface ProjectService
object
- the ProjectManaged object that should be associated with a new project.projRef
- a reference to a Project, a ProjectReference of the projec tthat the object should be reassigned to
WTException
ProjectException
public void setIgnoreDelete(Object obj) throws WTException
setIgnoreDelete
in interface ProjectService
obj
-
WTException
public Vector getMembers(Project aProject) throws WTException
getMembers
in interface ProjectService
aProject
-
WTException
public Project copyProject(Project aProject, String copyName, String folderLocation, boolean persist) throws WTException
copyProject
in interface ProjectService
aProject
- copyName
- folderLocation
- persist
-
WTException
public Vector getProjects() throws WTException, ProjectException
getProjects
in interface ProjectService
WTException
ProjectException
public Vector whereUsed(ProjectReference project) throws WTException, ProjectException
whereUsed
in interface ProjectService
project
- A ProjectReference representing the Project object of interest
WTException
ProjectException
public ProjectReference createTeamInstance(Persistable object) throws WTException
createTeamInstance
in interface ProjectService
object
- The object that needs a Team Instance
WTException
public Vector getTeamInstances() throws WTException, ProjectException
getTeamInstances
in interface ProjectService
WTException
ProjectException
public Vector getProjectNames() throws WTException
getProjectNames
in interface ProjectService
WTException
public Vector getEnabledProjectNames() throws WTException
getEnabledProjectNames
in interface ProjectService
WTException
private String getStringOfProjectIdentities(QueryResult qr) throws WTException, ProjectException
WTException
ProjectException
protected void processLatestIterationChange(ProjectManaged original, ProjectManaged replacement) throws WTException
WTException
private Vector findProjectsByDomain(AdministrativeDomain aDomain) throws ProjectException
ProjectException
private Vector projectQRtoProjectRefVector(QueryResult aResultSet) throws WTException
WTException
private static Cabinet getContainingCabinet(CabinetBased foldered) throws WTException
WTException
private Enumeration resolveRole(Role role, IndirectRoleHolder indirectRoleHolder, ActorRoleHolder actorRoleHolder, Persistable object) throws ProjectException, WTException
ProjectException
WTException
private Enumeration resolveByAllPrincipals(Role roleToResolve, ActorRoleHolder actorRoleHolder, Persistable object) throws WTException
WTException
private Enumeration resolveByActorRole(Role roleToResolve, ActorRoleHolder actorRoleHolder, Persistable object) throws WTException
WTException
private Enumeration resolveByPrincipal(Role roleToResolve, RoleHolder roleHolder) throws WTException
WTException
private Enumeration resolveByRole(Role roleToResolve, IndirectRoleHolder indirectRoleHolder, ActorRoleHolder actorRoleHolder, Persistable object) throws WTException
WTException
private void applyResolution(Role role, Enumeration principals, RoleHolder roleHolder) throws WTException
WTException
private boolean isWorkingCopy(ProjectManaged object) throws WTException
WTException
private boolean isCheckedOut(ProjectManaged object) throws WTException
WTException
private void validateIsLatestIteration(ProjectManaged object, String action) throws WTException
WTException
private void validateProject(ProjectManaged object) throws WTException
WTException
private ProjectManaged setProject(ProjectManaged object, Project aProject) throws WTException
WTException
private ProjectManaged setProject(ProjectManaged object, ProjectReference projRef) throws WTException
WTException
private String getIdentity(ProjectManaged p)
private Object getIgnoreDelete()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |