public class DistributedSession extends Session
BATCH_OVERRIDE, DEFAULT_BIND_PARAM_LIMIT_ON_LOAD, DEFAULT_LOCAL_BATCH_SIZE, DEFAULT_REMOTE_BATCH_SIZE, MAX_BIND_PARAM_LIMIT_ON_LOAD, MAX_BUSINESS_OBJECT_BATCH_SIZE, MIN_BIND_PARAM_LIMIT_ON_LOAD, MIN_BUSINESS_OBJECT_BATCH_SIZE
Modifier and Type | Method and Description |
---|---|
com.primavera.integration.apiapps.ImportExportProjectsOutput |
exportProjects(com.primavera.integration.apiapps.ImportExportProjectsInput input) |
Object |
getAdminConfigSetting(String name,
Class type) |
JobInfo[] |
getCurrentJobs()
Retrieves job information for any current asynchronous jobs of this user.
|
static DatabaseInstance[] |
getDatabaseInstances(String sUrl)
Retrieves all database instances supported by the server.
|
Map<Object,Object> |
getTemplateMap(String templateId,
String userId) |
byte[] |
getUCMDocument(String uuid,
String version)
Gets the byte array of UCM document.
|
DocumentDetail |
getUCMDocumentDetail(String uuid)
Gets the most recent version of a content repository document.
|
DocumentDetail[] |
getUCMDocumentsRecentVersion(List<String> uuids)
Gets the most recent version of each document.
|
DocumentVersion[] |
getUCMVersionHistory(String uuid)
Gets all the versions of a content repository document.
|
ObjectId |
getUserObjectId()
Gets the user id of the current user.
|
ObjectId |
getUSessionId()
Returns an
ObjectId representation of the usession id |
com.primavera.integration.apiapps.ImportExportProjectsOutput |
importProjects(com.primavera.integration.apiapps.ImportExportProjectsInput input) |
boolean |
isValid()
Verifies if the session is valid.
|
Timestamp |
loadSafetyDate()
Loads the safety date from the database.
|
static Session |
login(String sUrl,
String sDbId,
String sUserName,
String sPassword)
Logs in and obtains a Session object.
|
void |
logout()
Notifies the server that this session is no longer needed and release any resource allocated
for this session.
|
int |
populateUPKLIST(ObjectId epsObjectId) |
int |
removeDeletedObjectsFromBaseline(String boTypeName,
ObjectId origProjectId,
ObjectId blProjectId,
Collection<String> parentActivityIdsToConsider)
Removes certain child objects from a baseline which do not exist in the original project
This method is only supported for local sessions.
|
void |
updateLicense() |
close, fixupWhereClause, getBatchFailOnFirstFlag, getBindParameterLimitOnLoad, getBusinessObjectBatchSize, getDatabaseEncoding, getDatabaseInstanceId, getDatabaseName, getDatabaseType, getDatabaseTypeEnum, getDatabaseUrl, getEnterpriseLoadManager, getGlobalObjectManager, getJobManager, getUserName, isLocalModeAvailable, isRemoteModeAvailable, pagingLoad, setBatchFailOnFirstFlag, setBindParameterLimitOnLoad, setBusinessObjectBatchSize, setExportOption, setIpmDarExportOption
public static DatabaseInstance[] getDatabaseInstances(String sUrl) throws ServerException, NetworkException
sUrl
- identify the location of the serverServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerpublic static Session login(String sUrl, String sDbId, String sUserName, String sPassword) throws ServerException, NetworkException
sUrl
- the location of the serversDbId
- the database instance idsUserName
- the user namesPassword
- the passwordServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerpublic void logout()
public boolean isValid() throws NetworkException
isValid
in class Session
NetworkException
- if a problem occurred in the network layerpublic ObjectId getUserObjectId() throws ServerException, NetworkException
getUserObjectId
in class Session
ServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerpublic ObjectId getUSessionId() throws ServerException, NetworkException
ObjectId
representation of the usession idgetUSessionId
in class Session
ServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerpublic JobInfo[] getCurrentJobs() throws ServerException, NetworkException
ServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerpublic Timestamp loadSafetyDate() throws ServerException, NetworkException
Session
loadSafetyDate
in class Session
ServerException
- when a Server exception occursNetworkException
- when a Network exception occurspublic byte[] getUCMDocument(String uuid, String version) throws Exception
Session
getUCMDocument
in class Session
uuid
- the UCM ID of a document.version
- the version of the document.Exception
- if a problem occurred.public DocumentVersion[] getUCMVersionHistory(String uuid) throws Exception
Session
getUCMVersionHistory
in class Session
uuid
- the ID of a content repository document.Exception
- if a problem occurred.public DocumentDetail[] getUCMDocumentsRecentVersion(List<String> uuids) throws Exception
Session
getUCMDocumentsRecentVersion
in class Session
uuids
- the unique ID of content repository documents.Exception
- if a problem occurred.public DocumentDetail getUCMDocumentDetail(String uuid) throws Exception
Session
getUCMDocumentDetail
in class Session
uuid
- the unique ID of a content repository document.Exception
- if a problem occurred.public com.primavera.integration.apiapps.ImportExportProjectsOutput importProjects(com.primavera.integration.apiapps.ImportExportProjectsInput input) throws Exception
importProjects
in class Session
Exception
public com.primavera.integration.apiapps.ImportExportProjectsOutput exportProjects(com.primavera.integration.apiapps.ImportExportProjectsInput input) throws Exception
exportProjects
in class Session
Exception
public int removeDeletedObjectsFromBaseline(String boTypeName, ObjectId origProjectId, ObjectId blProjectId, Collection<String> parentActivityIdsToConsider) throws ServerException
Session
removeDeletedObjectsFromBaseline
in class Session
boTypeName
- - the type of objects to remove. Supported type names are ["ActivityCodeAssignment", "ActivityUDFValue"]origProjectId
- - ObjectId of original projectblProjectId
- - ObjectId of the baseline projectparentActivityIdsToConsider
- - If non-null, only the child objects owned by these activities will be considered for removalServerException
- if a problem occurred on the server-side, or an unsupported bOTypeName was provided,
or if this method was called from a non-local sessionpublic int populateUPKLIST(ObjectId epsObjectId) throws ServerException, NetworkException
populateUPKLIST
in class Session
ServerException
NetworkException
public Map<Object,Object> getTemplateMap(String templateId, String userId) throws ServerException, NetworkException
getTemplateMap
in class Session
ServerException
NetworkException
public Object getAdminConfigSetting(String name, Class type) throws ServerException, NetworkException
getAdminConfigSetting
in class Session
ServerException
NetworkException
public void updateLicense() throws ServerException, NetworkException
updateLicense
in class Session
ServerException
NetworkException
Copyright © 2003, 2022, Oracle and/or its affiliates.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.