Attatching ACL's to the Document Programatically (Agent or Override)

Hi all,
I want to attatch an ACL dynamically to a Document when it is
getting uploaded in the Repository. The ACL will be selected
depending upon in which folder the Document is getting uploaded.
I can see 3 solutions for this.
1) develop an agent
2) develop an override.
3) change the web UI so that i'll get only the required ACL from
the ACL list.
Pls provide some expert comments and if possible briefly how to
develop the following.
Expecting early replies.
With warm Regards,
Shantanu..

Urgent problem
I managed to make my agent (based on the code submitted by Shantanu above) and add it to IFS. But I fear it isn't working quite right.
I seem to experience situations where something unexpected happens - the file doesn't always get the ACL applied and in the log a error is noted (I've put some log statements in in order to debug the agent).
When it works I get something like this:
16:27 Auto_ACL_Agent: Event received for Create
16:27 Auto_ACL_Agent: Processing Create event for a DOCUMENT object.
16:27 Auto_ACL_Agent: Setting ACL and Owner for /home/aboegh/niels.txt
16:27 Auto_ACL_Agent: 2865612AC25644F6BBF465CEE3BACB69 created a new object
16:27 Auto_ACL_Agent: Updating Owner
16:27 Auto_ACL_Agent: Updating ACL
16:27 Auto_ACL_Agent: ACL and Owner updated OK
16:28 Auto_ACL_Agent: Event received for Create
When the event arrives the document object is located and is parent as well. If the parent exist and has a different ACL the new document is assigned the ACL of its parent.
But this is what I get When it fails:
16:38 Auto_ACL_Agent: Event received for Create
16:38 Auto_ACL_Agent: Processing Create event for a DOCUMENT object.
16:38 Auto_ACL_Agent: getAnyFolderPath() returned null?
16:38 Auto_ACL_Agent: Setting ACL and Owner for null
16:38 Auto_ACL_Agent: Exception at processEvent
16:38 Auto_ACL_Agent: null
16:38 Auto_ACL_Agent: DocPath = null
Here I get the event (a new file has been created) but when I handle the event I'm unable to retrieve a path to the object for initiated the event!
This shouldn't happen. But maybe this is impossible to avoid? Is it because agents run asynchronously?
Or I have missed something else?

