OptimalTrace
5.2

com.compuware.optimaltrace.tools.common.bizobjectslocal
Class ProjectContainer

java.lang.Object
  extended by com.compuware.optimaltrace.framework.business.AbstractPropertiesContainer
      extended by com.compuware.optimaltrace.framework.business.AbstractBizObject
          extended by com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainer
All Implemented Interfaces:
BizObjectIfc, PersistentIfc, PropertiesContainerIfc, DynAttributeIfc, MergeObjectIfc, AssociateIfc, ChildIfc, ParentIfc, RelationIfc, com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc, com.compuware.optimaltrace.tools.common.tpn.client.PingServerIfc, java.beans.PropertyChangeListener, java.util.EventListener

public class ProjectContainer
extends com.compuware.optimaltrace.framework.business.AbstractBizObject
implements com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc, java.beans.PropertyChangeListener, com.compuware.optimaltrace.tools.common.tpn.client.PingServerIfc

Class ProjectContainer, project container singleton class.

Author:
Andrew Jenkinson

Field Summary
 
Fields inherited from class com.compuware.optimaltrace.framework.business.AbstractPropertiesContainer
_propertyChangeSupport
 
Fields inherited from interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
ATTR_FLOW_DIAGRAM_WIDTH, FIT_TO_CONTENT, FIXED_SIZE, TRUNCATE_TEXT
 
Fields inherited from interface com.compuware.optimaltrace.framework.business.BizObjectIfc
ATTR_IS_LOCKED, ATTR_IS_LOCKEDLOCALLY, ATTR_IS_READONLY, ATTR_LOCKOWNER, ATTR_NAME, BO_DB_TIMESTAMP, BO_ID, BO_ST, BO_TIMESTAMP, BO_TYPE
 
Fields inherited from interface com.compuware.optimaltrace.framework.merge.MergeObjectIfc
ATTR_IS_ASSOCIATECHANGEDNEWER, ATTR_IS_ASSOCIATECHANGEDOLDER, ATTR_IS_ATTRIBUTESCHANGED_NEWER, ATTR_IS_ATTRIBUTESCHANGED_OLDER, ATTR_IS_CHILDCONFLICT, ATTR_IS_CHILDWASADDED, ATTR_IS_CHILDWASREMOVED, ATTR_IS_CUSTOMPROPERTYCHANGED, ATTR_IS_CUSTOMPROPERTYCHANGEDADDED, ATTR_IS_CUSTOMPROPERTYCHANGEDREMOVED, ATTR_IS_CUSTOMPROPERTYVALUECHANGEDNEWER, ATTR_IS_CUSTOMPROPERTYVALUECHANGEDOLDER, ATTR_IS_MERGEACCEPTED, ATTR_IS_MERGECHANGED, ATTR_IS_MERGEREJECTED, ATTR_IS_NEWPARENTAFTERMOVE, ATTR_IS_OLDPARENTAFTERMOVE, ATTR_IS_PARENTCHANGED, ATTR_IS_POSITIONCHANGEDNEWER, ATTR_IS_POSITIONCHANGEDOLDER, ATTR_IS_WASADDED, ATTR_IS_WASREMOVED
 
Constructor Summary
protected ProjectContainer()
          Constructor ProjectContainer.
 
Method Summary
 void addDocumentProfile(com.compuware.optimaltrace.tools.common.bizobjectslocal.DocumentProfileIfc documentProfile)
          Adds the document profile.
 void addLocalProject(ProjectIfc project)
          Adds the local project.
 void addRemoteProject(ProjectIfc project)
          Adds the remote project.
 boolean canUserModify(ProjectIfc project, long bizObjectId)
          Checks the user modification.
 boolean canUserModify(ProjectIfc project, long bizObjectId, java.lang.String attr_name)
          Checks the user modification.
 boolean canUserModifyCPs(ProjectIfc project, long bizObjectId)
          Checks the user modification of CPs.
 boolean containsRemoteProject()
          Indicates if a remote projects is open in the container.
 com.compuware.optimaltrace.tools.common.bizobjectslocal.AdminToolSettingsIfc getAdminToolSettings()
          Gets the admin tool settings.
 java.util.Collection<com.compuware.optimaltrace.tools.common.utils.ProjectCache> getAllProjectCaches()
          Gets all project caches.
 com.compuware.optimaltrace.tools.common.bizobjectslocal.DocumentProfileIfc getDocumentProfile(java.lang.String name)
          Gets the document profile.
 com.compuware.optimaltrace.tools.common.bizobjectslocal.DocumentSettingsIfc getDocumentSettings()
          Gets the document settings.
 com.compuware.optimaltrace.tools.common.bizobjectslocal.TextGenSettingsIfc getExportSettings()
          Gets the export settings.
 java.lang.String getFlowDiagramWidth()
          Sets the node width policy for the flow diagram.
 void getGlobalLock()
          Gets the global lock.
 void getGlobalLockInterruptible()
          Gets the interruptible global lock.
 com.compuware.optimaltrace.tools.common.bizobjectslocal.TextGenSettingsIfc getHtmlGenSettings()
          Gets the HtmlGen settings.
