public class DistributedSession extends Session
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.
|
close, fixupWhereClause, getBatchFailOnFirstFlag, getBindParameterLimitOnLoad, getBusinessObjectBatchSize, getDatabaseEncoding, getDatabaseInstanceId, getDatabaseName, getDatabaseType, getDatabaseTypeEnum, getDatabaseUrl, getEnterpriseLoadManager, getGlobalObjectManager, getJobManager, getUserName, isLocalModeAvailable, isRemoteModeAvailable, pagingLoad, setBatchFailOnFirstFlag, setBindParameterLimitOnLoad, setBusinessObjectBatchSize, setExportOption, setIpmDarExportOptionpublic 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 SessionNetworkException - if a problem occurred in the network layerpublic ObjectId getUserObjectId() throws ServerException, NetworkException
getUserObjectId in class SessionServerException - 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 SessionServerException - 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
SessionloadSafetyDate in class SessionServerException - when a Server exception occursNetworkException - when a Network exception occurspublic byte[] getUCMDocument(String uuid, String version) throws Exception
SessiongetUCMDocument in class Sessionuuid - the UCM ID of a document.version - the version of the document.Exception - if a problem occurred.public DocumentVersion[] getUCMVersionHistory(String uuid) throws Exception
SessiongetUCMVersionHistory in class Sessionuuid - the ID of a content repository document.Exception - if a problem occurred.public DocumentDetail[] getUCMDocumentsRecentVersion(List<String> uuids) throws Exception
SessiongetUCMDocumentsRecentVersion in class Sessionuuids - the unique ID of content repository documents.Exception - if a problem occurred.public DocumentDetail getUCMDocumentDetail(String uuid) throws Exception
SessiongetUCMDocumentDetail in class Sessionuuid - 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 SessionExceptionpublic com.primavera.integration.apiapps.ImportExportProjectsOutput exportProjects(com.primavera.integration.apiapps.ImportExportProjectsInput input)
throws Exception
exportProjects in class SessionExceptionpublic int removeDeletedObjectsFromBaseline(String boTypeName, ObjectId origProjectId, ObjectId blProjectId, Collection<String> parentActivityIdsToConsider) throws ServerException
SessionremoveDeletedObjectsFromBaseline in class SessionboTypeName - - 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 SessionServerExceptionNetworkExceptionpublic Map<Object,Object> getTemplateMap(String templateId, String userId) throws ServerException, NetworkException
getTemplateMap in class SessionServerExceptionNetworkExceptionpublic Object getAdminConfigSetting(String name, Class type) throws ServerException, NetworkException
getAdminConfigSetting in class SessionServerExceptionNetworkExceptionCopyright © 2003, 2021, Oracle and/or its affiliates.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.