Filter implementation in check-in 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 .bmp 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 postWebfileCreation filter,
I am getting server log properly but content is checked-in even the content doesnot matches required criteria.
Please help me out.
Thanks

Hey
I got a simple component working on my sandbox machine that rejects documents checked in that are over a pre-defined size.
I used the "validateStandard" event to attach to, and was able to get the filesize out based on the following code:
          String pFile = binder.getLocal("primaryFile");
          if(pFile == null || pFile.length() < 1)
               //NO primary File available
               SystemUtils.trace("system", "Unable to retrieve primaryFile from binder.. skip Filter");
               return CONTINUE;
          SystemUtils.trace("system", "Checking in " + pFile);
          File primaryFile = new File(pFile);
          if (!primaryFile.exists())
               SystemUtils.trace("system", "Could not load file.");
               return CONTINUE;
          long fileSize = primaryFile.length();
          if (fileSize >= 10000000) //10 meg
               throw new ServiceException("This document is too large: " + fileSize);
HTH.
Cheers,

Similar Messages

  • Search for checked out content

    Hello,
    I use UCM 10g with SiteStudio. I would like to create a QueryText that searches for all the checked out content. I checked in the database and found that dIsCheckedOut is the variable that is keeping this information.
    The following code gves me no search results, also some content is checked out. Did someone try this before? What am I doing wrong?
    QueryText = "(dIsCheckedOut <substring> `1`)"
    SS_GET_SEARCH_RESULTSThanks
    Tobias

    No you are quite right to point out it is the quickest way to do this - not knocking you, it works and I have certainly done it myself BUT it was on a static (published by SSPU) site so performance was less of an issue.
    Thats the problem with Site Studio I think it is very easy to have a whole bunch of service calls going on.
    I guess other options to explore would be the use of a meta field to hold this information and use a filter to toggle the value on/off. Pretty useless but would mean that the value got promoted into the search results. Or modify the search query so that discheckout is pulled back by SS_GET_SEARCH_RESULTS.
    Tim

  • User unable to check in content in URM 10g

    We have a user that is unable to check in content in URM. the access provided to this user was added the same way as every other user within our organisation and there was also another user added the same time with identicle access who is not having any issues.
    The user is able to go through the entire check in process however as they select the 'check in' option at the end of completing metadata fields an error is thrown.
    ERROR:
    Content Server Request Failed
    Content item <undefined> was not successfully checked in. User 'username' does not have sufficient privileges.
    we have deleted the user several times, gone through providing the user with additional roles, checked logs but we cannot identify what the cause is. if the user is granted sysadmin access they can check in content but as soon as that access is reoved they can no longer.
    just to make this even more confusing lthe user is able to check in content in our test instance no problems.
    Any ideas as to what could possibly be causing this would be appreciated as we have run out.
    Cheers

    If you have taken a dump from somewhere and setting it up on ur local, you should cleanup the database a bit before actually deploying any project.
    I would suggest you rollback any of your current projects and run the following scripts to remove any staled/existing projects in CA.
    DELETE FROM EPUB_PR_HISTORY;
    DELETE FROM EPUB_PROC_HISTORY;
    DELETE FROM epub_proc_prv_prj;
    DELETE FROM EPUB_PROJECT;
    DELETE FROM EPUB_IND_WORKFLOW;
    DELETE FROM EPUB_PROC_TASKINFO;
    DELETE FROM EPUB_PROCESS;
    DELETE FROM EPUB_HIS_ACT_PARM;
    DELETE FROM EPUB_HISTORY;
    DELETE FROM EPUB_TASKINFO;
    DELETE FROM EPUB_DEP_LOG;
    DELETE FROM epub_file_asset;
    DELETE FROM avm_asset_lock;
    DELETE FROM dss_server_id;
    DELETE FROM dsi_server_id;
    commit;
    Now start your server again and check the deployment.
    Hopefully it should work!

  • Is it possible to check DVD contents in Solaris 10 OK prompt?

    Hi All,
    Is it possible to check DVD contents in Solaris 10 OK prompt without going into OS level? Please advise.
    Regards,
    Pui Keong

    No

  • Can't access filter gallery. Checked the Show All Filters in preferences. Reinstalled. Still grayed out.

    Can't access filter gallery. Checked the Show All Filters in preferences. Reinstalled. Still grayed out.

    Make sure you document is in RGM 8 bit color depth.   Some Filters do nt support hings like CMYK or Lat or 32 bit or 16 bit documents. See it Filter gallery is available  when you open a new document RGB 8 bit color.

  • How to check the contents of MCVBAK table?

    Hi all of you,
    I am using MCVBAK table for extraction using LIS.  The problem I am facing is when I am running the init load in BW for my IS S511, it is successfully running but in the monitor screens it says only 1 from 1 record. I thought that there are no records in the table MCVBAK so I wanted to make sure if there are really no records in MCVBAK table.  
    So I went to R/3 gave the T.C SE11 and entered the table MCVBAK to check its contents.  But in the MCVBAK table what I find is the graphics button and contents button are invisible.  My question is
         How to find the contents of the table MCVBAK?
    Please help. 
    Thank you,
    Tristan.

    Hi TR,
    Yah, you need to check VBAK Table at SE11, Things that start with "MC...." are usually structures. Anther point, I want to mention is, When you schedule as Init load at the BW side, the system will get the data from S511 table(which is Information Structure table). So, you have do statistical setup first (at eg for sales Tcode is oli7) which will copy the records from VBAK table to your Information Structure (i.e S511).Only then, you can perform Init Load. Hope this Info help!
    Regards,
    Vj

  • Implement Budget check at SC level against Fund Management(ECC)

    Hello,
    We would like to implement Budget check at SC level against Fund Management(ECC) .
    We are planning to use Extended classic scenario with SRM 7.0
    Could please confirm that it is feasible, I know that there were some problems integrating SC and Fund Management with previous SRM version in Extended Classic Scenario..
    Best regards,
    Lina

    Hi,
    I think it is standard function and no development is required.
    Regards,
    Masa

  • How to check the contents of Control file, Log file & Parameter file

    Can anybody help me how i can check the contents of Control file, Log file & Parameter file.
    Arif

    OK ...
    Parameter file:
    It will normally be in the $ORACLE_HOME/dbs directopry. It could be aan init{sid}.ora or a spfile{sid}.ora ... do not edit an SPFILE as yu could corrupt it.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref434
    If it's an init{sid}.ora, use any editor to see the actual content.
    If it's a spfile{sid}.ora, use one of V$PARAMETER, V$PARAMETER2, V$SYSTEM_PARAMETER, V$SYSTEM_PARAMETER2 as aappropriate (read the Reference manual to get an idea about when each is appropriate)
    Control File:
    You should not edit a control file. It consists of many areas, as described here http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/physical.htm#i10135 and each are is interrogated by V$views as given in the reference manual. The following V$views all deal with some aspect of the control file or provide info about the control files or the contents of control files:
    V$ARCHIVE_DEST
    V$ARCHIVED_LOG
    V$BACKUP_ARCHIVELOG_DETAILS
    V$BACKUP_CONTROLFILE_DETAILS
    V$BACKUP_CONTROLFILE_SUMMARY
    V$BACKUP_COPY_DETAILS
    V$BACKUP_COPY_SUMMARY
    V$BACKUP_CORRUPTION
    V$BACKUP_DATAFILE
    V$BACKUP_DATAFILE_DETAILS
    V$BACKUP_FILES
    V$BACKUP_PIECE
    V$BACKUP_REDOLOG
    V$BACKUP_SET
    V$BACKUP_SET_DETAILS
    V$BACKUP_SPFILE
    V$CONTROLFILE
    V$CONTROLFILE_RECORD_SECTION
    V$COPY_CORRUPTION
    V$DATABASE
    V$DATABASE_INCARNATION
    V$DATAFILE
    V$DATAFILE_COPY
    V$DATAFILE_HEADER
    V$DELETED_OBJECT
    V$LOCK
    V$LOG
    V$LOG_HISTORY
    V$LOGHIST
    V$OBSOLETE_BACKUP_FILES
    V$OFFLINE_RANGE
    V$PROXY_COPY_DETAILS
    V$PROXY_COPY_SUMMARY
    V$PROXY_DATAFILE
    V$RMAN_BACKUP_JOB_DETAILS
    V$RMAN_BACKUP_SUBJOB_DETAILS
    V$RMAN_CONFIGURATION
    V$SESSION
    V$TABLESPACE
    V$THREAD
    V$UNUSABLE_BACKUPFILE_DETAILS
    3) Log Files
    The contents of the log files are viewed using LogMiner - read Chapter 11 of the Oracle Utilities manual

  • Implementing maker-checker functionality using PLSQL

    Hi,
    I would like to know if someone has implemented maker-checker functionality. If so then please let me know the tables/views to be created. PLSQL code to implement the logic. If you have any design document then please share.
    Looking forward for your help.

    user10566312 wrote:
    Hi,
    I would like to know if someone has implemented maker-checker functionality. If so then please let me know the tables/views to be created. PLSQL code to implement the logic. I'm not going to do your work. But I'd like to share an Idea:
    The table containig the objects needing double-check would get a mandatory Creat_user attribut filled with the (front end) user name drawn from the v$session.
    Then I'd create a "Check" table with Object_id and check_user as the only attributes. The check_user
    attribut would also be filled with user name found in v$session.
    I'd have a Trigger on the "Check" table making sure that the user inserting the "Check" entry is not the same as the one that created the Object.
    Of cause I'd prevent inserting or updating the user attributes with custom values.
    bye
    TPD

  • Can I insert pretest questions as knowledge checks between content slides and before a graded quiz without affecting the scoring of the graded quiz? Help documentation states that they should be used before a course begins.

    Can I insert pretest questions as knowledge checks between content slides and before a graded quiz without affecting the scoring of the graded quiz? Help documentation states that they should be used before a course begins.
    If I use both pretest questions and graded questions, can I also include remedial with return to quiz for both?

    Sorry, but I gave two workarounds: my preference is custom question slides, but you can also have questions slides where you do not add the score to the Total score. They will not be reported to the LMS and can act as Knowledge slides. Only some quizzing system variables can count all question slides, including the Knowledge slides, but the core variables (score, maximum score, percentage) will be correct. Here some links to my blog, that could help you:
    System variables in Captivate 8 - Captivate blog
    Intermediate Score Slides - Captivate blog
    That each SCORM module can have only one quiz is a SCORM requirement, not a a Captivate specific feature. Camtasia is bit difficult to compare, it is not a fully blown authoring tool although the best video screen capture tool around (video is non interactive by definition). I don't use Storyline, but cannot imagine that they shouldn't create SCORM-compliant files.

  • Instantiation error with custom filter implementation

    have implemented the custom filter in oracle UCM 11. component is created via component wizard and it's succesfully deployed and enabled in content server. filter is being associated with event validateStandard.
    when we check-in a file, check-in is failing due to message below
    Unable to do filter 'mypackage.CustomFilter' for type 'validateStandard'. Unable to instantiate java class code for 'mypackage.CustomFilter' at location 'mypackage.CustomFilter'
    we've placed the java class file under custom component folder. with-in custom component folder we've created mypackage and then placed class file (since mypackage is java package).
    Below mentioned is the stacktrace,
    !csUserEventMessage,weblogic,localhost:16200!$!apFilterInstantiationError,mypackage.CustomFilter,validateStandard!apUnableToInstantiateClass2,mypackage.CustomFilter,mypackage.CustomFilter
    intradoc.common.ServiceException: !apFilterInstantiationError,mypackage.CustomFilter,validateStandard
    *ScriptStack CHECKIN_NEW_SUB
    3:doScriptableAction,dDocName=testtest3:doSubService,dDocName=testtestCHECKIN_NEW_SUB,dDocName=testtest3:validateStandard,dDocName=testtest
    at intradoc.shared.ComponentClassFactory.createClassInstance(ComponentClassFactory.java:172)
    at intradoc.shared.PluginFilters.filterWithAction(PluginFilters.java:90)
    at intradoc.shared.PluginFilters.filter(PluginFilters.java:68)
    at intradoc.server.DocServiceHandler.validateStandard(DocServiceHandler.java:1228)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
    at intradoc.server.Service.doCodeEx(Service.java:603)
    at intradoc.server.Service.doCode(Service.java:575)
    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
    at intradoc.server.Service.doAction(Service.java:547)
    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
    at intradoc.server.Service.doActions(Service.java:542)
    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1322)
    at intradoc.server.Service.executeSubServiceCode(Service.java:4023)
    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
    at intradoc.server.Service.executeServiceEx(Service.java:4018)
    at intradoc.server.Service.executeService(Service.java:4002)
    at intradoc.server.Service.doSubService(Service.java:3912)

    It looks like the filter is not properly locating the compiled Java class.
    In Component Wizard, did you go into the Advanced Build Settings and ensure there is an Install ID and the classes properly points to your compiled Java class?
    Here is a sample component which implements a filter: http://jonathanhult.com/blog/2012/07/minify-css-and-javascript-automatically-in-webcenter-content/
    You can try loading that into Component Wizard and determining what your component is missing. You could also compare the manifest.hda files between components.
    Jonathan
    http://jonathanhult.com

  • Design guide line for filter implementation

    Dear all,
    In a winrt application I need to implement a filter. The filter is in place in order to avoid to load all data. So that filter will be the strating point of my app and it has 3 level :
    - Category
    - Sub Category 1
    - Sub Category 2
    - Sub Category 3
    My design concern is the following :
    Does such a filter is better to implement in the application interface Inside the MainPage or is it better to define the filter as a SettingFlyout control ?
    thanks for advise
    regards

    Thnaks for your reply.
    Yes the filter will be a UserControl and that user control is based on 4 comboBox but my concern is more on the following user action :
    Scenario 1 :
    - The app bar contain a filter button
    - User press the filter button
    - The filter user control gets display in the middle of my Main application Page
    Scenario 2 :
    The app bar contain a filter button
    - User press the filter button
    - A custom Flyout Windows appears in similar way as a  Setting app flyout on right side edge
    - The custom Flyout contains the Filter control
    Which approach is best ?
    I think I find out the answer from this link :
    http://social.technet.microsoft.com/wiki/contents/articles/22608.windows-8-1-how-to-create-a-filters-control-like-health-fitness-and-food-drink-apps-in-xaml-and-c.aspx

  • How to check selected content on page

    Hi all,
    I would like to create plugin that works with selected content on document. Plugin should do following: user selects some frame, graphic content that is placed on document. Than he opens my plugin and click on button. After button click I must check if something is selected (it would be only graphic items, not table and text), then I would like to get information (on which page is placed, is in the frame picture, dimension of frame...) from selected item. So I would like to ask you what is the best approach for that.
    Right now I have selection manager and from that I get ILayoutSelectionSuite and dont know what to do next, I have been looking thru adobe documents, but didnt find any article about it...
    thx

    Hi all,
    I have a little problem with calling my selection suite. I have following hierarchy:
    In STButtonAction I handle button clicks, when user select button I would like to chech is is something selected and if yes, than I would like to get from that selection some information about it. I placed in ASB virtual method called MyTestMethod(ISelectionManager *myManager), in Layout CSB I wrote its implementation:
    void STSuiteLayoutCSB::MyTestMethod(ISelectionManager *myManager)
      InterfacePtr<IGeometrySuite> itemGeometry(myManager, UseDefaultIID());
              PMRect bounds = itemGeometry->GetSelectionBounds() ;//what to use here??
      cout << "Something just happend...";
    Now I have 2 problems, first: when I get Interface pointer to IGeometry suite, it dont know its method GetSelectionBounds (I have noticed, that this method is virtual, so It does nothnig and somewhere must be its body writen...) any tips, how to get this working??
    And my second problem is, How to call my suite?? When I try something like this:
    Utils<ISelectionUtils> iSelectionUtils;
              if (iSelectionUtils != nil) {
                             ISelectionManager* iSelectionManager = iSelectionUtils->GetActiveSelection();
                             if (iSelectionManager != nil)
                                                 InterfacePtr<ISTSuite> iLayoutSuite(iSelectionManager, UseDefaultIID());
                                                 if (iLayoutSuite !=nil)
                                                                     iLayoutSuite->myMethod(iSelectionManager);
    It tells me that, ISTSuite was not declared in this scope... I think, that I am doing something wrong...
    thx for any tips

  • Weblogic 7.0 and 6.1 javax.servlet.filter implementation

              Hi All,
              I was using weblogic 6.1 and as my organization wants to go for 7.0, we
              are in the process of evaluating 7.0 ver.
              WL6.1 javax.servlet.filter interface provides the methods doFilter(), setFilterConfig(),
              getFilterConfig(). We have an implementation for the Filter which also contains
              a private method init(FilterCongig filterConfig).
              In 7.0 javax.servlet.filter interface the methods are doFilter(), init(), destroy().
              Because of the obvious reason i have a private implementation of init(FilterConfig
              )in my code the build does not succeed. When i checked the java specifications
              from Sun site I found 1.3.1 and 1.4(beta) specs provide doFilter(), init() and
              destroy().
              Question is: Is weblogic 6.1, JDK 1.3.1 compliant, if so why there is not init()
              method in the filter interface??. (Otherwise its a bug)
              Because of this the porting has become a serious issue as in some cases we need
              to support both 6.1 and 7.0
              

    6.1 did not implement the final version of the Servlet 2.3 specification, that's
              why you see differences.
              http://edocs.bea.com/wls/docs61/notes/new.html#1064420
              Sanjeev <[email protected]> wrote:
              > Hi All,
              > I was using weblogic 6.1 and as my organization wants to go for 7.0, we
              > are in the process of evaluating 7.0 ver.
              > WL6.1 javax.servlet.filter interface provides the methods doFilter(), setFilterConfig(),
              > getFilterConfig(). We have an implementation for the Filter which also contains
              > a private method init(FilterCongig filterConfig).
              > In 7.0 javax.servlet.filter interface the methods are doFilter(), init(), destroy().
              > Because of the obvious reason i have a private implementation of init(FilterConfig
              > )in my code the build does not succeed. When i checked the java specifications
              > from Sun site I found 1.3.1 and 1.4(beta) specs provide doFilter(), init() and
              > destroy().
              > Question is: Is weblogic 6.1, JDK 1.3.1 compliant, if so why there is not init()
              > method in the filter interface??. (Otherwise its a bug)
              > Because of this the porting has become a serious issue as in some cases we need
              > to support both 6.1 and 7.0
              Dimitri
              

  • When I check the content in a test server I get this: ssl_error_bad_cert_domain and the option to accept, but in a iframe I get the same error but theres not op

    I work in an international company and we have a server farm with 54 servers, so I need check content in all of them for 118 countries, I created a little application to do this and the problem is this:
    When I check the url in the main window I get: "Error: ssl_error_bad_cert_domain" but there is "add exception" option and the problem ends there. But my application loads the pages within an iframe and when I try to load them the error appears but there is not any option to continue.
    Could you tell me please which option of the configuration (about:config) I should change to avoid this, because adding an certificate for every country for every server (6372 certificates) it's not an option for me.
    *Note: The error appears because the dns of such servers have several subdomains and the certificate is not valid for the resultant url.

    Facebook uses such servers to store additional content media files and maybe CSS and JavaScript files.
    Reload web page(s) and bypass the cache.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Cmd + Shift + R" (MAC)
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

Maybe you are looking for

  • Delivery Date

    Hi all, I just want to know, when I create a delivery on December 16 (Sunday), the schedule lines confirmed the delivery on December 17 (Monday). But I have checked the factory calendar, we stated there no freedays on weekends and holidays. I dont kn

  • Time setting for pdf file presentation

    Can I set different times for different pages of my pdf file when using the whole screen presentation in Adobe Reader? Thanks!

  • How to uninstall trial to install purchased suite

    Through college we were to install trial adobe creative design suite premium until our purchased software came in. My purchased adobe creative design suite premium software has arrived and I would like to make sure I perform the correct process to un

  • Forms Central Upgrade Question(s)

    Why do I need an upgrade when I am already paying the $50 per month for the cloud plackage?  And if I do actually need an upgrade, why won't the system allow me to do it?  I just embedded my new form onto the website and I have no way of being notifi

  • Can i downgrade to Lion?

    I bought my retina as Lion but upgraded to Mountain Lion. But i think Mountain Lion takes too much battery up, so I should downgrade... is that possible to do myself? Or do i need to go to the store?