/** * Get a List of object bodies of a retrieved List of COM objects from the * Archive * * @param archiveService The Archive * @param objType The object Type of the COM object * @param domain The domain of the COM object * @param objIds The List of object instance identifiers of the COM object * @return The List of object bodies of the retrieved COM objects */ public static ElementList getObjectBodyListFromArchive(Object archiveService, final ObjectType objType, final IdentifierList domain, final LongList objIds) { return (ElementList) getFromArchive(archiveService, objType, domain, objIds, ToBeReturned.OBJECT_BODY); }
/** * Get the ArchiveDetails object of a retrieved COM object from the Archive * * @param archiveService The Archive * @param objType The object Type of the COM object * @param domain The domain of the COM object * @param objIds The List of object instance identifiers of the COM objects * @return The list of ArchiveDetails objects of the retrieved COM objects */ public static ArchiveDetailsList getArchiveDetailsListFromArchive(Object archiveService, final ObjectType objType, final IdentifierList domain, final LongList objIds) { return (ArchiveDetailsList) getFromArchive( archiveService, objType, domain, objIds, ToBeReturned.ARCHIVE_DETAILS); }
/** * Retrieve a list of COM objects from the Archive * * @param archiveService The Archive * @param objType The object Type of the COM object * @param domain The domain of the COM object * @param objIds The List of object instance identifiers of the COM objects * to be retrieved * @return The list of COM objects */ public static List<ArchivePersistenceObject> getArchiveCOMObjectList(Object archiveService, final ObjectType objType, final IdentifierList domain, final LongList objIds) { return (List<ArchivePersistenceObject>) getFromArchive( archiveService, objType, domain, objIds, ToBeReturned.COM_OBJECT ); }
/** * Retrieved a COM object from the Archive * * @param archiveService The Archive * @param objType The object Type of the COM object * @param domain The domain of the COM object * @param objId The object instance identifier of the COM object to be * retrieved * @return The COM object */ public static ArchivePersistenceObject getArchiveCOMObject(Object archiveService, final ObjectType objType, final IdentifierList domain, final Long objId) { LongList objIds = new LongList(); objIds.add(objId); List<ArchivePersistenceObject> archiveCOMobjectList = (List<ArchivePersistenceObject>) getFromArchive( archiveService, objType, domain, objIds, ToBeReturned.COM_OBJECT ); if (archiveCOMobjectList == null) { return null; } return archiveCOMobjectList.get(0); }
/** * Get the ArchiveDetails object of a retrieved COM object from the Archive * * @param archiveService The Archive * @param objType The object Type of the COM object * @param domain The domain of the COM object * @param objId The object instance identifier of the COM object * @return The ArchiveDetails object of the retrieved COM objects */ public static ArchiveDetails getArchiveDetailsFromArchive(Object archiveService, final ObjectType objType, final IdentifierList domain, final Long objId) { final LongList objIds = new LongList(); objIds.add(objId); final ArchiveDetailsList archiveDetailsList = (ArchiveDetailsList) getFromArchive(archiveService, objType, domain, objIds, ToBeReturned.ARCHIVE_DETAILS); return archiveDetailsList.get(0); }
/** * Get the object body of a retrieved COM object from the Archive * * @param archiveService The Archive * @param objType The object Type of the COM object * @param domain The domain of the COM object * @param objId The object instance identifier of the COM object * @return The object body of the retrieved COM object */ public static Element getObjectBodyFromArchive(final Object archiveService, final ObjectType objType, final IdentifierList domain, final Long objId) { final LongList objIds = new LongList(); objIds.add(objId); final ElementList objs = (ElementList) getFromArchive( archiveService, objType, domain, objIds, ToBeReturned.OBJECT_BODY ); return (objs != null) ? (Element) objs.get(0) : null; /* if (objs != null) { return (Element) objs.get(0); } else { return null; } */ }