Similar Messages

  • Not able to fetch the item level rating for the document programatically in sharepoint 2013

    Hi,
    I am trying to get the current logged in user rating for items in document libraries . However. It is giving rating as 0 for the all the documents. I am using below code
     SPSite site = new SPSite(SPContext.Current.Web.Url);
                        SPWeb web = site.OpenWeb();
      string fileUri = "http://svdvspapp01:2015/" + webUrlSplit;
                                Uri urifileUrl = new Uri(fileUri);
                               SPServiceContext context = SPServiceContext.GetContext(site);
                                SocialRatingManager mySocialRatingManager = new SocialRatingManager(context);
                                SocialRating aRating = mySocialRatingManager.GetRating(urifileUrl);
                                string myRating = aRating.Url + ": " + aRating.Rating;                       
                                objtopRated.myRating = myRating; } }In the above code fileUri is the docuemnt url of the item in doc libraryeg. http://svdvspapp01:2015/ProductsandPricing/Pricing/Pricing_Document 1.xlsxI refrred the below msdn linkhttp://msdn.microsoft.com/en-us/library/ff407954.aspx

    Hi Labhesh,
    I understand that you want to search the date field in the document library inline search.
    I recommend to use the managed property for the dates column in the query.
    For example, if the managed property for the date column is called testdate, then type “testdate:2014-11-28” in the search box in the library for searching the date.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Document Viewer Agent

    I have not done much with GroupWise 2012 so I apologize for this question, my customer is having an issue with the document viewer agent (gwdva) and I really do not know the answer, but I thought I would post here, please see the following,
    most locations have a single post office, about 3 or 4 locations contain multiple post offices. I have read through the documentation, but I have not found a definitive answer on how to configure multiple copies of the gwdva to run in a cluster environment where it is possible that more than one gwdva may need to run on the same cluster node.
    Can the agent run twice on the same cluster node (or is this like the POA or MTA that can only have one because of a port conflict?)
    Any assistance would be helpful,
    -D

    Hi D
    You can have multiple MTAs and POAs running on the same cluster node as long as you are setting the "Bind Exclussive" setting on each agent to only bind to the IP address of the cluster resource. I have successfully run 2 x POAs on the same cluster node without a problem.
    As far as the DVA is concerned, I set up only one DVA in my clustered environment and configured all POAs to just reference that single instance. My environment is small enough to do it. The documentation is a bit lacking on the DVA setup, unfortunately. I can't remember my exact DVA setup. When I'm back at the office let me see what I can dig up for you.
    Cheers,

  • Does anyone know a way to programatically loop through the items in the document library

    A lot of the funcations like deleteSymbol and updateSymbol depend on which items are "selected" in the library panel.
    Is there a way to programatically access these selections?
    or
    Loop through the library?
    or
    Set selections?

    Yup, I've asked for an API to access the selection in those panels for years, to no avail.
    Note that you can loop through layers, frames and pages, but you can't tell what the user has selected in the actual panel UI.  Also, you can't find out which symbols are currently used in the document.  Nor can you programmatically insert a rich symbol into the document and have it maintain its "richness".

  • IPM11g: Uploading the document through Input Agent

    Hi,
    What is the difference between uploading the document through "*An input*" (which that maps an input file to an application when documents are uploaded in the background by the Input Agent.) and through "*Upload Document*".
    Thanks

    hi,
    1. Storage area [Content reposotory] ex-ZDMS,
    2.you need to create storage category ex-Z_DMS_DOC,
    3. you need to maintain this category in ZDMS.[Content repository].
    then run bapi,
    Benakaraj

  • For four days I have been unable to open a lot of documents. When I try I get a message "The document "name" could not be opened. You don't have permission. This has happened to an important letter which I corrected four times. My Mac has altered the name

    This problem began when I typed in an address http www etc., making one mistake in the address. I corrected it and then tried to copy the address because it was long (I wanted to be able to acces it another time), and that's when the trouble starrted. I just copt documents to get a new one because it's quicker, but it is unorthodox, I know. Since then whenever I copy a document i cannot open it, and it often puts a gobledegook ending to the document name. I've started emailing texts to myself so as to keep them, but I MUST be able to use documents normally. I hava a MacBook Pro, using OS Mountain Lion 10.8.5. I don't like it. It's fairly new, and has messed up my system of documents : the size is alll wrong and the tabulations are worse than ever. I use text edit because I wanted to use Macdictate because I am handicapped (arthritis and firbomyalgia) but I have never been able to get it to work. Since I changed OS I cannot use Text edit properly any more. Please help me. I think it must be a bug that came through when I was putting this address in four days ago. I went to the site once I'd corrected the address and it was perfectly normal. I shall ring them today and ask them if this has happened to anyone else. I live in France. Thank you for your advice. Because I am handicapped and I do not dirve, it is very difficult to get to a Mac store. I deleted Mac cloud documents because I don't want to use it and I thought it might solve the problem, but it didn"t.

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click anywhere in the following line on this page to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • HT4356 I don't have wireless printer. How can I print out the document?

    I don't have a wireless printer. How can I print out the document from regular printer?

    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad  ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99)  http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
     Cheers, Tom

  • Create Attachment issue in storing the document

    We are facing an issue in tranaction PR05 (Travel Expense Manager) on services object for Create Attachment. We would like to know is there anyway/manage to find any setting so that the u201CCreate Attachmentu201D  would result in storing the document on the content server like the u201CStore Business Documentu201D does.
    Please advise and confirm.
    Thanks & regards
    AK

    I try to answer based on my understanding.
    If you want to store the document in the server when attaching the document in Services for object, it can be done.
    You have to define the directory in the server where the documents are to be stored. Also you need to define a naming convention for all the files which need to be stored in the directory.
    Then you have to programatically enable the services for object to store the files in the directory created for that purpose. Also on clicking, you should programatically enable the document fetching from the directory by making use of the naming convention.

  • How to save a document programatically when u click on "Run Query" button

    Hi all,
    I am new to BO Web Intelligence java SDK. I am using Java Report Panel to edit and save the document.
    (As per my knowledge the default functionality of the Java Panel is, once u edited the document query and then run the query and  as when as u click on the "Save" icon then only the report will be saved into the repository )
    What my doubt is ?
    Once i edited the query in java query panel, when i click on the "Run Query" button the following operation needs to be performed
    1) The doucment has to be saved in the specified reposiory folder.
    2) The SQL for the docment has to be captured.
    how to do the above operations programatically?  can any body help me please.... thanks in advance
    Thanks & Regards,
    Madan Kumar

    You would have to modify the Java Report Panel to be able to do this.  There is no documentation on how to make modifications to the Java Report Panel, and it is beyond the scope of what assistance support would be able to provide you.  There may be people in the community that have done this before that can assist you.

  • The best forwarding agent determination during shipment processing.

    Hello,
    Standard SAP allow freight cost estimate during shipment processing for particular forwarding agent - "Freight cost estimate" button.
    Is it possible in standard to automatic determination of the cheaper forwarding agent based on freight cost estimation?
    Andrzej

    Dear Andrzej,
    Through "Freight cost estimate" you can find out which farwarding agent is cheaper than other  based on that you can deside  which FA is feasable.
    I don't think system will determine automatically the cheapest FA in the shipping documents.
    I hope this will help you,
    Regards,
    Murali.

  • Performance Appraisals-Only show the document in certain status/substatus

    Hello
    We would like the appraisee to see the document only in (Status "X" and Substatus "Y") OR Status = "XX". The Appraisee should NOT have access in any other status. Which BADI/approch can help us meet the requirement? We tried using the BADI HRHAP00_DOC_BC but that does not seem to help.
    Please advise ASAP.

    Hi Swetha,
    1) How do you create the person authorized in the Status flow.
    (for eg: I have a scenario like this..The authorized HR person would set objectives for group of employees at the beginning of the year for annual appraisals and also he should be able to change or add more objectives if required in the Review period. After the completion of one year, the Manager, Self and Higher Manager will give their ratings and the final result should be displayed only to the HR Personnel)
    I have Appraiser, Appraisee, Part Appraiser, Higher Manager and All users right now in my system and I am using All users.
    Ans : Person authorized should be created through the tcode PFAC. This s the place where rules for workflow have to be created. Once it si done here, the corresponding rule has to be added to the Tcode OOHAP_BASIC. The rule add to this tcode will be visible in youe category group and category, template  in PHAP_CATALOG. As far as possible try to use the standard rules available. All the users you have mentioned above have a standard role in SAP.
    2) How would you give authorization to only HR person?
    Ans : Can you be more specific here. Like what exactly the HR person has to do?
    3) In Status flow, I can see Workflow event. What is it used for?
    Ans : Workflow is used to send the notification and the workitem to the user to whom an appraisal document is available for editing in his inbox.
    Eg on a typical case-> If a self appraisal has to be done, then a workflow will be triggered in the beginning of in process phase. Then the appraisal doc wil be available in the inbox of the appraisee.
    For workflow and Rules(Agent Determination) related objects have an ABAPer who has worked on Workflow.
    Hope this helps you.
    Regards,
    Subbu.

  • Export Shipment Cost Document / Service Agent

    Dear Gurus,
    My client having Exports, Client is sending goods from shipping Point to Port through Truck, its a direct leg. forwarding agent is one from shipping point to port, but another agent is responsible for the "Clearing and Forwarding agent" activities.
    In my shipment document on upper side i put the forwarding agent who is responsible from shipping point to port, and by default there is only one field of forwarding agent.
    But I have two item category so that can call two procedure in the cost document, one is for cost of truck and second is for clearing cost.
    I can successfully call two line items in the shipment cost with two different procedure, but forwarding agent is one. when i double click on the first line and change the "Invoicing Party" system can accept this but still forwarding agent at header is not change. Means when put the check of transfer and save the document both cost hit the same vendor appear on the shipment document,
    I want that shipment cost to be hit to both first line cost to the main agent (truck), and second line cost is to the "clearing agent" which i put on the shipment cost against the "invoicing party field".
    Hope gurus understand the scenario nad assist me.
    Regards,

    Issue resolved, through partner function functionality.
    Add the partner on the shipment document screen, and same would be call on the shipment costing document.
    Regards,

  • Urls to the  documents in the categories urgent please!!!!

    Can anyone provide me the sql query to display all the urls for the documents stored in the categories.
    Is there anyway to programatically constructs the urls and display in a report.
    I appreciate your help
    Thanks in Advance

    I'm not sure I entirely follow what you are looking for when you say "the documents stored in the categories"
    If you are looking for a way to display URLs for documents in a specific category, you could query the WWSBR_ALL_ITEMS view for all items that are of the desired type, are from the appropriate page group(s), and are in that category. If you want to query by the category name, you may need to retrieve that from the WWSBR_ALL_CATEGORIES view since the all_items view only stores the category_id.
    As for programmatically constructing the uRL, there are a couple of ways of forming direct access URLs. If you look in portal's on-line help, they have a topic specifically on that.
    I recently used the 2nd of the two approaches they list when I wrote a package that retrieve the NAME and DISPLAY_NAME values from the WWSBR_ALL_ITEMS view and constructed the URL for the item as:
    htp.p('<a href="[portal base address:port]/pls/portal/url/ITEM/'||name||'">'||DISPLAY_NAME||'</a>');
    where [portal base address:port] is the appropriate value for your system.
    Hope that helps,
    Mark M.
    Portal 9.0.2.6

  • When I try to save, I keep getting the message "The document could not be saved. You don't have permission" - even though I am the Administrator and the Get Info displays "Administrator and (me)".

    When I try to save, I keep getting the message "The document could not be saved. You don't have permission" - even though I am the Administrator and the Get Info displays "Administrator" and my_name(me)". Also, when I do a disk permission repair, it always repairs the same applications and files. Last night, I did a disk permission repair twice and both times it took a long time and did the exact same repair both times.

    Disk Utility won't repair your home folder.  Sounds like your home folder permissions are messed up tho.  Try repairing them this way by using Lion Recovery.
    1. Restart Lion, and before you hear the chime, hold down the Command and R keys.
    2. You’ll be at the Repair Utilities screen. Click the Utilities item in the Menu Bar, then click Terminal.
    3. In the Terminal window, type resetpassword and hit Return.
    4. The password reset utility window launches, but you’re not going to reset the password. Instead, click on icon for your Mac’s hard drive at the top. From the dropdown below it, select the user account where you’re having issues.
    5. At the bottom of the window, you’ll see an area labeled Reset Home Directory Permissions and ACLs. Click the Reset button there.
    The reset process takes just a couple of minutes. When it’s done, exit the programs you’ve opened and restart your Mac.
    Good luck
    RM

  • Is the EMGC 10g agent compatible with AIX5.2 Netware 5.1, Solaris 8 ......

    We want to install the EMGC 10g agents on different platforms.
    Are EMGC 10g release 3 agents compatable an installable on these platforms?:
    AIX 5.2
    AIX 5.3
    Netware 5.1
    Solaris 8
    Windows 2000 Server
    Windows 2003 Server
    Windows 2000 Professional
    Regards,
    Tim Abdoelhafiezkhan

    Have you checked the OEM Downloads page?
    For specific os, hardware and versions info, you should visit Certify within Metalink to find out whether your configurations are "ok" or not. (the OTN Certify backdoor does not go all the way for GC, the new "Grid Control Certification Checker" app still needs a valid login)
    You may also find certification information in the 10.2 GC docu library, from the Installation and Basic Configuration book.
    The platforms you are after might be supported, but you need to check, depending on the hardware (e.g. x86 or x64, SPARC or x86). However, Netware was "dropped" as one of the major supported platforms long ago. Even Novell suggests migration to SLES, which is supported for the 10.2.0.x Management Agent.
    Message was edited by:
    orafad

