public class LocalSession extends Session implements Serializable
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| Constructor and Description |
|---|
LocalSession() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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, exportProjects, fixupWhereClause, getBatchFailOnFirstFlag, getBindParameterLimitOnLoad, getBusinessObjectBatchSize, getDatabaseEncoding, getDatabaseInstanceId, getDatabaseName, getDatabaseType, getDatabaseTypeEnum, getDatabaseUrl, getEnterpriseLoadManager, getGlobalObjectManager, getJobManager, getUserName, importProjects, isLocalModeAvailable, isRemoteModeAvailable, pagingLoad, setBatchFailOnFirstFlag, setBindParameterLimitOnLoad, setBusinessObjectBatchSize, setExportOption, setIpmDarExportOptionpublic static DatabaseInstance[] getDatabaseInstances(String sUrl) throws ServerException
sUrl - identify the location of the serverServerException - if a problem occurred on the server-sidepublic static Session login(String sUrl, String sDbId, String sUserName, String sPassword) throws ServerException
sUrl - the location of the serversDbId - the database instance idsUserName - the user namesPassword - the passwordServerException - if a problem occurred on the server-sidepublic void logout()
public boolean isValid()
public ObjectId getUserObjectId() throws ServerException
getUserObjectId in class SessionServerException - if a problem occurred on the server-sidepublic ObjectId getUSessionId() throws ServerException
ObjectId representation of the usession idgetUSessionId in class SessionServerException - if a problem occurred on the server-sidepublic 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 JobInfo[] getCurrentJobs() throws ServerException
ServerException - if a problem occurred on the server-sidepublic Timestamp loadSafetyDate() throws ServerException
SessionloadSafetyDate in class SessionServerException - when a Server 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 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.