static ProjectContainer getInstance()
          Get the instance of this project container.
 BizObjectIfc getParentPermissionObject(ProjectIfc project, long bizObjectId)
          Gets the parent permission object.
 ProjectIfc getProjectBaseline(long bizObjectId, java.lang.String baseline)
          Gets the project baseline.
 ProjectIfc getProjectByLocation(java.lang.String fileName)
          Gets the project by location.
 com.compuware.optimaltrace.tools.common.utils.ProjectCache getProjectCacheForProject(ProjectIfc project)
          Gets the project cache.
 java.lang.String getProjectFileName(ProjectIfc project)
          Gets the project file name.
 com.compuware.optimaltrace.tools.common.tpn.ProjectPermissionsManagerClient getProjectPermissionsManagerClientForProject(ProjectIfc project)
          Gets the project permissions manager client.
 java.util.List<?> getProjects()
          Gets the projects.
 com.compuware.optimaltrace.tools.common.bizobjects.QueryHolderIfc getQueryHolder()
          Gets the query holder.
 java.lang.String getReadableName()
          Gets the readable name.
 ProjectIfc getRemoteProject(long projectId)
          Gets the remote project.
 ProjectIfc getRemoteProject(java.lang.String projectName)
          Gets the remote project.
 UseCasePackageIfc getSelectedPackage()
          Gets the selected package.
 ProjectIfc getSelectedProject()
          Gets the selected project.
 com.compuware.optimaltrace.framework.ui.table.TableHolderListIfc getSelectedTableHolderList()
          Gets the selected table holder list.
 com.compuware.optimaltrace.tools.common.bizobjectslocal.ServerSettingsIfc getServerSettings()
          Gets the serever settings.
 ToolSettingsIfc getToolSettings()
          Gets the tool settings.
 java.lang.String getTypeId()
          Gets the type ID.
 boolean hasProject(ProjectIfc project)
          Checks there is a project.
 boolean isLocalProjectLoaded(java.lang.String fileName)
          Checks if the local project is loaded.
 boolean isProjectBaselineLoaded(long bizObjectId, java.lang.String baseline)
          Checks if the project baseline is loaded.
 boolean isProjectFullyReadOnly(ProjectIfc project)
          Checks if the user can modify any element of the project
 boolean isProjectLoaded(long projectId, boolean isProjectLocal, java.lang.String location)
          Checks if the project is loaded.
 boolean isProjectLoaded(ProjectIfc project, java.lang.String location)
          Checks if the project is loaded.
 boolean isProjectLoaded(java.lang.String projectName, boolean isProjectLocal, java.lang.String location)
          Checks if the project is loaded.
 boolean isProjectLoaded(java.lang.String projectName, java.lang.String baselineName, boolean isProjectLocal, java.lang.String location)
          Checks if the project is loaded latest.
 boolean isProjectLoadedLATEST(java.lang.String projectName, boolean isProjectLocal, java.lang.String location)
          Checks if the project is loaded latest.
 boolean isProjectPartialReadOnly(ProjectIfc project)
          Checks to determine if the user is denied modify to any part of the project.
 boolean isXMLProject(ProjectIfc project)
          Checks if it is XML project.
 void loadAdminToolSettings()
          Loads the admin tool settings.
 void loadDocumentSettings()
          Loads the document settings.
 void loadQueries()
          Loads the queries.
 void loadServerSettings()
          Loads the server settings.
 void loadToolSettings()
          Loads the tool settings.
 void propertyChange(java.beans.PropertyChangeEvent evt)
          PropertyChangeListener.
 void registerPermissionsManagerForProject(ProjectIfc project)
          Registers the permissions manager for this project.
 void releaseGlobalLock()
          Releases the global lock.
 void releaseProjectReferences(ProjectIfc project)
          Releases the project references.
 void removeProject(ProjectIfc project)
          Removes the project.
 void saveAdminToolSettings()
          Saves the admin tool settings.
 void saveDocumentSettings()
          Saves the document settings.
 void saveServerSettings()
          Saves the server settings.
 void saveToolSettings()
          Saves the tool settings.
 void setAdminToolSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.AdminToolSettingsIfc toolSettings)
          Sets the admin tool settings.
 void setDocumentSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.DocumentSettingsIfc documentSettings)
          Sets the document settings.
 void setExportGenSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.TextGenSettingsIfc textGenSettings)
          Sets the export settings.
 void setFlowDiagramWidth(java.lang.String policy)
          Sets the node width policy in the flow diagram.
 void setHtmlGenSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.TextGenSettingsIfc textGenSettings)
          Sets the HtmlGen settings.
 void setProjectFileName(ProjectIfc project, java.lang.String fileName)
          Sets the project file name.
 void setSelectedPackage(UseCasePackageIfc selPackage)
          Sets the selected package.
 void setSelectedProject(ProjectIfc project)
          Sets the selected project.
 void setSelectedTableHolderList(com.compuware.optimaltrace.framework.ui.table.TableHolderListIfc tableHolderList)
          Sets the selected table holder list.
 void setServerSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.ServerSettingsIfc serverSettings)
          Sets the server settings.
 void setToolSettings(ToolSettingsIfc toolSettings)
          Sets the tool settings.
 void setXMLProject(ProjectIfc project, boolean isXML)
          Sets the XML project indicating if the project is a local or remote one.
 void silentlyAddProject(ProjectIfc project, boolean isXMLProject)
          Adds the project silently.
 void silentlyAddProject(ProjectIfc project, boolean isXMLProject, boolean useFullIds)
          Adds the project silently.
 void silentlyRemoveProject(ProjectIfc project)
          Removes the project silently.
 void startPingingServer(int interval)
          Starts pinging server.
 void startPollingRemoteProject()
          Starts polling remote project.
 void stopPingingServer()
          Stops pinging server.
 void stopPollingRemoteProject()
          Stops polling remote project.
 boolean tryGlobalLock()
          Tries the global lock.
 void unloadProjectAndReleaseReferences(ProjectIfc project)
          Unloads the project and release references.
 void unregisterPermissionsManagerForProject(ProjectIfc project)
          Unregisters the permissions manager for this project.
 boolean updateProjectName(ProjectIfc project, java.lang.String newName)
          Updates the project name.
 
