CheckIn content

Hi,
I want to use filter which will check the file extension, size and comments (should not be null ) before check-in.
If the file size is less than 50mb or extension is .txt or comment is null then the filter will not allow to check-in.
I am using CHECKIN_NEW service and then checking XCOMMENTS fields in validateStandard filter, but its not working.
Please help me out.
Thanks

like in your other post; your filter occurs only AFTER checkin (but before the document is released)
So this will never work. After seeing your code I have some other comments:
- if xComments is Null your code will throw a NullPointerException, try it as follows (this is how you should check for an empty string)
String xComments = binder.getLocal( "xComments" );
if ( xComments == null || xComments.length() == 0 ) {
   // null or empty string
}- you can't check for null by doing a equalsIgnoreCase( "null" ), especially because if IdcService is Null it'll throw a null pointer before that, use the following instead
String idcService = binder.getLocal( "IdcService" );
if ( idcService == null ) {
   // now you know idcService is Null
}- don't try to do a delete of a revision inside this filter, it makes no sense, use the right filter (and the way you do it doesn't work)
- if you do a equals(), do it on the String literal (to make sure no NullPointerException is thrown):
// so instead of
boolean isEqualToSysadmin = dDocAuthor.equals( "sysadmin" ); // in this case when dDocAuthor is Null, a NullPointerException is thrown
// do:
boolean isEqualToSysadmin = "sysadmin".equals( dDocAuthor ); // in this case when dDocAuthor is Null, isEqualToSysadmin = falseregards,
Fabian
edit: you can use the tags to make your code better readable on this forum by starting your code with [ code ] and ending with [ / code ] (without all the spaces)
Edited by: fscherpe on May 20, 2011 4:50 AM

