Category Archives: webcenter

UCM connection to a file from Java


Here is the snippet to connect to UCM from java


// create the IDC Client Manager manager
IdcClientManager manager = new IdcClientManager();

// build a client that will communicate using the HTTP protocol
IdcClient idcClient;

try {
//context with ucm username and password
IdcContext user = new IdcContext ("webadmin", "passw0rd");
//ucm link
idcClient = manager.createClient("idc://ucmwebcenterqa01.group.com:4444");

// get the binder
DataBinder binder = idcClient.createBinder();

// populate the binder with the parameters
binder.putLocal ("IdcService", "GET_FILE");
binder.putLocal("dDocName", "UCM_CLUSTER1001204");
binder.putLocal("RevisionSelectionMethod", "Latest");

try {
ServiceResponse response = idcClient.sendRequest (user, binder);

// get the response as a string
String responseString = response.getResponseAsString ();
//dispaly the content of the file
System.out.println ("" + responseString);

} catch (IdcClientException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} catch (IdcClientException e) {
e.printStackTrace();
}
}

Advertisements

persdef error


When you ever get this error

Then go to adf-config.xml and then remove the mdsC:adf-mds-config entry completely.

The content of the tag goes like this


<mdsC:adf-mds-config version="11.1.1.000">

<mds-config xmlns="http://xmlns.oracle.com/mds/config">

<persistence-config>

<metadata-namespaces>

persdef/"

metadata-store-usage="WebCenterFileMetadataStore"/>

</metadata-namespaces>

<metadata-store-usages>

<metadata-store-usage id="WebCenterFileMetadataStore"

default-cust-store="true" deploy-target="true">

<metadata-store class-name="oracle.mds.dt.persistence.stores.file.SrcControlFileMetadataStore">

<property name="metadata-path" value="../../mds"/>

</metadata-store>

</metadata-store-usage>

</metadata-store-usages>

</persistence-config>

<cust-config>

<match>

<customization-class name="oracle.adf.share.config.SiteCC"/>

</match>

</cust-config>

<cache-config>

<max-size-kb>100000</max-size-kb>

</cache-config>

</mds-config>

<!--<span class="hiddenSpellError" pre=""-->mdsC:adf-mds-config>

Iterative Development – Webcenter


Ho to enable Iterative Development in Web-center?

Iterative Development helps the developer to see the changes by just a refresh of the page in the integrated Server.

This makes the portal application development easy and rapid development.

Disadvantages of enabling this is that the application will run slowly as all the performance optimization settings will all be disabled. The ‘Delete Customization Before every run‘ is to be checked if we plan to enable the iterative Development option.

Started my New Video Blog


I am happy to say that I have started a new Video blog at

http://middlewareknight.blogspot.com/

Webcenter – How to create a Space


In this post i will quickly help you how to create a group space.

What is a Space?

WebCenter Spaces provides the Spaces, which bring content together through a single access, accessible through the WebCenter Spaces application of by direct URL, to help groups of people to share information and interact in a collaborative fashion.

Example of Spaces?

  • Large Company intranet with multiple departments like HR, Finance, Administration etc
  • Internet Groups that share common interest

How to create a space in Webcenter Spaces?

When you login to the spaces the application looks like the following screenshot. You have to click on the Spaces tab to view all available spaces.

To Create the space , you will have to click on the Create Space link that is marked to open a dialog to create the space. The Name, Description and the Keywords are entered to create a space. Adding keywords will help to find your space  from the available spaces.

The next section will allow you to provide the URL for your space. You can also set your access level in this section. You can make the space visible to anyone by making it Public or set an invitation based access with the Private access. Keeping it hidden makes your space not visible to others and will not appear in the search results also.

The final step is to choose the template that your spaces is targeted for. There are 6 templates available for you to choose from the option.

Hope this post helps you to know about Spaces and to create it using webcenter.

 

useful webcenter resources


http://www.oracle.com/pls/as111120/vbook_subject?subject=wc

http://download.oracle.com/docs/cd/E21764_01/webcenter.htm

http://yonaweb.be/

Webcenter Services at a glance


AnalyticsGoogle Analytics – shows analytics for the personal site

AnnouncementsGoogle calendar announcement about the birthdays and anniversary

BlogBlogspot for blogging

DiscussionsForums to discuss anything

DocumentsGoogle Docs for content management

EventsGoogle calendar to mark events

Instant Messaging and PresenceGtalk for messaging

LinksGoogle bookmarks for storing links

ListsListing of ongoing/pending tasks

MailGMail

NotesGoogle Notes

NotificationsFacebook posting on walls

People connectionsFacebook

PollsFacebook polling for suggestions

PersonalizationsiGoogle to personalize home page

Recent ActivitiesFacebook activities

Activity GraphGoogle site statistics

RSSBlog feed for updates

SearchGoogle search

TagsPicasa photo tags

WikiWikipedia for informations

WorkListstodo lists for daily Agenda