Methods inherited from class com.compuware.optimaltrace.framework.business.AbstractBizObject
addAssociate, addAssociateListener, addChild, addChildAt, addChildListener, addInwardAssociate, addParentListener, cloneObjectsAttributes, customPropertiesToDocArray, decrementChildPosition, deleteSQL, disableMergeObjectSupport, enableMergeObjectSupport, equals, fireAssociateEvent, fireChildEvent, fireChildEvent, getAssociate, getAssociateListeners, getAssociates, getAssociates, getAttributeTable, getAttributeTimeStamp, getBaselineId, getBizObjectId, getBooleanAttribute, getChild, getChild, getChildById, getChildDocPersistObjects, getChildListeners, getChildren, getChildren, getChildren, getFirstChild, getId, getIntAttribute, getInwardAssociates, getInwardAssociates, getLockOwner, getLongAttribute, getName, getNextChild, getNextChild, getObjectAttribute, getOutwardAssociates, getOutwardAssociates, getParent, getParent, getParentListeners, getPreviousChild, getShortAttribute, getStringAttribute, getTimeStamp, getTimeStamp, getTimeStampTable, hasAssociate, hasAttribute, hasChild, hasChildById, hasChildren, hasInwardAssociate, hasOutwardAssociate, incrementChildPosition, isAssociateChangedNewer, isAssociateChangedOlder, isAttributesChangedNewer, isAttributesChangedOlder, isChildConflict, isChildWasAdded, isChildWasRemoved, isCustomPropertyChanged, isCustomPropertyChangedAdded, isCustomPropertyChangedRemoved, isCustomPropertyValueChangedNewer, isCustomPropertyValueChangedOlder, isEqual, isEqualWithFilter, isLocked, isMergeAccepted, isMergeChanged, isMergeObjectSupportEnabled, isMergeRejected, isNewParentAfterMove, isOldParentAfterMove, isParentChanged, isPositionChangedNewer, isPositionChangedOlder, isReadOnly, isWasAdded, isWasRemoved, moveChild, moveChild, moveChildAt, numAssociates, numChildren, numInwardAssociates, numOutwardAssociates, reInitialiseListeners, removeAssociate, removeAssociateListener, removeAttribute, removeChild, removeChildListener, removeInwardAssociate, removeParentListener, renameAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeNoTimeStampUpdate, setAttributeNoTimeStampUpdate, setAttributeNoValidation, setAttributeTable, setAttributeTimeStamp, setAttributeWithParentTime, setBaselineId, setBizObjectId, setId, setIsAssociateChangedNewer, setIsAssociateChangedOlder, setIsAttributesChangedNewer, setIsAttributesChangedOlder, setIsChildConflict, setIsChildWasAdded, setIsChildWasRemoved, setIsCustomPropertyChanged, setIsCustomPropertyChangedAdded, setIsCustomPropertyChangedRemoved, setIsCustomPropertyValueChangedNewer, setIsCustomPropertyValueChangedOlder, setIsLocked, setIsMergeAccepted, setIsMergeChanged, setIsMergeRejected, setIsNewParentAfterMove, setIsOldParentAfterMove, setIsParentChanged, setIsPositionChangedNewer, setIsPositionChangedOlder, setIsReadOnly, setIsWasAdded, setIsWasRemoved, setLockOwner, setName, setObjectAttribute, setParent, setTimeStamp, setTimeStamp, setTimeStampNoParentUpdate, setTimeStampTable, silentlyAddChild, silentlyAddChildAt, silentlyRemoveChild, toDocArray, toSQL, toString
 