Similar Messages

  • Content profile Checkin  by cis (content integration suite)

    Good Day ,
    Iam using content integration suite for Oracle ucm my problem is :
    i create a new document profile by ucm interface and i want to checkin contents (using cis from java code) to these custome fields in the created profile, so is there
    any way to do that through cis by java code because there is mandetory fileds in another profiles ,that must be entered using (active.document.checkin.checkinFile ) because that i need content profile Checkin.
    best regards
    Wa'el Abu Rahmeh
    Edited by: Wa'el Abu Rahmeh on Oct 18, 2009 3:50 AM

    Are you able to checkin content with that profile in UCM interface? I think the mandatory metadata fields still needs to get filled even though you try to hide them through your profile. They might appear hidden but you will not be able to checkin the document, so you have to default it to predefined values.
    Alternative is to tap the event "validate standard" in a custom component filter and then do necessary changes to the databinder. So is it CIS issue at all?
    These are my thoughts.
    Regards,
    Ansuman Roy

  • Pre-selected Content Profile Checkin

    Hello,
      I was reading this post:
    Using Content Server Profiles in WebCenter
    I'm in a similar situation configuring my space. I find impossible to pre-select a content profile from Upload button, and in the linked post they talked of some component that could work. Is any updates about it? I couldn't answer there, the post is closed.
    Thank you in advance.

    Are you able to checkin content with that profile in UCM interface? I think the mandatory metadata fields still needs to get filled even though you try to hide them through your profile. They might appear hidden but you will not be able to checkin the document, so you have to default it to predefined values.
    Alternative is to tap the event "validate standard" in a custom component filter and then do necessary changes to the databinder. So is it CIS issue at all?
    These are my thoughts.
    Regards,
    Ansuman Roy

  • During checkin read the filename in oracle ucm

    During Checkin content from Profile I want to read the filename. Can we do this using Java filter?How?

    Hi Srinath,
    1) Whatever given code I placed in rule side effect and checkin content to content server and verified in the console output, could not find the trace log.
    2) I placed code in custom placed checkin  content and got below error
    Caused by: java.lang.IllegalArgumentException: !csDynHTMLArgumentMessage2,3,<$if &lt;$trace("content id side effect"\, "#0023console")$&gt;
    services/3 04.21 00:06:43.026 IdcServer-427 [[% start with original filename\, which may include path and/or extension %]]
    services/3 04.21 00:06:43.026 IdcServer-427 &lt;$filename=#0023local.primaryFile$&gt;
    services/3 04.21 00:06:43.026 IdcServer-427 [[% replace any backslashes with normal slashes %]]
    services/3 04.21 00:06:43.026 IdcServer-427 &lt;$filename=strReplace(filename\,"\\\\"\,"/")$&gt;
    services/3 04.21 00:06:43.026 IdcServer-427 [[% remove any leading text up to last slash %]]
    services/3 04.21 00:06:43.026 IdcServer-427 &lt;$filename=regexReplaceFirst(filename\,"^.*/"\,"")$&gt;
    services/3 04.21 00:06:43.026 IdcServer-427 [[% remove any trailing text starting with a dot and followed by anything other than a dot %]]
    services/3 04.21 00:06:43.026 IdcServer-427 &lt;$filename=regexReplaceFirst(filename\,"\\.[^.]+$"\,"")$&gt;
    services/3 04.21 00:06:43.026 IdcServer-427 &lt;$trace(filename\, "#0023console")$&gt;
    services/3 04.21 00:06:43.026 IdcServer-427 &lt;$dpPromote("dDocName"\, AutoNumberPrefix & "_" & filename)$&gt;$> <$isActive=1$> <$endif$>!csParserUnableToFindClosingElement,\s
    services/3 04.21 00:06:43.026 IdcServer-427        at intradoc.common.DynamicHtmlMerger.createArgumentException(DynamicHtmlMerger.java:2118)
    services/3 04.21 00:06:43.026 IdcServer-427        at intradoc.common.DynamicHtmlMerger.evaluateScriptToWriter(DynamicHtmlMerger.java:1907)
    services/3 04.21 00:06:43.026 IdcServer-427        at intradoc.common.DynamicHtmlMerger.evaluateScriptNoErrorHandling(DynamicHtmlMerger.java:1866)
    services/3 04.21 00:06:43.026 IdcServer-427        at intradoc.common.DynamicHtmlMerger.evaluateScriptReportError(DynamicHtmlMerger.java:1841)
    services/3 04.21 00:06:43.026 IdcServer-427        at intradoc.server.DocProfileStates.computeIsRuleActivated(DocProfileStates.java:642)

  • Checkin filter not working properly in case of WebDAV

    Hi guys,
    I have written a custom checkin filter. This filter populates MetaData xStartDate of Date type.
    When I checkin content item through UCM admin portal, then filter work fine and set the xStartDate meta data value.
    Here is the code that is used to set meta data:
    binder.putLocal("xStartDate","9/23/10");
    But in case of WebDAV, content item is not checked in although Filter get executed successfully.
    Please help!!!

    This is an ackowledge bug in Flash Builder 4.7 : (
    https://bugbase.adobe.com/index.cfm?event=bug&id=3499140

  • Failed to load XML file with Content ID 'XYZ'

    Hello,
    We are using UCM Version:11.1.1.8.1DEV-2014-01-06 04:18:30Z-r114490 (Build:7.3.5.185) with site studio for creating templates and web sites.
    While switching to contribution mode, we find 'Failed to load XML file with Content ID 'XYZ' error.[Here XYZ is the local checkin content]
    In region we are using dynamic converter to convert the style of native document here below are region and its element details.
    <region  id="region3" name="Add_Content_Here" flags="1111111100100" metadata="xIdcProfile%3AisHidden%3Dtrue%26xTemplateType%3AisHidden%3Dtrue%26xShowInStaff%3AisHidden%3Dtrue%26xShowInVisitors%3AisHidden%3Dtrue%26xShowInFaculty%3AisHidden%3Dtrue%26xDiscussionCount%3AisHidden%3Dtrue%26xDiscussionType%3AisHidden%3Dtrue" dccommand="ssIncDynamicConversionByRule(SS_DATAFILE, 'Colleges_Template_Rule')">
          <!--$region3_ACTIONS="EIMPRS",region3_DCCOMMAND="ssIncDynamicConversionByRule(SS_DATAFILE, 'Colleges_Template_Rule')" -->
          <element  id="region3_element1" name="Editor" label="Editor" type="1" flags="111111111111111111111100000111100000000000001111001110111010001111101000000000000000000000000000">
            <!--$region3_element1="Add_Content_Here/Editor" -->
            <linktoregioncontent  createnewxml="true" createnewnative="false" choosemanaged="true" chooselocal="false" choosenone="false">
              <choosemanagedquerytext  corecontentonly="FALSE">
                <![CDATA[xWebsiteObjectType <Matches> `Data File` <OR> xWebsiteObjectType <Matches> `Native Document`]]>
              </choosemanagedquerytext>
            </linktoregioncontent>
          </element>
          <switchregioncontent  createnewxml="true" createnewnative="true" choosemanaged="true" chooselocal="false" choosenone="false">
            <createnewnativedoctypes >
              <![CDATA[.doc,.docx,.txt,.rtf]]>
            </createnewnativedoctypes>
            <choosemanagedquerytext  corecontentonly="FALSE">
              <![CDATA[xWebsiteObjectType <Matches> `Data File` <OR> xWebsiteObjectType <Matches> `Native Document`]]>
            </choosemanagedquerytext>
            <defaultmetadata >
              <![CDATA[xIdcProfile%3AisHidden%3Dtrue%26xTemplateType%3AisHidden%3Dtrue%26xCollegesList%3AisHidden%3Dtrue%26xShowInStudents%3AisHidden%3Dtrue%26xShowInStaff%3AisHidden%3Dtrue%26xShowInVisitors%3AisHidden%3Dtrue%26xShowInFaculty%3AisHidden%3Dtrue%26xArticleSection%3AisHidden%3Dtrue%26xDiscussionCount%3AisHidden%3Dtrue%26xDiscussionType%3AisHidden%3Dtrue%26dpTriggerValue%3DCSE]]>
            </defaultmetadata>
          </switchregioncontent>
        </region>
    <!--SS_BEGIN_OPENREGIONMARKER(region3)--><!--$SS_REGIONID="region3"--><!--$include ss_open_region_definition --><!--SS_END_OPENREGIONMARKER(region3)-->
    <!--SS_BEGIN_ELEMENT(region3_element1)--><!--$ssIncludeXml(SS_DATAFILE,region3_element1 & "/node()")--><!--SS_END_ELEMENT(region3_element1)-->
    <!--SS_BEGIN_CLOSEREGIONMARKER(region3)--><!--$include ss_close_region_definition --><!--SS_END_CLOSEREGIONMARKER(region3)-->
    Regardrs,
    Syed

    Hi Syed ,
    Add the following trace sections :
    requestaudit,sitestudio*,system + Full verbose tracing
    Clear the server output .
    Replicate the same steps and once error shows up , refresh server output and copy the logs to a text file and upload here .
    Thanks,
    Srinath

  • How to get hardware's attention as soon as it gets plugged in?

    I have this joystick with a cthulhu board, in case anyone has one and could use the details, and it seems to disconnect right after I plug it in. According to the person who builds the PCBs it appears the cthulhu is trying to go into PS3 mode since nothing is prompting it.
    $ dmesg | tail -4
    usb 4-4: new full speed USB device using ohci_hcd and address 5
    input: Toodles 2008 Cthulhu+ PC/PS3 Controller as /devices/pci0000:00/0000:00:04.0/usb4/4-4/4-4:1.0/input/input12
    generic-usb 0003:14D8:0409.000A: input,hidraw4: USB HID v1.11 Gamepad [Toodles 2008 Cthulhu+ PC/PS3 Controller] on usb-0000:00:04.0-4/input0
    usb 4-4: USB disconnect, address 5
    I have tried using this script:
    #!/bin/bash
    # Polls Toodles PC/PS3 Cthulhu controller, preventing it from entering XBox 360
    # mode. Run this script as root, then plug in the controller.
    DEV_DIR=/dev/input/by-id
    DEV_NAME=usb-Toodles_2008_Cthulhu+_PC_PS3_Controller-joystick
    echo "Please connect PC/PS3 Cthulhu now."
    # Loop indefinitely until Cthulhu controller is detected
    until [ -a $DEV_DIR/$DEV_NAME ]; do
    DO_NOTHING=""
    done
    echo " - PC/PS3 Cthulhu detected. Ensuring connection..."
    # Have Cthulhu scream into the void for a couple of seconds to ensure connection
    cat $DEV_DIR/$DEV_NAME > /dev/null & CAT=$!
    sleep 2
    kill $CAT
    echo " - PC/PS3 Cthulhu connected!"
    And I tried editing /etc/udev/rules.d/10-local.rules so it contains the following:
    SYSFS{idVendor}=="14d8", NAME="input/%k", RUN+="/bin/touch /dev/input/%k"
    But those approaches didn't seem to work. It used to work and one day it just wouldn't, it was probably after an update and, since I don't play every day with it, I'm unsure as to what caused it.
    Any help will be appreciated
    EDIT: The stick is working fine, I have tested it on Windows.
    Last edited by clincher (2011-09-15 04:26:27)

    Hi
    What you are looking for is an ultra fast indexing mechanism . Actually indexing depends a lot on how good the DB is tuned to churn out and process the documents that are there in it . If you want to have this sort of a feature where in you want the contents to go to Released status as soon as you checkin contents then you will have to set up the DB to do the processing fast enough and give out the results. If it is Full text based indexer for the CS then whole lot of data has to be processed by DB .
    One hint to get this done is to use Oracle Query Optimizer component with which you can create hints for the db to do the query processing fast . Also creating indexes (additional to the existing) for the columns in docmeta , revisions table would also help a long way .
    Srinath

  • Consume a Web Service from a Webcenter aplication | Checkinuniversal servi

    HI
    Im trying to consume the checkinuniversal service from my webcenter application.
    Steps done as instructed in the URL below
    http://www.oracle.com/technology/obe/obe11jdev/11/wsdc/wsdc.htm
    But when i try to cehkin the document from my webcenter application it showin an error ' Content item 'scs' was not successfully checked in. The content item must have a primary file.'
    Is there any other way to checkin content from webcenter application through java code/CIS/ or any one has idea about primary file issue-how to resolve it.
    Can you please share your ideas/ sample code(CIs) if any
    thanks Smith

    Hi Paolo,
    maybe I faced the same issue. I solved it reading the thread:
    web service deployable client
    Hope this help
    Cheers
    Roberto

  • Checkiin Universal from Jdeveloper(webservices)

    HI
    Im trying to consume the checkinuniversal service from my webcenter application.
    Steps done as instructed in the URL below
    http://www.oracle.com/technology/obe/obe11jdev/11/wsdc/wsdc.htm
    But when i try to cehkin the document from my webcenter application it showin an error ' Content item 'scs' was not successfully checked in. The content item must have a primary file.'
    Is there any other way to checkin content from webcenter application through java code/CIS/ or any one has idea about primary file issue-how to resolve it.
    Can you please share your ideas/ sample code(CIs) if any
    thanks Smith

    Smith,
    Have you tried on either the ECM or WebCenter forums? I'd probably start with the [url http://forums.oracle.com/forums/forum.jspa?forumID=390]ECM one.
    Best,
    John

  • Value not found in allowed list of options for field...

    Hi,
    I'm using RIDC on UCM 11g in order to checkin contents.
    UCM hosts different projects.
    I've the following problem: if somebody (from a different project) insert a new Information Field (e.g. xAnnoPubblicazione) of type Integer - Option List - Select List Validated and it does not make a default value for this field, when I perform checkin using RIDC, it fails with the error:
    "oracle.stellent.ridc.protocol.ServiceException: Content item 'UCMRE010132' was not successfully checked in. Value not found in allowed list of options for field 'xAnnoPubblicazione'.
    How can I solve this issue? what's the recommended way?
    Thank you very much.
    Best regards,
    S.

    In the database language, you have created a NON NULL column and you are trying to insert a record with NULL value to the column. Of course, it cannot work.
    There are three options:
    - do not declare the field as NON NULL (that is, you option list has to contain 'blank' as a possible value)
    - provide the value on insert
    - provide the default value

  • Thumbnails on search result template

    I need to put some kind of thmbnails on search result template.
    I am pretty sure , that there was a thread in this forum and perhaps there is a component for it, but cannot find it. Or maybe i am wrong.
    Thank in advance

    All content types have an icon associated with them - you can view this in COnfiguration Manager.
    If you do not have Inbound Refinery and you checkin content items and then view them in a search results setting that shows thumbnails then you will get this icon.
    Even if you have IBR some items will not have thumbnails.
    You can choose the icon on a per content-type basis.
    Does that help?

  • How to Enable Default Account field

    Hi,
    Anybody knows how to enable default account field in UCM.

    Not sure what you mean by default..
    But to enable accounts.
    Administration>>Admin Server>>select the content server button>>General Configuration
    Enter into Additional Configuration Variables:
    UseAccounts=true
    Or to only show accounts on the UCM via a dropdown list when you checkin content.
    Administration>>Admin Server>>select the content server button>>Content Security
    Select: Show only known accounts Checkbox.
    Hit save.
    Restart Content Server.

  • !csUnableToCheckIne error while checkin_universal

    Hi all,
    We are checkin content using checkin_universal . I am getting error like !csUnableToCheckIn,HOOD0516200000431!csCheckinRevLabelInvalid,(null)
    Before calling this service , i am check out using CHECKOUT_BY_NAME .
    Where i am doing wrong.what is problem

    Hi Vinay ,
    During the checkout operation , see if the revlabel is being retrieved correctly .
    Then for the checkin process , see if you are passing dRevlabel some value , which is causing the issue ?
    Thanks,
    Srinath

  • "Content account is not defined" error while trying to checkin a document

    Hi, all
    I am running ECM integration samples included on SDK (included on file ContentIntegrationSuite_10gR3_20081218.zip, folder "oracle-cis-10g\samples\CodeExamples\src\java\com\stellent\cis\sdk\samples"), and I got the error "Content account is not defined. Unable to validate user security." when running the ChekinFile.java sample.
    I could successfully run the ServerInfo.java with no problems, and I expected to run the other example as easily as that.
    Is there any configuration I must change on ECM to run this sample?
    The stack trace follows. Thanks in advance.
    com.stellent.cis.client.command.CommandException: Content item '1256149797205Content-Id-SDK' was not successfully checked in. Content account is not defined. Unable to validate user security.
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeRequest(SCSCommand.java:338)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.execute(SCSCommand.java:222)
         at com.stellent.cis.client.command.impl.services.CommandExecutorService.executeCommand(CommandExecutorService.java:57)
         at com.stellent.cis.client.command.impl.CommandFacade.executeCommand(CommandFacade.java:158)
         at com.stellent.cis.client.command.impl.BaseCommandAPI.invokeCommand(BaseCommandAPI.java:84)
         at com.stellent.cis.client.api.scs.document.checkin.impl.SCSDocumentCheckinAPI.checkinFileStream(SCSDocumentCheckinAPI.java:707)
         at com.stellent.cis.sdk.samples.checkin.CheckinFile.execute(CheckinFile.java:87)
         at com.stellent.cis.sdk.samples.checkin.CheckinFile.main(CheckinFile.java:64)
    Caused by: com.stellent.cis.server.api.scs.request.SCSRequestException: Content item '1256149797205Content-Id-SDK' was not successfully checked in. Content account is not defined. Unable to validate user security.
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.checkBinderForErrors(SCSRequestProcessor.java:357)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.validateResponse(SCSRequestProcessor.java:273)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestProcessor.processRequest(SCSRequestProcessor.java:118)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:61)
         at com.stellent.cis.server.api.scs.request.stream.SCSOptimizedPublishFilter.handleRequest(SCSOptimizedPublishFilter.java:128)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.stream.SCSOptimizedRetrieveFilter.handleRequest(SCSOptimizedRetrieveFilter.java:250)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.rewrite.SCSRewriteURLFilter.handleRequest(SCSRewriteURLFilter.java:140)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.cache.impl.SCSServiceCacheFilter.handleRequest(SCSServiceCacheFilter.java:104)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestFilterChain.doRequestFilter(SCSRequestFilterChain.java:58)
         at com.stellent.cis.server.api.scs.request.impl.SCSRequestExecutorProxy.execute(SCSRequestExecutorProxy.java:105)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeViaProxy(SCSCommand.java:353)
         at com.stellent.cis.server.api.scs.impl.SCSCommand.executeRequest(SCSCommand.java:335)
         ... 7 more

    Hi
    Issue is caused with the way parameters are passed from CIS 8.x onwards where when not giving a parameter that is a required one then it has to be set to blank. Like in the case for dDocAccount setting the value to blank string (i.e. "") would successfully check in the document.
    dDocAccount is a required additional paramter that needs to be supplied when checking in contents when UseAccounts=true is set in the config.cfg of the CS.
    From the CS checkin page when not specifying the Account it is set as blank which is why the the checkin goes through fine.
    This was not the case with CIS 7.6.1 where dDocAccount was not required to pass as parameter even if UseAccounts=true is set in the config.
    In case checkins have to be done without giving the Account then add the code for setting the dDocAccount to a blank string (i.e. "") and then recompile the java code and execute the it.
    Reason why CIS 7.6.1 did not show this behaviour is since CIS would set that (the value for account parameter) in the binder and pass it to the CS.
    Hope this helps
    Srinath

  • Content Server wsdl soap checkin returns Content ID '0'

    Hi,
    I'm using soap web service (based on Checkin wsdl) to check in a file. There is no exception/error on both server and client sides, but the document is nowhere on the server (can't find it through browsing). The response says the content ID is '0' (which I think it's not right).
    Anybody had same issue?
    Thanks,
    Alan

    Probably, only support for Adobe's Content Server will be able to help you with this. It should be free since it's an upgrade installation issue. Do you have a contact in ACS sales or support that can forward your problem to the right person?
    If not, there are some phone numbers here:
    http://partners.adobe.com/asn/programs/developer/contactus.jsp

Maybe you are looking for

  • Java 1.4 and AES Algorithm PLEASE HELP!!

    I hope this question has not already been asked. I have spent a long time searching the archives and documentation. I am attempting to migrate from jsdk1.3 to jsdk1.4 but have come up against the following problem. I need to create keys and encrypt f

  • Need help with session state/item refresh

    I have an application that allows users to record productivity information for our employees. There are different types of work they have to do, so the form is in header/multiple-detail form and uses collections to handle all processing. In the heade

  • Exception handling-filter out a specific JBO code number

    Hi First i would like to explain that what i'm trying to achieve is 'filtering out' a specific error code using JboException getErrorCode() these exceptions are thrown by using JCLoginDialog and entering invalid user/password. I am using bc4j/jclient

  • Notes/To Do App That Syncs w/MAC and iPhone

    Want to be able to make simple notes, like stickies, on my MAC and/or iPhone and have them sync between the two...looked high and low. Anyone know of one?

  • Apogee ensemble input section does not work with pro x

    Downloaded the  "maverick" ensemble software, Upgraded the ensemble  firmware. The latest downloadable ensemlble manual available is for 10.6. The instructions do not look like they match  pro X   The input section on the ensemble does not work. The