Oracle Fusion Middleware has released a new tutorial for the new version of Oracle Webcenter (11.1.1.4) which introduce users to the Webcenter Portal Framework for developers.
The tutorial covers the main features:
1) Create a web application through jDeveloper 11g
2) Modify Page Templates and Skins
3) Changing the look & feel of the application
4) Consume content from an external repository (Oracle UCM)
5) Pages permissions and runtime content editing with Oracle Composer
Tips and troubleshoot:
jDeveloper: How to deploy an application to an external WebLogic Server
jDeveloper: Connecting UCM as a repository
Setting permissions between Oracle UCM and Webcenter Spaces
Downloads:
Tutorial Content Materials
Tutorial:
Go Green, Eat Fresh
2011/02/18
2011/02/14
Setting permissions between Oracle UCM and Webcenter Spaces
Web applications usually consume dynamic content from the Content Server to enrich the website. In a Webcenter application, the task flow Content Presenter allows your web application to display documents from Oracle UCM (or other repositories) using the advantages that UCM provides: document conversions, workflow revisions or security layer.
This last one is a important point to take care because the web application's security permissions will be based on the configuration between the Content Server and Webcenter. For this reason, a summary of how to check and troubleshoot your configuration is explained in the section below:
In the example, you are going to grant write permission to user Bob who is a contributor in the web application and has the role PersonalSpacesRole. This role is defined for users who will interact with the Content Server. You are going to grant permissions to any folder created with security group "public".
You can follow the official documentation to create these users, roles and security groups: http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e12405/wcadm_documents.htm#CIHFHAAD
Step-by-step:
1) Login to the Content Server as an administrator user
2) In the administration tab, open Admin Applets
3) Click on User Admin
4) Click on Security menu and select Permissions by Role option
5) Select the webcenter user role (in the example PersonalSpacesRole) and select the security group you want to grant permissions (in the example Public)
6) Click on Edit Permissions button and update the values.
7) Now, all the users with the PersonalSpacesRole should be able to edit documents in any Public folder
Documentation:
Oracle's official documentation for UCM 11g
Oracle's official documentation for Webcenter Spaces
Downloads:
Oracle UCM 11g
Oracle Webcenter 11g
This last one is a important point to take care because the web application's security permissions will be based on the configuration between the Content Server and Webcenter. For this reason, a summary of how to check and troubleshoot your configuration is explained in the section below:
In the example, you are going to grant write permission to user Bob who is a contributor in the web application and has the role PersonalSpacesRole. This role is defined for users who will interact with the Content Server. You are going to grant permissions to any folder created with security group "public".
You can follow the official documentation to create these users, roles and security groups: http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e12405/wcadm_documents.htm#CIHFHAAD
Step-by-step:
1) Login to the Content Server as an administrator user
2) In the administration tab, open Admin Applets
3) Click on User Admin
4) Click on Security menu and select Permissions by Role option
5) Select the webcenter user role (in the example PersonalSpacesRole) and select the security group you want to grant permissions (in the example Public)
6) Click on Edit Permissions button and update the values.
7) Now, all the users with the PersonalSpacesRole should be able to edit documents in any Public folder
Documentation:
Oracle's official documentation for UCM 11g
Oracle's official documentation for Webcenter Spaces
Downloads:
Oracle UCM 11g
Oracle Webcenter 11g
Etiquetas:
jdeveloper,
oracle,
permissions,
roles,
security,
UCM,
webcenter,
website
jDeveloper: Connecting UCM as a repository
During the development of a web application is important to provide contents to enrich the portal. Using Oracle jDeveloper 11g you can easily create a connection to any content repository which will allow you to navigate it and contribute the application with information stored in it.
In this example, you are going to create a connection with Oracle UCM as a main repository and the video will show how to troubleshoot some connection errors by checking the connection parameters like the RIDC socket type, hostname or listening port...
Documentation:
Oracle's official documentation for jDeveloper 11g
Downloads:
Oracle jDeveloper 11g
Viewlet:
(Duration: 2 min.)
In this example, you are going to create a connection with Oracle UCM as a main repository and the video will show how to troubleshoot some connection errors by checking the connection parameters like the RIDC socket type, hostname or listening port...
Documentation:
Oracle's official documentation for jDeveloper 11g
Downloads:
Oracle jDeveloper 11g
Viewlet:
(Duration: 2 min.)
Etiquetas:
11g,
contents,
jdeveloper,
middleware,
oracle,
repository,
UCM
2011/02/10
jDeveloper: How to deploy an application to an external WebLogic Server
Oracle jDeveloper has an integrated WebLogic Server to test and debug applications locally, but you can also deploy it to an external server. To do this, you must create a connection with a WebLogic domain and a deployment profile as the viewlet shows below.
Documentation:
Oracle's official documentation for jDeveloper 11g
Downloads:
Oracle jDeveloper 11g
Viewlet:
(Duration: 2 min.)
Documentation:
Oracle's official documentation for jDeveloper 11g
Downloads:
Oracle jDeveloper 11g
Viewlet:
(Duration: 2 min.)
Etiquetas:
deploy,
deployment profile,
howto,
jdeveloper,
middleware,
oracle,
tutorial,
weblogic,
weblogic server
2011/02/09
UCM: Managing video conversions and filters with FlipFactory
As you know, Oracle Universal Content Management (UCM) allows you to store video files and transform them into other video file with different format and resolution. Through the FlipFactory admin console, a 3rd party conversion module, you can configure new conversion types where you can choose the output extension, resolution,... or apply filters like text overlay, saturation, noise reduction...
At the end of this post, you can follow a viewlet explaining the needed steps to configure the Content Server to provide a new conversion type, in this example, a new conversion with .avi output file with a watermark filter.
Documentation:
Oracle's official documentation for UCM 11g
Downloads:
Oracle ECM suite 11g
Viewlet:
(Duration: 4 min.)
At the end of this post, you can follow a viewlet explaining the needed steps to configure the Content Server to provide a new conversion type, in this example, a new conversion with .avi output file with a watermark filter.
Documentation:
Oracle's official documentation for UCM 11g
Downloads:
Oracle ECM suite 11g
Viewlet:
(Duration: 4 min.)
Etiquetas:
conversion,
filter,
flipfactory,
format,
howto,
middleware,
oracle,
tutorial,
UCM,
video,
watermark
2011/02/04
How to delete files older than X days in Windows Batch
In this entry I will explain how to delete files in a Windows environment depending on its age.
This task is rather easy in Unix but in Windows (DOS) it gets quite more complicated.
Now imagine you have some folders storing all the backups the system does, and now you would like to clean those folders so they just have the last ones.
I searched a lot and seems that with normal Batch is almost impossible to do it, and after trying like 3 or 4 different options I found this one to be the best overall.
First off, as I already said, with normal batch this task is so complicated, that is why we will use and extra tool called Robocopy. This tool is included in the Windows Server 2003 Resource Kit Tools which you can download from here:
http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe
Robocopy is a powerful copy command with lots of useful options.
Then idea is quite simple:
- We will create a temporal folder.
- We will move the files we want to delete to that folder.
- Finally we will delete the folder created with the files in it.
Now on to the code.
I will just put the code commenting each line, instead of writing what it does in a not-so-easy-to-understand paragraph.
* * * * *
@ECHO OFF
ECHO # Starting...
ECHO.
REM Setting the log file name
SET day=%date:~0,2%
SET mon=%date:~3,2%
SET year=%date:~6,4%
SET logfile_name=clearing_log_%day%-%mon%-%year%
REM Writing the first line in the log including the time
SET time=%time:~0,5%
ECHO # Clearing.bat launched at %time% > %logfile_name%.txt
ECHO. >> %logfile_name%.txt
REM Program Start
REM variables - here just write the paths of the folders you want to clear
SET folder_1_path="C:\Documents and Settings\user\Desktop\Folder_1"
SET folder_2_path="C:\Documents and Settings\user\Desktop\Folder_2"
REM this next variable will be the path of the temporal folder (you can write whatever path you want as it will be deleted)
SET path_temp_folder="C:\Documents and Settings\user\Desktop\Justin Bieber"
REM first we will check if the folders specified in the path variables exists
IF EXIST %folder_1_path% (
GOTO folder_1_exists
) ELSE (
ECHO [ERROR] The folder 1 does not exist.
ECHO [ERROR] The folder 1 does not exist. >> %logfile_name%.txt
GOTO final
)
:folder_1_exists
REM now we check if the second folder exists
IF EXIST %folder_2_path% (
GOTO folder_2_exists
) ELSE (
ECHO [ERROR] The folder 2 does not exist.
ECHO [ERROR] The folder 2 does not exist. >> %logfile_name%.txt
GOTO final
)
:folder_2_exists
REM now we will delete the files in the first folder
REM first we create the temporal folder
MKDIR %path_temp_folder%
REM now we move the files older than X (in this case 7) days to that folder
ROBOCOPY %folder_1_path% %path_temp_folder% /move /minage:7 >nul
REM ROBOCOPY syntax = source destination [file [file]…] [options]
REM and finally as stated we delete the temporal folder
RMDIR %path_temp_folder% /s /q
ECHO Folder 1 cleaned.
ECHO Folder 1 cleaned. >> %logfile_name%.txt
GOTO clear_1_done
:clear_1_done
REM now we will delete the files in the second folder
REM first we create the temporal folder
MKDIR %path_temp_folder%
REM now we move the files older than X (in this second case 3) days to that folder
ROBOCOPY %folder_2_path% %path_temp_folder% /move /minage:3 >nul
REM ROBOCOPY syntax = source destination [file [file]…] [options]
REM and finally as stated we delete the temporal folder
RMDIR %path_temp_folder% /s /q
ECHO Folder 2 cleaned.
ECHO Folder 2 cleaned. >> %logfile_name%.txt
GOTO final
:final
ECHO.
ECHO # Done.
ECHO. >> %logfile_name%.txt
ECHO # Done. >> %logfile_name%.txt
ECHO # Log file = %logfile_name%.txt
ECHO # Press any key to exit.
PAUSE>NUL
* * * * *
That's it.
Just create and new .bat file, copy the code above, modify it (paths, older days...etc) to match your goals and voilĂ ;)
Hope it helps.
This task is rather easy in Unix but in Windows (DOS) it gets quite more complicated.
Now imagine you have some folders storing all the backups the system does, and now you would like to clean those folders so they just have the last ones.
I searched a lot and seems that with normal Batch is almost impossible to do it, and after trying like 3 or 4 different options I found this one to be the best overall.
First off, as I already said, with normal batch this task is so complicated, that is why we will use and extra tool called Robocopy. This tool is included in the Windows Server 2003 Resource Kit Tools which you can download from here:
http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe
Robocopy is a powerful copy command with lots of useful options.
Then idea is quite simple:
- We will create a temporal folder.
- We will move the files we want to delete to that folder.
- Finally we will delete the folder created with the files in it.
Now on to the code.
I will just put the code commenting each line, instead of writing what it does in a not-so-easy-to-understand paragraph.
* * * * *
@ECHO OFF
ECHO # Starting...
ECHO.
REM Setting the log file name
SET day=%date:~0,2%
SET mon=%date:~3,2%
SET year=%date:~6,4%
SET logfile_name=clearing_log_%day%-%mon%-%year%
REM Writing the first line in the log including the time
SET time=%time:~0,5%
ECHO # Clearing.bat launched at %time% > %logfile_name%.txt
ECHO. >> %logfile_name%.txt
REM Program Start
REM variables - here just write the paths of the folders you want to clear
SET folder_1_path="C:\Documents and Settings\user\Desktop\Folder_1"
SET folder_2_path="C:\Documents and Settings\user\Desktop\Folder_2"
REM this next variable will be the path of the temporal folder (you can write whatever path you want as it will be deleted)
SET path_temp_folder="C:\Documents and Settings\user\Desktop\Justin Bieber"
REM first we will check if the folders specified in the path variables exists
IF EXIST %folder_1_path% (
GOTO folder_1_exists
) ELSE (
ECHO [ERROR] The folder 1 does not exist.
ECHO [ERROR] The folder 1 does not exist. >> %logfile_name%.txt
GOTO final
)
:folder_1_exists
REM now we check if the second folder exists
IF EXIST %folder_2_path% (
GOTO folder_2_exists
) ELSE (
ECHO [ERROR] The folder 2 does not exist.
ECHO [ERROR] The folder 2 does not exist. >> %logfile_name%.txt
GOTO final
)
:folder_2_exists
REM now we will delete the files in the first folder
REM first we create the temporal folder
MKDIR %path_temp_folder%
REM now we move the files older than X (in this case 7) days to that folder
ROBOCOPY %folder_1_path% %path_temp_folder% /move /minage:7 >nul
REM ROBOCOPY syntax = source destination [file [file]…] [options]
REM and finally as stated we delete the temporal folder
RMDIR %path_temp_folder% /s /q
ECHO Folder 1 cleaned.
ECHO Folder 1 cleaned. >> %logfile_name%.txt
GOTO clear_1_done
:clear_1_done
REM now we will delete the files in the second folder
REM first we create the temporal folder
MKDIR %path_temp_folder%
REM now we move the files older than X (in this second case 3) days to that folder
ROBOCOPY %folder_2_path% %path_temp_folder% /move /minage:3 >nul
REM ROBOCOPY syntax = source destination [file [file]…] [options]
REM and finally as stated we delete the temporal folder
RMDIR %path_temp_folder% /s /q
ECHO Folder 2 cleaned.
ECHO Folder 2 cleaned. >> %logfile_name%.txt
GOTO final
:final
ECHO.
ECHO # Done.
ECHO. >> %logfile_name%.txt
ECHO # Done. >> %logfile_name%.txt
ECHO # Log file = %logfile_name%.txt
ECHO # Press any key to exit.
PAUSE>NUL
* * * * *
That's it.
Just create and new .bat file, copy the code above, modify it (paths, older days...etc) to match your goals and voilĂ ;)
Hope it helps.
Subscribe to:
Posts (Atom)