Comment the following line in <soapUI installation location>/jre/lib/security/java.security File
jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
jdk.certpath.disabledAlgorithms=MD2, RSA keySize < 1024
import java.io.IOException;
import oracle.stellent.ridc.IdcClient;
import oracle.stellent.ridc.IdcClientException;
import oracle.stellent.ridc.IdcClientManager;
import oracle.stellent.ridc.IdcContext;
import oracle.stellent.ridc.model.DataBinder;
import oracle.stellent.ridc.model.DataObject;
import oracle.stellent.ridc.model.DataResultSet;
import oracle.stellent.ridc.model.serialize.HdaBinderSerializer;
import oracle.stellent.ridc.protocol.ServiceResponse;
public class TestRIDCSearch {
public static void main(String[] args) {
IdcClientManager manager = new IdcClientManager();
try {
IdcClient idcClient = manager.createClient("idc://localhost:4444");
IdcContext userContext = new IdcContext("sysadmin");
HdaBinderSerializer serializer = new HdaBinderSerializer("UTF-8", idcClient.getDataFactory());
DataBinder dataBinder = idcClient.createBinder();
dataBinder.putLocal("IdcService", "GET_SEARCH_RESULTS");
/*The easiest way to figure out the QueryText expected by the content server is to execute the query using the content server search screen
in the native UI and trace that call. Gather full verbose, system audit trace using the following trace sections:
system, requestaudit, searchquery, searchcache
This should be the following output:
>searchquery/6 03.25 14:24:41.285 IdcServer-826 preparedQueryText: ( dDocName `test` dSecurityGroup `Public` dInDate >= `3/25/15 12:00 AM` )*/
/*NOTE: UCM limits the ResultCount value according to the MaxResults configuration setting for Content Server.
* To increase the MaxResults setting, add the setting MaxResults=<integer> in config.cfg*/
dataBinder.putLocal("QueryText", "dDocName `test` dSecurityGroup `Public` dInDate >= `3/25/15 12:00 AM`");
serializer.serializeBinder(System.out, dataBinder);
ServiceResponse response = idcClient.sendRequest(userContext, dataBinder);
DataBinder responseData = response.getResponseAsBinder();
serializer.serializeBinder(System.out, responseData);
DataResultSet resultSet = responseData.getResultSet("SearchResults");
for (DataObject dataObject : resultSet.getRows()) {
System.out.println("Title is: " + dataObject.get("dDocTitle"));
}
} catch (IdcClientException ice) {
ice.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
}
package com.sonal;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
/**
* SEI for a web service that returns the current time as either a string or as
* the elapsed milliseconds from the Unix epoch, midnight January 1, 1970 GMT.
*
* The annotation @WebService signals that this is the SEI (Service Endpoint
* Interface). @WebMethod signals that each method is a service operation.
*
* The @SOAPBinding annotation impacts the under-the-hood construction of the
* service contract, the WSDL (Web Services Definition Language) document.
*/
@WebService
@SOAPBinding(style = Style.DOCUMENT)
public interface TimeServer {
@WebMethod
String getTimeAsString();
@WebMethod
long getTimeAsElapsed();
}
package com.sonal;
import java.util.Date;
import javax.jws.WebService;
/**
* The @WebService property endpointInterface links this SIB (Service
* Implementation Bean) to the SEI (com.sonal.TimeServer). Note that the method
* implementations are not annotated as @WebMethods.
*/
@WebService(endpointInterface = "com.sonal.TimeServer")
public class TimeServerImpl implements TimeServer {
public String getTimeAsString() {
return new Date().toString();
}
public long getTimeAsElapsed() {
return new Date().getTime();
}
}
package com.sonal;
import javax.xml.ws.Endpoint;
/**
* This application publishes the web service whose SIB is
* com.sonal.TimeServerImpl. For now, the service is published at network address
* 127.0.0.1., which is localhost, and at port number 9876, as this port is
* likely available on any desktop machine. The publication path is /ts, an
* arbitrary name.
*
* The Endpoint class has an overloaded publish method. In this two-argument
* version, the first argument is the publication URL as a string and the second
* argument is an instance of the service SIB, in this case
* com.sonal.TimeServerImpl.
*
* The application runs indefinitely, awaiting service requests. It needs to be
* terminated at the command prompt with control-C or the equivalent.
*
* Once the application is started, open a browser to the URL
*
** http://127.0.0.1:9876/ts?wsdl
*
* to view the service contract, the WSDL document. This is an easy test to
* determine whether the service has deployed successfully. If the test
* succeeds, a client then can be executed against the service.
*/
public class TimeServerPublisher {
public static void main(String[] args) {
// 1st argument is the publication URL
// 2nd argument is an SIB instance
Endpoint.publish("http://127.0.0.1:9876/ts", new TimeServerImpl());
}
}
<?xml version="1.0" encoding="UTF-8"?> <!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.4-b01. --> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.4-b01. --> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://sonal.com/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sonal.com/" name="TimeServerImplService"> <types> <xsd:schema> <xsd:import namespace="http://sonal.com/" schemaLocation="http://127.0.0.1:9876/ts?xsd=1" /> </xsd:schema> </types> <message name="getTimeAsString"> <part name="parameters" element="tns:getTimeAsString" /> </message> <message name="getTimeAsStringResponse"> <part name="parameters" element="tns:getTimeAsStringResponse" /> </message> <message name="getTimeAsElapsed"> <part name="parameters" element="tns:getTimeAsElapsed" /> </message> <message name="getTimeAsElapsedResponse"> <part name="parameters" element="tns:getTimeAsElapsedResponse" /> </message> <portType name="TimeServer"> <operation name="getTimeAsString"> <input wsam:Action="http://sonal.com/TimeServer/getTimeAsStringRequest" message="tns:getTimeAsString" /> <output wsam:Action="http://sonal.com/TimeServer/getTimeAsStringResponse" message="tns:getTimeAsStringResponse" /> </operation> <operation name="getTimeAsElapsed"> <input wsam:Action="http://sonal.com/TimeServer/getTimeAsElapsedRequest" message="tns:getTimeAsElapsed" /> <output wsam:Action="http://sonal.com/TimeServer/getTimeAsElapsedResponse" message="tns:getTimeAsElapsedResponse" /> </operation> </portType> <binding name="TimeServerImplPortBinding" type="tns:TimeServer"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <operation name="getTimeAsString"> <soap:operation soapAction="" /> <input> <soap:body use="literal" /> </input> <output> <soap:body use="literal" /> </output> </operation> <operation name="getTimeAsElapsed"> <soap:operation soapAction="" /> <input> <soap:body use="literal" /> </input> <output> <soap:body use="literal" /> </output> </operation> </binding> <service name="TimeServerImplService"> <port name="TimeServerImplPort" binding="tns:TimeServerImplPortBinding"> <soap:address location="http://127.0.0.1:9876/ts" /> </port> </service> </definitions>
package com.sonal;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import java.net.URL;
class TimeClient {
public static void main(String args[]) throws Exception {
URL url = new URL("http://localhost:9876/ts?wsdl");
// Qualified name of the service:
// 1st arg is the service URI
// 2nd is the service name published in the WSDL
QName qname = new QName("http://sonal.com/", "TimeServerImplService");
// Create, in effect, a factory for the service.
Service service = Service.create(url, qname);
// Extract the endpoint interface, the service "port".
TimeServer port = service.getPort(TimeServer.class);
System.out.println(port.getTimeAsString());
System.out.println(port.getTimeAsElapsed());
}
}
C:\Users\sonal_chaudhary>cd C:\Oracle\Oracle_ECM1\oui\bin\
C:\Oracle\Oracle_ECM1\oui\bin>setup.exe -deinstall -ignoreSysPrereqs -jreLoc C:\Java\jre7
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class Main {
private static final String SOURCE_FILE = "D:\\test.jar";
public static void main(String[] args) {
Main io = new Main();
try {
long startTime = System.currentTimeMillis();
io.readWrite(SOURCE_FILE, "D:\\test1.jar");
long endTime = System.currentTimeMillis();
System.out.println("Time taken for reading and writing using default behaviour : " + (endTime - startTime) +
" milli seconds");
long startTime1 = System.currentTimeMillis();
io.readWriteBuffer(SOURCE_FILE, "D:\\test2.jar");
long endTime1 = System.currentTimeMillis();
System.out.println("Time taken for reading and writing using buffered streams : " +
(endTime1 - startTime1) + " milli seconds");
long startTime2 = System.currentTimeMillis();
io.readWriteArray(SOURCE_FILE, "D:\\test3.jar");
long endTime2 = System.currentTimeMillis();
System.out.println("Time taken for reading and writing using custom buffering : " +
(endTime2 - startTime2) + " milli seconds");
} catch (IOException e) {
e.printStackTrace();
}
}
public static void readWrite(String fileFrom, String fileTo) throws IOException {
InputStream in = null;
OutputStream out = null;
try {
in = new FileInputStream(fileFrom);
out = new FileOutputStream(fileTo);
while (true) {
int bytedata = in.read();
if (bytedata == -1)
break;
out.write(bytedata);
}
} finally {
if (in != null)
in.close();
if (out != null)
out.close();
}
}
public static void readWriteBuffer(String fileFrom, String fileTo) throws IOException {
InputStream inBuffer = null;
OutputStream outBuffer = null;
try {
InputStream in = new FileInputStream(fileFrom);
inBuffer = new BufferedInputStream(in);
OutputStream out = new FileOutputStream(fileTo);
outBuffer = new BufferedOutputStream(out);
while (true) {
int bytedata = inBuffer.read();
if (bytedata == -1)
break;
out.write(bytedata);
}
} finally {
if (inBuffer != null)
inBuffer.close();
if (outBuffer != null)
outBuffer.close();
}
}
public static void readWriteArray(String fileFrom, String fileTo) throws IOException {
InputStream in = null;
OutputStream out = null;
try {
in = new FileInputStream(fileFrom);
out = new FileOutputStream(fileTo);
int availableLength = in.available();
byte[] totalBytes = new byte[availableLength];
int bytedata = in.read(totalBytes);
out.write(totalBytes);
} finally {
if (in != null)
in.close();
if (out != null)
out.close();
}
}
}
OUTPUT
Time taken for reading and writing using default behaviour : 5188 milli seconds
Time taken for reading and writing using buffered streams : 3105 milli seconds
Time taken for reading and writing using custom buffering : 7 milli seconds
import java.io.FileOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import java.util.Set;
public class PropertiesTest {
public static void main(String[] args) {
Properties table = new Properties();
// set properties
table.setProperty("color", "blue");
table.setProperty("width", "200");
System.out.println("After setting properties");
listProperties(table);
// replace property value
table.setProperty("color", "red");
System.out.println("After replacing properties");
listProperties(table);
saveProperties(table);
table.clear(); // empty table
System.out.println("After clearing properties");
listProperties(table);
loadProperties(table);
// get value of property color
Object value = table.getProperty("color");
// check if value is in table
if (value != null)
System.out.printf("Property color's value is %s%n", value);
else
System.out.println("Property color is not in table");
}
// save properties to a file
private static void saveProperties(Properties props) {
// save contents of table
try {
FileOutputStream output = new FileOutputStream("props.dat");
props.store(output, "Sample Properties"); // save properties
output.close();
System.out.println("After saving properties");
listProperties(props);
} catch (IOException ioException) {
ioException.printStackTrace();
}
}
// load properties from a file
private static void loadProperties(Properties props) {
// load contents of table
try {
FileInputStream input = new FileInputStream("props.dat");
props.load(input); // load properties
input.close();
System.out.println("After loading properties");
listProperties(props);
} catch (IOException ioException) {
ioException.printStackTrace();
}
}
// output property values
private static void listProperties(Properties props) {
Set<object> keys = props.keySet(); // get property names
// output name/value pairs
for (Object key : keys)
System.out.printf("%s\t%s%n", key, props.getProperty((String)key));
System.out.println();
}
}
OUTPUT
After setting properties
color blue
width 200
After replacing properties
color red
width 200
After saving properties
color red
width 200
After clearing properties
After loading properties
color red
width 200
Property color's value is red
src.dir=src
classes.dir=classes
main-class=com.mypkg.PortfolioManager
lib.dir=lib
docs.dir=docs
projectName=AntTutorial
<?xml version="1.0" encoding="windows-1252" ?>
<!--Ant buildfile generated by Oracle JDeveloper-->
<!--Generated Apr 20, 2015 4:09:46 PM-->
<project xmlns="antlib:org.apache.tools.ant" name="Project" default="all" basedir=".">
<property file="build.properties"/>
<target name="clean">
<delete dir="${classes.dir}"/>
<delete dir="${docs.dir}"/>
</target>
<target name="init">
<mkdir dir="${classes.dir}"/>
<!--<mkdir dir="${docs.dir}"/>-->
</target>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>
<target name="compile" depends="init">
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath"/>
</target>
<!--<target name="docs" depends="compile">
<javadoc packagenames="src" sourcepath="${src.dir}" destdir="${docs.dir}">
<fileset dir="${src.dir}">
<include name="**" />
</fileset>
</javadoc>
</target>-->
<target name="jar" depends="compile">
<jar destfile="${projectName}.jar" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
</jar>
</target>
<target name="main" depends="clean,compile,jar"/>
</project>
public class Vehicle {
public void move() {
System.out.println("Vehicles can move!");
}
}
class MotorBike extends Vehicle{
public void move(){
System.out.println("MotorBike can move and accelerate too!");
}
}
class Test{
public static void main(String[] args) {
Vehicle vh = new MotorBike();
vh.move(); // prints MotorBike can move and accelerate too!
vh = new Vehicle();
vh.move(); // prints Vehicles can move!
}
}
public interface Language {
String getBirthday();
String getGreeting();
}
public class Indonesian implements Language {
public String getBirthday() {
return "Selamat Ulang Tahun";
}
public String getGreeting() {
return "Apa kabar?";
}
}
public class English implements Language {
public String getBirthday() {
return "Happy Birthday";
}
public String getGreeting() {
return "How are you?";
}
}
public class LanguageDemo {
public static void main(String[] args) {
Language language = new English();
System.out.println(language.getBirthday());
System.out.println(language.getGreeting());
language = new Indonesian();
System.out.println(language.getBirthday());
System.out.println(language.getGreeting());
}
}
OUTPUT:
Happy Birthday
How are you?
Selamat Ulang Tahun
Apa kabar?
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.file.FileSystems;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.SimpleFileVisitor;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
import java.util.List;
public class ProcyonDecompiler {
private static String JAR_DIRECTORY = "C:\\ucm";
private static String DECOMPILER_FILEPATH = "lib/procyon-decompiler-0.5.29.jar";
private static List<Path> fileList = new ArrayList<Path>();
public static void main(String[] args) throws IOException, InterruptedException {
walkDirectory();
for (int i = 0; i < fileList.size(); i++) {
Path absolutePath = fileList.get(i).toAbsolutePath();
Path parentPath = fileList.get(i).getParent();
Path fileName = fileList.get(i).getFileName();
executeJarFile(absolutePath.toString(), parentPath.toString(), trimFileExtension(fileName.toString()));
}
}
private static void executeJarFile(String absolutePath, String parentPath, String filename) throws IOException,
InterruptedException {
ProcessBuilder pb =
new ProcessBuilder("java", "-jar", DECOMPILER_FILEPATH, "-jar", absolutePath, "-o",
parentPath + File.separator + filename);
Process p = pb.start();
BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
String s = "";
while ((s = in.readLine()) != null) {
System.out.println(s);
}
int status = p.waitFor();
System.out.println("Exited with status: " + status);
}
private static String trimFileExtension(String filename) {
int pos = filename.lastIndexOf(".");
if (pos > 0) {
filename = filename.substring(0, pos);
}
return filename;
}
public static void walkDirectory() throws IOException {
Path start = FileSystems.getDefault().getPath(JAR_DIRECTORY);
Files.walkFileTree(start, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (file.toString().endsWith(".jar")) {
//System.out.println(file);
fileList.add(file);
}
return FileVisitResult.CONTINUE;
}
});
}
}
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
public class UnzipJar {
private static final String JAR_PATH = "D:\\test\\Java_gpl_v1.04.jar";
public static void unzipJarFile(Path jar) throws IOException {
if (!Files.exists(jar))
return;
String fnJar = jar.getFileName().toString();
String fn = fnJar.substring(0, fnJar.lastIndexOf(".jar"));
System.out.println(fnJar + " " + fn);
Path dst = jar.getParent().resolve(fn);
Files.createDirectory(dst);
JarFile jf = new JarFile(jar.toString());
//create directory
for (Enumeration<JarEntry> enums = jf.entries(); enums.hasMoreElements();) {
JarEntry entry = enums.nextElement();
if (entry.isDirectory()) {
Files.createDirectories(dst.resolve(entry.getName()));
}
}
//copy file
for (Enumeration<JarEntry> enums = jf.entries(); enums.hasMoreElements();) {
JarEntry entry = enums.nextElement();
if (!entry.isDirectory()) {
Files.copy(jf.getInputStream(entry), dst.resolve(entry.getName()), StandardCopyOption.REPLACE_EXISTING);
}
}
}
public static void main(String[] args) throws IOException {
unzipJarFile(Paths.get(JAR_PATH));
}
}
webViewableFile=<source file>.<source file extension>
webViewableFile:path=<source file path>/<source file>.<source file extension>
dWebExtension=<source file extension>
IdcService=CHECKIN_NEW
primaryFile=/tmp/AutoArchive.doc
dDocType=TEST
dDocTitle=TEST PASSTHRU 15
dSecurityGroup=Public
dDocAccount=Account1
dDocAuthor=pjolson
webViewableFile=AutoArchive.doc
webViewableFilePath=/tmp/AutoArchive.doc
dWebExtension=doc
xStorageRule=JDBC_Storage_Webless
<>
&SortSpec=<Field> <ASC or DESC>, <Field> <ASC or DESC>
&SortSpec=sddDocTitle ASC,sddDocName ASC,dInDate DESC
requestBinder.putLocal("SortSpec","sddDocName ASC, dInDate DESC");
set long 2000000
set pages 0
set heading off
set feedback off
spool /tmp/outputfile.txt
select ctx_report.create_index_script('<Active Index>') from dual;
spool off
UPDATE USERS SET DPASSWORD='welcome1' WHERE DNAME='sysadmin';
UPDATE USERS SET DPASSWORDENCODING='' WHERE DNAME='sysadmin';
<?hda version="5.1.1 (build011203)" jcharset=Cp1252 encoding=iso-8859-1?>
#Full Collection Rebuild
@Properties LocalData
IdcService=CONTROL_SEARCH_INDEX
cycleID=rebuild
action=start
getStatus=1
fastRebuild=0
GetCurrentIndexingStatus=1
PerformProcessConversion=1
@end
<<EOF>>
IdcCommand -f C:\Work\indexer.hda -u sysadmin -l C:\Work\indexer.log
IdcCommandServerHost=10.141.107.1 or IdcCommandServerHost=localhost
<ucm-install>/search/ots1/bulkload/~export
<?hda version="10.1.3.5.1 (111229)" jcharset=UTF8 encoding=utf-8?>
@Properties LocalData
OutputCharacterSet=utf8
blFieldTypes=
FallbackFormat=fi_unicode
InputFilePath=C:\Users\sonal\Downloads\pdf.pdf
blDateFormat=M/d/yy {h:mm[:ss] {aa}[zzz]}!mAM,PM!tAmerica/Chicago
@end
C:\Oracle\Oracle_ECM1\oit\win32\lib\contentaccess\textexport.exe -c C:\testfile.hda -f C:\finaltextfile.txt
IndexVaultFile=true
NOTE: IndexVaultFile=true was replaced with UseNativeFormatInIndex=true. Either of these configuration settings will force the indexer to index the native file.IndexVaultExclusionWildcardFormats=*/hcs*|*/ttp|*/xsl|*/wml|*template*|*/jsp*|*/gif|*/png|*/pdf|*/doc*|*/msword|*/*ms-excel|text/plain
TextExtractorTimeoutInSec=60
IndexerTextExtractionGuardTimeout=60
MaxIndexableFileSize=20971520
TextIndexerFilterFormats=pdf,msword,ms-word,doc*,ms-excel,xls*,ms-powerpoint,powerpoint,ppt*,rtf,xml,msg,zip
binder.putLocal("IdcService", "FLD_DELETE")
// Deleting a folder. Use any of the 2 ways below
binder.putLocal("item1", "fFolderGUID:69A93E7E99FA46CC35CBCEA0E1B9F8DB")
// binder.putLocal("item1", "path:/Enterprise Libraries/My Library/Folder2")
// Deleting a file. Use any of the 2 ways below
binder.putLocal("item2", "fFileGUID:8F9E18BB9D8609A0E07F391C8A3737F4")
//binder.putLocal("item2", "path:/Enterprise Libraries/My Library/Folder4/file1.txt")
public class CheckinFrameworkRIDC {
public static void main(String[] args) {
IdcClientManager manager = new IdcClientManager();
try {
// Creating a new IdcClient Connection using idc protocol
//IdcClient idcClient = manager.createClient("idc://localhost:4444");
//IdcContext userContext = new IdcContext("sysadmin");
// Creating a new IdcClient Connection using HTTP protocol
IdcClient idcClient = manager.createClient("http://localhost:16200/cs/idcplg");
IdcContext userContext = new IdcContext("weblogic", "welcome1");
HdaBinderSerializer serializer = new HdaBinderSerializer("UTF-8", idcClient.getDataFactory());
DataBinder dataBinder = idcClient.createBinder();
dataBinder.putLocal("IdcService", "CHECKIN_NEW");
dataBinder.putLocal("dDocTitle", "Framework Folder Testing");
dataBinder.putLocal("dDocType", "Document");
dataBinder.putLocal("dSecurityGroup", "Public");
dataBinder.addFile("primaryFile", new File("C:\\samplefile.txt"));
dataBinder.putLocal("doFileCopy", "true");
dataBinder.putLocal("dDocAuthor", "weblogic");
// Either fParentGUID or parentFolderPath/fParentPath needs to be passed. Meatadata defaults are copied from the folder except SecurityGroup and Account
//dataBinder.putLocal("fParentGUID", "5B0AC7C33BF951078772DFF757535B99");
dataBinder.putLocal("fParentPath", "/Contribution Folders/ElPiju/Straw Bale/resources");
serializer.serializeBinder(System.out, dataBinder);
ServiceResponse response = idcClient.sendRequest(userContext, dataBinder);
DataBinder responseData = response.getResponseAsBinder();
serializer.serializeBinder(System.out, responseData);
} catch (IdcClientException ice) {
ice.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
}
}
}
SELECT ffileguid, ffilename, ddocname FROM folderfiles WHERE fparentguid='94B2FCB3A3D15A27E96B927CA80A3BD7';
SELECT ffolderguid, ffoldername FROM folderfolders WHERE fparentguid='94B2FCB3A3D15A27E96B927CA80A3BD7';
`BC` <contains> xDepartment
WebCenter Sites | The base application for web experience and content management |
WebCenter Sites: Community | Management of user-generated content, such as comments, ratings, and polling |
WebCenter Sites: Gadgets | Management of gadgets for use on websites such as iGoogle |
WebCenter Sites: Engage | Management of segments and strategic marketing tools |
Content Connectors | For integration with other source repository systems, such as WebCenter Content, Documentum, Sharepoint, or file systems |
WebCenter Sites: Analytics | Reporting of website content usage |
Remote Satellite Server | Edge caching application for larger-scale deployments |
//Managed Attachments parameters - these 3 trip the AppAdpater filter so that the content item is attached via insert to the AFObjects table.
dataBinder.putLocal("dAFApplication", "EBS_instanceA");
dataBinder.putLocal("dAFBusinessObjectType", "REQ_HEADERS");
dataBinder.putLocal("dAFBusinessObject", "181152");
requestaudit/6 10.26 17:09:44.854 IdcServer-7165:
CHECKIN_NEW [dID=8512][dDocName=UCM008514][dDocTitle=test][dUser=sysadmin][dSecurityGroup=AFDocuments][QueryText=dAFBusinessObjectType<matches>`PER_PEOPLE_F` <AND> dAFBusinessObject<matches>`6429` <AND> dAFApplication<matches>`EBS_instanceA`][xCollectionID=0][StatusCode=0][StatusMessage=Successfully checked in content item 'UCM008514'.] 0.16578499972820282(secs)
DECLARE
my_entity VARCHAR2(255) := 'your_ebsentity'; --example: AP_INVOICES
my_formfunction VARCHAR2(255) := 'your_formfunction'; --example: AP_APXINWKB
my_datablockname VARCHAR2(255) := 'your_forms_datablock_name'; --example: INV_SUM_FOLDER
my_fieldname VARCHAR2(255) := 'your_datablock_fieldname'; --example: INVOICE_ID
v_formId AXF_CONFIGS.FORMID%TYPE;
v_eventId AXF_COMMANDS.EVENTID%TYPE;
v_solutionendpoint AXF_CONFIGS.SOLUTIONENDPOINT%TYPE;
BEGIN
select AXF_CONFIGS_SEQ.NEXTVAL into v_formId from dual;
select SOLUTIONENDPOINT into v_solutionendpoint from AXF_CONFIGS where formfunction='AXF_MANAGED_ATTACHMENTS';
Insert into AXF_CONFIGS (FORMID,FORMFUNCTION,SOLUTIONENDPOINT,ENTITYNAME,LOGENABLED,DATABLOCKNAME,CREATED_BY,CREATION_DATE,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN) values (v_formId,my_formfunction,v_solutionendpoint,null,'YES','AXF_DEFAULT',0,sysdate,sysdate,0,0);
select AXF_COMMANDS_SEQ.NEXTVAL into v_eventId from dual;
Insert into AXF_COMMANDS (EVENTID,FORMID,EVENTNAME,DISPLAYMENU,COMMANDNAMESPACE,REQUIRESCONVERSATION,SORTBY,SOLUTIONNAMESPACE,MENUTYPE,SPECIAL,RESPONSIBILITY,CREATED_BY,CREATION_DATE,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN) values (v_eventId,v_formId,'ZOOM','Managed Attachments','UCM_Managed_Attachments','NO',3,'UCM_Managed_Attachments','ZOOM',null,null,0,sysdate,sysdate,0,0);
Insert into AXF_COMMAND_PARAMETERS (PARAMETERID,EVENTID,PARAMETERNAME,DATASOURCENAME,DATABLOCKNAME,FIELDNAME,CONSTANTVALUE,CREATED_BY,CREATION_DATE,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN) values (AXF_COMMAND_PARAMETERS_SEQ.NEXTVAL,v_eventId,'application','CONSTANT',null,null,'EBS_instanceA',0,sysdate,sysdate,0,0);
Insert into AXF_COMMAND_PARAMETERS (PARAMETERID,EVENTID,PARAMETERNAME,DATASOURCENAME,DATABLOCKNAME,FIELDNAME,CONSTANTVALUE,CREATED_BY,CREATION_DATE,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN) values (AXF_COMMAND_PARAMETERS_SEQ.NEXTVAL,v_eventId,'businessObjectType','CONSTANT',null,null,my_entity,0,sysdate,sysdate,0,0);
Insert into AXF_COMMAND_PARAMETERS (PARAMETERID,EVENTID,PARAMETERNAME,DATASOURCENAME,DATABLOCKNAME,FIELDNAME,CONSTANTVALUE,CREATED_BY,CREATION_DATE,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN) values (AXF_COMMAND_PARAMETERS_SEQ.NEXTVAL,v_eventId,'businessObjectKey1','CONSTANT',null,null,my_datablockname||'.'||my_fieldname,0,sysdate,sysdate,0,0);
Insert into AXF_COMMAND_PARAMETERS (PARAMETERID,EVENTID,PARAMETERNAME,DATASOURCENAME,DATABLOCKNAME,FIELDNAME,CONSTANTVALUE,CREATED_BY,CREATION_DATE,LAST_UPDATE_DATE,LAST_UPDATED_BY,LAST_UPDATE_LOGIN) values (AXF_COMMAND_PARAMETERS_SEQ.NEXTVAL,v_eventId,'businessObjectValue1','DATA',my_datablockname,my_fieldname,null,0,sysdate,sysdate,0,0);
END;
/