Methods inherited from class com.compuware.optimaltrace.framework.business.AbstractPropertiesContainer
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setTimeStampListenersEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.compuware.optimaltrace.framework.business.PropertiesContainerIfc
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

ProjectContainer

protected ProjectContainer()
Constructor ProjectContainer.

Method Detail

getInstance

public static ProjectContainer getInstance()
Get the instance of this project container.

Returns:
ProjectContainer

getGlobalLock

public void getGlobalLock()
Gets the global lock.


getGlobalLockInterruptible

public void getGlobalLockInterruptible()
                                throws java.lang.InterruptedException
Gets the interruptible global lock.

Throws:
java.lang.InterruptedException

releaseGlobalLock

public void releaseGlobalLock()
Releases the global lock.


tryGlobalLock

public boolean tryGlobalLock()
Tries the global lock.


isXMLProject

public boolean isXMLProject(ProjectIfc project)
Checks if it is XML project.

Specified by:
isXMLProject in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -
Returns:
boolean

setXMLProject

public void setXMLProject(ProjectIfc project,
                          boolean isXML)
Sets the XML project indicating if the project is a local or remote one.

Specified by:
setXMLProject in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -
isXML - indicates if the project is local or remote. A value of true indicates a local project, false indicates remote.

addLocalProject

public void addLocalProject(ProjectIfc project)
Adds the local project.

Specified by:
addLocalProject in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -

addRemoteProject

public void addRemoteProject(ProjectIfc project)
Adds the remote project.

Specified by:
addRemoteProject in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -

silentlyAddProject

public void silentlyAddProject(ProjectIfc project,
                               boolean isXMLProject)
Adds the project silently.

Parameters:
project -
isXMLProject -

silentlyAddProject

public void silentlyAddProject(ProjectIfc project,
                               boolean isXMLProject,
                               boolean useFullIds)
Adds the project silently.

Parameters:
project -
isXMLProject -
useFullIds -

removeProject

public void removeProject(ProjectIfc project)
Removes the project.

Specified by:
removeProject in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -

releaseProjectReferences

public void releaseProjectReferences(ProjectIfc project)
Releases the project references.

Parameters:
project -

silentlyRemoveProject

public void silentlyRemoveProject(ProjectIfc project)
Removes the project silently.

Parameters:
project -

getProjects

public java.util.List<?> getProjects()
Gets the projects.

Specified by:
getProjects in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Returns:
List

getRemoteProject

public ProjectIfc getRemoteProject(java.lang.String projectName)
Gets the remote project.

Parameters:
projectName -
Returns:
ProjectIfc

containsRemoteProject

