Some Sep/2013 Notes

1) Search Content Server (UCM) documents that the user “USERID1” has read write rights:

In query builder form:

search2Alternatively, could go to “Expanded Form” and add the user access list search conditions (Including access rights info)

2) Understanding OCS Content Item Lifecycle:

Here’re a few common states an item goes through and corresponding values you’ll see in the Status field:

Review: The item is in the workflow.
Edit: The item is in the contribution stage. It has probably been rejected from the first step of the workflow.
Pending: The item was included in a basic workflow along with the other items. It was approved and is waiting while the rest of the items go through the workflow.
Done: Workflow is complete.
GenWWW: Conversion is in progress. For instance, when you use the PDF converter to generate a PDF version after check in.
Released: All done. The item is available and will appear in searches

3) In OCS, create a token represent a user defined in one of metadata field (eg. approver user token):

tokenThis will create a token represent the user defined in workflow approver metadata field, similar use cases can also be implemented this way. http://docs.oracle.com/cd/E21764_01/webcenter.1111/e12405/wcadm_documents.htm#BABIFAJG

4) WebCenter 11.1.1.8 released, WC Spaces renamed to WC Portal, Info on WC Content 11.1.1.8:

http://andrejusb.blogspot.sg/2013/08/webcenter-portal-new-name-for-webcenter.html

http://jonathanhult.com/blog/2013/08/webcenter-content-11-1-1-8-0/

5) Groovy expression to assign db sequence to a string variable (append “as String” in the of the expression):

http://www.jobinesh.com/2013/08/groovy-expression-for-assigning-db.html

6) JRebel now supports JDeveloper v11.1.2+

http://manuals.zeroturnaround.com/jrebel/ide/jdeveloper.html

7) Use “AdfAgent.AGENT.getElementById” instead of document.findElementById for better performance

8) Adf table filtering not working for MySQL database, solution is:

http://technology.amis.nl/2011/10/24/adf-table-filtering-on-mysql-is-failing/

9) WebCenter 11.1.1.8, identify slow pages technique

http://www.ateam-oracle.com/webcenter-11-1-1-8-performance-analysis-feature/?fb

Reference: http://docs.oracle.com/cd/E29542_01/webcenter.1111/e27738/wcadm_trouble.htm#WCADM12929

10) Change WebCenter session timeout

Use Red Samurai’s MDS Cleaner -> Search “%webcenter-config% -> Edit Source XML -> Change session timeout to larger value

webcenter_session11) Oracle Text Search Info (also could check documentation for indexing of various content types, different index types etc)

http://docs.oracle.com/cd/B19306_01/server.102/b14220/content.htm#i468182

http://docs.oracle.com/cd/B19306_01/text.102/b14218/cdatadic.htm#sthref455

12) UCM couldn’t re-create deleted folder

Error msg is folder with same name already exists, one of possible reasons is that the deleted folder is a system folder (can be viewed in UCM console “Administration -> Folder Configuration -> System Folder Configuration”). When the folder is deleted, it’s not deleted but marked as disabled, so re-create a folder with same name will fail. Quick fix is in UCM database, set column Collections.dcollectionmark as null for the folder or make sure dCollectioMark meta field is null during folder creation.

13) Java Integer / Long  overflow handling and checking

http://stackoverflow.com/a/3001879/382180

Integer.MAX_VALUE+1 will be Integer.MIN_VALUE , similar for Long

14) Java has no built-in AtomicDouble (it has AtomicBoolean, AtomicLong etc), google’s Guava has, it uses AtomicLong to implement it.

http://docs.guava-libraries.googlecode.com/git-history/v11.0.2/javadoc/com/google/common/util/concurrent/AtomicDouble.html

Similar to other JDK AtomicXXX classes, it’s non-blocking, it used Double.doubleToLongBits() technique

15) Java 8 Streams vs LINQ

http://blog.informatech.cr/2013/03/24/java-streams-preview-vs-net-linq/

16) Some useful adf resource/articles:

ADF Taskflow Transaction:

http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adf-task-flow-trans-fund-v1-1-1864319.pdf

Transaction issue created by nested region and tx attributes:

https://blogs.oracle.com/onesizedoesntfitall/entry/adf_prematurely_terminated_task_flows

ADF layout basics:

http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adffaceslayoutbasics-2046652.pdf

17) Nice UI mock tool:

http://balsamiq.com/

18) In ADF 12c, after changing -Djbo.debugoutput=console, it’s still required to change logging.xml to see the log:

https://forums.oracle.com/message/11145783