Maybe you are looking for

  • How do I download Mountain Lion to a flash drive after hard drive failure?

    My hard drive failed and I have purchased Mountain Lion, but do not have a way to get back to the app store to download to a flash drive to install on my new hard drive.  How can I go about getting a copy?

  • SAP renamed 'Purchase Order Data' tabs but it is not changed in menu bar

    In VA01/VA02/VA03  transactions,  SAP has renamed the "Purchase  Order Data" tabs at header and item level to "Order Data" but the Goto > Header   and    Goto > Item    menu paths still have "Purchase Order Data" as the name.  This is inconsistent. 

  • Can i install Cisco prime infrastructure 1.3 with 1.1 license.

    Can i install Cisco prime infrastructure 1.3 with 1.1 license.To be more precise it will be fresh installation but the licenses I have is of 1.1.As per my overview from Cisco prime Infrastructure 1.2 NCS and NCS(WAN) has been bundled into one service

  • HELP: Creating Process Chain flag

    Good Morning,     I was wondering if someone could point me into the right direction on how to create a flag on a process chain that will activate user's reports after selected cubes have loaded. I tried searching the forums but couldn't find anythin

  • How can i transfer the one that i check in a alv in the table

    hi i just want to ask how can i transfer the one that i check in a alv in the table. here is the scenario. ive created a alv with a checkbox, and if i click on some of the checkbox in the alv. then i need it to display in a table as x.