public boolean containsRemoteProject()
Indicates if a remote projects is open in the container.

Returns:
boolean True if a repository project is open, otherwise false.

getTypeId

public java.lang.String getTypeId()
Gets the type ID.

Specified by:
getTypeId in interface BizObjectIfc
Specified by:
getTypeId in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Returns:
String

getReadableName

public java.lang.String getReadableName()
Gets the readable name.

Specified by:
getReadableName in interface BizObjectIfc
Returns:
String

getProjectFileName

public java.lang.String getProjectFileName(ProjectIfc project)
Gets the project file name.

Specified by:
getProjectFileName in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -
Returns:
String

getSelectedProject

public ProjectIfc getSelectedProject()
Gets the selected project.

Specified by:
getSelectedProject in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Returns:
ProjectIfc

setSelectedProject

public void setSelectedProject(ProjectIfc project)
Sets the selected project.

Specified by:
setSelectedProject in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -

isProjectLoaded

public boolean isProjectLoaded(long projectId,
                               boolean isProjectLocal,
                               java.lang.String location)
Checks if the project is loaded.

Parameters:
projectId -
isProjectLocal -
location -
Returns:
boolean

isProjectLoaded

public boolean isProjectLoaded(java.lang.String projectName,
                               boolean isProjectLocal,
                               java.lang.String location)
Checks if the project is loaded.

Parameters:
projectName -
isProjectLocal -
location -
Returns:
boolean

isProjectLoadedLATEST

public boolean isProjectLoadedLATEST(java.lang.String projectName,
                                     boolean isProjectLocal,
                                     java.lang.String location)
Checks if the project is loaded latest.

Parameters:
projectName -
isProjectLocal -
location -
Returns:
boolean

isProjectLoaded

public boolean isProjectLoaded(java.lang.String projectName,
                               java.lang.String baselineName,
                               boolean isProjectLocal,
                               java.lang.String location)
Checks if the project is loaded latest.

Parameters:
projectName -
baselineName -
isProjectLocal -
location -
Returns:
boolean

isProjectLoaded

public boolean isProjectLoaded(ProjectIfc project,
                               java.lang.String location)
Checks if the project is loaded.

Specified by:
isProjectLoaded in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -
location - - either local or on a repository
Returns:
boolean

setProjectFileName

public void setProjectFileName(ProjectIfc project,
                               java.lang.String fileName)
Sets the project file name.

Specified by:
setProjectFileName in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -
fileName -

updateProjectName

public boolean updateProjectName(ProjectIfc project,
                                 java.lang.String newName)
Updates the project name.

Specified by:
updateProjectName in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -
newName -
Returns:
boolean

getToolSettings

public ToolSettingsIfc getToolSettings()
Gets the tool settings.

Specified by:
getToolSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Returns:
ToolSettingsIfc

getAdminToolSettings

public com.compuware.optimaltrace.tools.common.bizobjectslocal.AdminToolSettingsIfc getAdminToolSettings()
Gets the admin tool settings.

Returns:
AdminToolSettingsIfc

getServerSettings

public com.compuware.optimaltrace.tools.common.bizobjectslocal.ServerSettingsIfc getServerSettings()
Gets the serever settings.

Returns:
ServerSettingsIfc

getQueryHolder

public com.compuware.optimaltrace.tools.common.bizobjects.QueryHolderIfc getQueryHolder()
Gets the query holder.

Returns:
ToolSettingsIfc

setToolSettings

public void setToolSettings(ToolSettingsIfc toolSettings)
Sets the tool settings.

Specified by:
setToolSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
toolSettings -

setAdminToolSettings

public void setAdminToolSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.AdminToolSettingsIfc toolSettings)
Sets the admin tool settings.

Parameters:
toolSettings -

setServerSettings

public void setServerSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.ServerSettingsIfc serverSettings)
Sets the server settings.

Parameters:
serverSettings -

addDocumentProfile

public void addDocumentProfile(com.compuware.optimaltrace.tools.common.bizobjectslocal.DocumentProfileIfc documentProfile)
Adds the document profile.

Specified by:
addDocumentProfile in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
documentProfile -

getDocumentProfile

public com.compuware.optimaltrace.tools.common.bizobjectslocal.DocumentProfileIfc getDocumentProfile(java.lang.String name)
Gets the document profile.

Specified by:
getDocumentProfile in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
name - the specific profile name that is being searched for
Returns:
DocumentProfileIfc

getDocumentSettings

public com.compuware.optimaltrace.tools.common.bizobjectslocal.DocumentSettingsIfc getDocumentSettings()
                                                                                                throws java.lang.Exception
Gets the document settings.

Specified by:
getDocumentSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Returns:
DocumentSettingsIfc
Throws:
java.lang.Exception

setDocumentSettings

public void setDocumentSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.DocumentSettingsIfc documentSettings)
Sets the document settings.

Specified by:
setDocumentSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
documentSettings -

loadDocumentSettings

public void loadDocumentSettings()
                          throws java.lang.Exception
Loads the document settings.

Specified by:
loadDocumentSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Throws:
java.lang.Exception

saveDocumentSettings

public void saveDocumentSettings()
                          throws java.lang.Exception
Saves the document settings.

Specified by:
saveDocumentSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Throws:
java.lang.Exception

loadToolSettings

public void loadToolSettings()
Loads the tool settings.

Specified by:
loadToolSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc

loadAdminToolSettings

public void loadAdminToolSettings()
Loads the admin tool settings.


loadServerSettings

public void loadServerSettings()
Loads the server settings.

Specified by:
loadServerSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc

loadQueries

public void loadQueries()
Loads the queries.


saveToolSettings

public void saveToolSettings()
                      throws ReadOnlyFileException
Saves the tool settings.

Specified by:
saveToolSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Throws:
ReadOnlyFileException

saveAdminToolSettings

public void saveAdminToolSettings()
                           throws ReadOnlyFileException
Saves the admin tool settings.

Throws:
ReadOnlyFileException

saveServerSettings

public void saveServerSettings()
                        throws ReadOnlyFileException
Saves the server settings.

Specified by:
saveServerSettings in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Throws:
ReadOnlyFileException

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
PropertyChangeListener. We listen for changes on a Projects Name.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt -

getHtmlGenSettings

public com.compuware.optimaltrace.tools.common.bizobjectslocal.TextGenSettingsIfc getHtmlGenSettings()
                                                                                              throws com.compuware.optimaltrace.tools.common.textgen.TextGenException
Gets the HtmlGen settings.

Returns:
TextGenSettingsIfc
Throws:
com.compuware.optimaltrace.tools.common.textgen.TextGenException

setHtmlGenSettings

public void setHtmlGenSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.TextGenSettingsIfc textGenSettings)
Sets the HtmlGen settings.

Parameters:
textGenSettings -

isLocalProjectLoaded

public boolean isLocalProjectLoaded(java.lang.String fileName)
Checks if the local project is loaded.

Parameters:
fileName -
Returns:
boolean

getProjectByLocation

public ProjectIfc getProjectByLocation(java.lang.String fileName)
Gets the project by location.

Parameters:
fileName -
Returns:
ProjectIfc

unloadProjectAndReleaseReferences

public void unloadProjectAndReleaseReferences(ProjectIfc project)
Unloads the project and release references.

Specified by:
unloadProjectAndReleaseReferences in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
project -

getExportSettings

public com.compuware.optimaltrace.tools.common.bizobjectslocal.TextGenSettingsIfc getExportSettings()
                                                                                             throws com.compuware.optimaltrace.tools.common.textgen.TextGenException
Gets the export settings.

Returns:
TextGenSettingsIfc
Throws:
com.compuware.optimaltrace.tools.common.textgen.TextGenException

setExportGenSettings

public void setExportGenSettings(com.compuware.optimaltrace.tools.common.bizobjectslocal.TextGenSettingsIfc textGenSettings)
Sets the export settings.

Parameters:
textGenSettings -

getFlowDiagramWidth

public java.lang.String getFlowDiagramWidth()
Sets the node width policy for the flow diagram.

Specified by:
getFlowDiagramWidth in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Returns:
String

setFlowDiagramWidth

public void setFlowDiagramWidth(java.lang.String policy)
Sets the node width policy in the flow diagram.

Specified by:
setFlowDiagramWidth in interface com.compuware.optimaltrace.tools.common.bizobjectslocal.ProjectContainerIfc
Parameters:
policy -

getProjectPermissionsManagerClientForProject

public com.compuware.optimaltrace.tools.common.tpn.ProjectPermissionsManagerClient getProjectPermissionsManagerClientForProject(ProjectIfc project)
Gets the project permissions manager client.

Parameters:
project -
Returns:
ProjectPermissionsManagerClient

canUserModify

public boolean canUserModify(ProjectIfc project,
                             long bizObjectId,
                             java.lang.String attr_name)
Checks the user modification.

Parameters:
project -
bizObjectId -
attr_name -
Returns:
boolean

canUserModifyCPs

public boolean canUserModifyCPs(ProjectIfc project,
                                long bizObjectId)
Checks the user modification of CPs.

Parameters:
project -
bizObjectId -
Returns:
boolean

canUserModify

public boolean canUserModify(ProjectIfc project,
                             long bizObjectId)
Checks the user modification.

Parameters:
project -
bizObjectId -
Returns:
boolean

registerPermissionsManagerForProject

public void registerPermissionsManagerForProject(ProjectIfc project)
Registers the permissions manager for this project.

Parameters:
project -

unregisterPermissionsManagerForProject

public void unregisterPermissionsManagerForProject(ProjectIfc project)
Unregisters the permissions manager for this project.

Parameters:
project -

getParentPermissionObject

public BizObjectIfc getParentPermissionObject(ProjectIfc project,
                                              long bizObjectId)
Gets the parent permission object.

Parameters:
project -
bizObjectId -
Returns:
BizObjectIfc

isProjectFullyReadOnly

public boolean isProjectFullyReadOnly(ProjectIfc project)
Checks if the user can modify any element of the project


isProjectPartialReadOnly

public boolean isProjectPartialReadOnly(ProjectIfc project)
Checks to determine if the user is denied modify to any part of the project.

Parameters:
project - - project to check
Returns:
boolean - true if there are portions of the project that the user cannot modify. false otherwise.

getRemoteProject

public ProjectIfc getRemoteProject(long projectId)
Gets the remote project.

Parameters:
projectId -
Returns:
ProjectIfc

getProjectBaseline

public ProjectIfc getProjectBaseline(long bizObjectId,
                                     java.lang.String baseline)
Gets the project baseline.

Parameters:
bizObjectId -
baseline -
Returns:
ProjectIfc

isProjectBaselineLoaded

public boolean isProjectBaselineLoaded(long bizObjectId,
                                       java.lang.String baseline)
Checks if the project baseline is loaded.

Parameters:
bizObjectId -
baseline -
Returns:
boolean

hasProject

public boolean hasProject(ProjectIfc project)
Checks there is a project.

Parameters:
project -
Returns:
boolean

startPollingRemoteProject

public void startPollingRemoteProject()
Starts polling remote project.


stopPollingRemoteProject

public void stopPollingRemoteProject()
Stops polling remote project.


startPingingServer

public void startPingingServer(int interval)
Starts pinging server.

Specified by:
startPingingServer in interface com.compuware.optimaltrace.tools.common.tpn.client.PingServerIfc
Parameters:
interval -

stopPingingServer

public void stopPingingServer()
Stops pinging server.

Specified by:
stopPingingServer in interface com.compuware.optimaltrace.tools.common.tpn.client.PingServerIfc

getProjectCacheForProject

public com.compuware.optimaltrace.tools.common.utils.ProjectCache getProjectCacheForProject(ProjectIfc project)
Gets the project cache.

Parameters:
project -

getAllProjectCaches

public java.util.Collection<com.compuware.optimaltrace.tools.common.utils.ProjectCache> getAllProjectCaches()
Gets all project caches.

Returns:
Collection

setSelectedPackage

public void setSelectedPackage(UseCasePackageIfc selPackage)
Sets the selected package.

Parameters:
selPackage -

getSelectedPackage

public UseCasePackageIfc getSelectedPackage()
Gets the selected package.

Returns:
UseCasePackageIfc

setSelectedTableHolderList

public void setSelectedTableHolderList(com.compuware.optimaltrace.framework.ui.table.TableHolderListIfc tableHolderList)
Sets the selected table holder list.

Parameters:
tableHolderList -

getSelectedTableHolderList

public com.compuware.optimaltrace.framework.ui.table.TableHolderListIfc getSelectedTableHolderList()
Gets the selected table holder list.

Returns:
TableHolderListIfc

OptimalTrace
5.2

Compuware Corporation

OptimalTrace is a trademark or registered trademark of Compuware Corporation in the US and other countries.
Copyright 2008-2009 Compuware Corporation. One Campus Martius,
Detroit, Michigan, 48226, U.S.A. All Rights Reserved.