Applying some icon when file is checked out

hi,
I am using JDeveloper Studio Edition Version 11.1.1.6.0
for file checkout operation i have performed following set of Operation
String myFileToEdit = null;
byte[] fileData;
ServiceResponse myServiceResponse = null;
mainContentOperation = new MainContentOperations();
try{
IdcClient myIdcClient = Util.getInstance().getUCMConnection();
String username = Util.getInstance().getCurrentUser().toString();
IdcContext myIdcContext = new IdcContext(username);
DataBinder myRequestDataBinder = myIdcClient.createBinder();
myRequestDataBinder.putLocal("IdcService", "CHECKOUT");
myRequestDataBinder.putLocal("dID", myId);
myRequestDataBinder.putLocal("dDocName", myContentId);
myServiceResponse = myIdcClient.sendRequest(myIdcContext, myRequestDataBinder);
/* myResponseDataBinder = myServiceResponse.getResponseAsBinder();
DataObject myDataObject = myResponseDataBinder.getLocalData();
System.out.println("File checked out successfully");
int intReportedFileSize =
Integer.parseInt(myServiceResponse.getHeader("Content-Length"));
int intRetrievedFileSize = 0;
InputStream myInputStream = null;
InputStreamReader myInputStreamReader = null;
try {
myInputStream = myServiceResponse.getResponseStream();
if(myInputStream==null) {
System.out.println("MYINPUTSTREAM IS NULL");
myInputStreamReader = new InputStreamReader(myInputStream,"UTF-8");
int numSize = myInputStream.available();
fileData = new byte[numSize];
while(numSize > 0) {
int result = myInputStream.read(fileData);
if(result == -1)
break;
out.write(fileData);
out.flush();
now if i want same icon on document which is checked Out , how can i do it
Regards

This could be achieved with the custom component which will modify how Content server displays search result or other page with content info. For the correct method of inserting icon I would look into the way how Records Management add, inside document title, specific icon for records.
Regards,
Boris

Similar Messages

  • How to get "ShareWithMe" files with "check out" status?

    Hello All,
    I was working on try to get "ShareWithMe" documents via SharePoint 2103 Query APIS with CSOM and REST service.
    Practically it works good using the "SharedWithUsersOWSUSER"
    manage property from this way: 
    https://domain-my.sharepoint.com/_api/search/query?querytext='*'&querytemplate='SharedWithUsersOWSUser:"someone"
    But, this search query is not working for files that has been set up to "check out",  I
    mean this scenary :
    e.g
    I upload a new file to my documents. 
                    Check out the file.
                    Share this file with someone.  
    I could verify that  "SharedWithUsersOWSUser" property has a empty value  for check out files that has been shared with someone, and this it will be the reason for what the query displayed above is not working in this case. 
    an extra test that I did it was : change the file shared from "check out" to "check in" and then the query it worked as expected.  
    Is there some way to get also these files(with "check out" status) ? I can see that it works very well on OneDrive for business - "ShareWithMe" page, I mean all files that it were shared with the current user are listed there, without to
    take into account if these files it were set up to check out or not. Please, some suggestion ?

    When the file is checked out and metadata is changed while it is checked out the search crawler will not pick up the change until it is checked in. When you make changes to a file while it is checked out they are considered temporary changes until they
    are checked in.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Out of memory errors when reporting on checked out files

    My Dreamweaver CC version is up to date. I haven't been able to complete a report to find checked out files. I can see it running at a speed of about 2 files per second. We have a few thousand files on the web server, but I didn't have a problem with CS5.5. I can't understand why it takes so long to simply search for .LCK files. I can search for them using Agent Ransack in a matter of seconds. I've seen some other out of memory issues posted here too, so hopefully Adobe can get this fixed and release the next update soon.
    (I haven't seen any improvement in performance with the 64-bit re-engineering.)

    Hi AdobeJobie,
    We would like to investigate your case. If you have a purchased version of DW, send me your Adobe ID, location, and contact details (email, phone number) over a private message. Click my picture and use the message option.
    Thanks,
    Preran

  • Files show checked out in RSC but not in RH7

    I had originally posted to the RH for HTML category but after
    thinking about it a little further it may be more appropriate to
    this board.
    Hello, and thanks in advance for any help you can provide.
    I'm running RH7 on XP and we use RoboSource Control as well.
    I have been off this project for a while and another writer was
    working the project. I can't say if work flow has anything to do
    with this issue but FYI.
    I tried to edit a topic and it said it could not be checked
    out "multiply," even though it was not checked out in my project. I
    looked at RSC and it showed check out along with many other topics.
    I tried editing a topic and then clicking "Check In All" and
    nothing changed. I can check some of them in using RSC but some say
    "not checked out" even though the red check mark is in place.
    When I right click an entry in RSC and click CHECKIN, the
    dialog (CHECKIN) that opens says "nothing to check in." But if I
    click OK, a "Resolve Ambiguous Checkin" dialog opens with that
    topics file name listed. I click OK and the red check mark is
    cleared.
    There are a lot of topics and I'd like to figure out how to
    check them in as a group if possible, and also why this may be
    happening.
    Again, thanks for any info you can provide.
    Regards
    Joe

    Thanks Leon. I have been able to manually get all but a few
    files checked back in using the process I described in my first
    post. Most of the remaining appear to have been deleted from the
    "client side" and still resided in RSC as checked in, so I'm going
    to delete those in RSC. But three files are still in the project,
    and the Resolve Ambiguous Checkin has nothing listed if I try the
    right-click, CheckIn, OK, etc
    I was hoping there was a specific reason, or action, that
    explained how or why these ended up in the checked out state. I do
    think it's a work flow issue of some sort and wanted to be able to
    explain to the other user.
    After I reopen the projects and see whether all of this has
    caused any problems or not, I'll post the results good or
    bad.

  • Getting "error in XML task" when trying to check out projects

    I get the following error when I try to check out projects on our SAN (where everything is):
    Here's the error in full:
    error in XML task: error writing XML document: You do not have appropriate access privileges to save file “002800.xml” in folder “0000000000004f17”.
    Anybody got any clue? Appears to be a permissions issue with the Version.bundle file contents. We just set up users and groups on the SAN with LDAP Open Directory, added the Groups to the FCS System Pref Pane, but are getting no joy when logging in as a User who is a member of a Group that has been added.
    Ideas, anyone?

    Hi Josh, thanks for responding.
    No, I did not set up anything like that - this is a pretty plain jane setup, just trying to check out an FCP project. Some work was done on the SAN while I was away, and now we can't get it to work. The IT team (I'm just the FCS guy) says permissions appear to be correct, but it isn't working, and it did before.
    I presume that if user A is trying to check out a project, that FCS is doing the dirty work at a permissins level, so it'd be the FCServer machine's admin account that set up the FCS install that needs permissions....right? Or user A? In either case, we can't get it to go.
    -mike

  • Must *.fpj file be checked out exclusive?

    RH9, RH9 Server, WebHelp Pro, TFS source control
    We are two authors working on a project. When one of us attempts to create a project, TFS blocks it saying that the project .fpj file must be checked out exclusive in order to create a topic.
    Of course we can solve the problem by one of us checking it in so the other can create a topic. But should this really be necessary?

    Hi,
    The *.fpj files are located in each folder in the project. If you add a topic, RoboHelp adds a link to the topic in the .fpj file so it knows which topics are part of the project. The same goes for the .hhc, which holds the TOC. If you want to modify the file, you need to check it out. I don't think RoboHelp supports multiple check out, but I may be wrong.
    If the TOC is a problem, you can create multiple TOC's in the project and merge them in the default TOC. When you check out one of the TOCs, the other can continue working with the other TOC's. Nothing to do about the .fpj.
    Greet,
    Willam

  • Folders won't show some icons when attached to dock

    Hello guys
    I am experiencing a very annoying issue. Turns out that the folders, when put on dock, won't show the icons that are not mac-standard (like .mkv movies, .rar, etc.).
    Here's a screenshot:
    http://i162.photobucket.com/albums/t273/rique333/Screenshot2011-05-21at104346PM. jpg
    Hope you guys know how to fix it.
    Thank you

    I'm not sure if Exchange account settings are made available for transfer to an iPhone via the iTunes sync process.
    Have you tried manually creating your Exchange account on your iPhone using the Exchange account preset?
    If you plan on syncing contact info and calendar events over the air with your Exchange account on your iPhone, all existing contact info and calendar events on your iPhone will be erased and replaced with your online contact info and calendar events at the Exchange server.
    With an Exchange account, you can sync contact info and calendar events direct with Outlook 2003 or 2004 via the iTunes sync process, or you can sync contact info and calendar events over the air. You can do one or the other, not both at the same time.

  • Message Mapping .. Some Icons under Design Tab grayed out

    Even in Edit Mode these Icons are grayed out.  How Can I fix this problem?. Someone in another thread suggested Java Webstart version 1.4.2_06 thru 1.4.2_09 fixes this problem.  I downloaded 1.4.2_09 and installed but didn't help. Anyone has similar problem ?

    Hi ST,
    Go to Control Panel ->chhose Java->choose Java Tab-> under this you will see Java application run time settings ->click on view button and check that
    1 .your java run time version is working .
    2. more over what are the java version available there and only on eshould be used for this purpose.
    Kindly let me know is this problem is only with the components under particular Software component version or it is with whole IR.
    regards,

  • How get other computer to show in finder when file sharing checked?

    I'm sharing files between my imac and my macbook air.  I click on File Sharing in System Preferences on both computers.  Sometimes the finder window shows the other computer and I can share.  But other times there seems to be no way of clicking, of turning on and off, that will result in the other computer coming up on the Finders.  Suggestions?

    When you turn on file sharing you need to share specific folders that you can access through finder, when you have shared these folders they will be located under the shared section of the finder sidebar.
    Also, if you're sharing the whole computer goto Finder > Preferences > Sidebar and make sure Bonjour Computers are ticked under shared.

  • Displaying correct icon when file is listed

    Hi,
    I have a page where I allow users to download documents, I want icons on the left of the file name so the user knows that the file is either PDF/DOC/XLS.
    I have the icons ready, and all I need to know how do I tell which icon should be loaded based on file type?

    If this is a database driven app you could add a field that allows you to designate a "file type" and then use conditional logic, an IF statement, to display images based on the declared file-type.
    Lawrence Cramer  *Adobe Community Professional*
    www.Cartweaver.com
    Complete Shopping   Cart Application for
    Dreamweaver, available in PHP and CF
    Stay updated - http://blog.cartweaver.com

  • Itunes 9 music player randomly stops working when I'm checking out music

    Before I buy something I like to sample it first. And I can do that most of the time. But every once is awhile it will stop working in the middle of a song. Then it won't work at all anymore. If anyone knows the solution please tell me. Or if there was maybe someone in apple that I could get a hold of too. That would be great. Thanks.

    First I would try this
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    Next remove the Apple software using the instruction above and install a previous version. You can Google to find the previous versions

  • Dreamweaver CS6 crashes when checking out a file

    Not sure what all the information you might need, but here are the basics. 
    When I check out a file the following happens:
    1. Open Dreamweaver CS6
    2. Check out a file (both Double click on file or Right clicking and choosing 'Check Out')
    3. 'Background File Activity' window spastically flashes for a minute then program crashes.
    4. Reopen Dreamweaver CS6, file is checked out and usable.
    I have tried reinstalling and deleting my WinCacheFile, no change. This happens with all servers I currently connect to.  Checking In a file doesn't do this.
    Does anyone have an idea on what my next steps might be to fix this?
    I'm running WinXP and have the CS6 Suit.
    Thanks in advance
    JackieW

    "antum" <[email protected]> wrote in message
    news:fjkurv$ken$[email protected]..
    >
    > I have a file that crashes when I open it and place my
    cursor in the body
    > of
    > the file. I have tried copying the content into another
    file and saving it
    > under another name with no luck. I also opened it in
    notepad and tried
    > looking
    > for strange characters but nothing weird. Any ideas? I
    created and edited
    > the
    > file in dreamweaver CS3.
    >
    Can you copy & paste the code into a message here?
    Patty Ayers | Adobe Community Expert
    www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet

  • Editing XMP metadata in Bridge for checked-out files?

    Our custom connector does not implement the WRITE_XMP_METADATA Capability because we do not want to change the XMP of a file in our DAM system without checking in a new file version.
    However, when a file is checked out through Adobe Drive, we would expect to be able to edit its XMP metadata in Bridge just like we can for local files.
    It looks like this is still not possible with Adobe Drive 3, i.e. if your connector does not implement the WRITE_XMP_METADATA Capability you cannot edit XMP for checked out files either.
    It seems weird that you can edit XMP metadata for checked out files with regular CS applications but not with Bridge. Is this something that is expected to be fixed in a future version?
    Thanks

    In our design, editing XMP data in Bridge and in regular CS applications is different, the former one will be routed to SetXMPHandler in you connector, in the latter case, CS applications take the normal file writting ways to embed XMP data in the file content.
    The purpose of this design is to offer similar user experience for normal users when they edit XMP data for AD assets and local file assets, they don't need to check-out files first.
    To address your issue, I think you can add some codes in SetXMPHandler to auto check-out files before real XMP operation, and check-in them before exiting the handler
    We will consider to make some enhancements for this part, that's, to allow editng XMP data for the checked-out files in Br, in the next release, thanks for this advice.

  • Visual Source Safe keeps checking out my .cs file associated with a report

    Hello there.
    I am new in this community and I need some help. I am part of a team that works with Crystal Reports under .NET framework and we are using Ms Visual Source Safe. Any time we open a solution (.sln file) all .cs files associated  with a Crystal report are checked out. This, of course, drives all of us crazy. If I try to delete the .cs file, it is added automatically. And we could not find any solution to this problem.
    I compared the 2 .cs files (before and after check out) and the indeed differ. The namespace , to be more specific is different.
    I believe the problem is that we are using a separate project that contains the report files and then those .rpt files are added as links to the main project.
    So ... my question is... is there anyway I can tell Sourcesafe or Crystal report or any other program, application or person to stop checking out my .cs files or stop modifying them?
    Thank you.

    Hello  Don.
    Thank you for your answer.
    It seems I have SP1 already installed. I am referencing the following files with versions in my report project:
    CrystalDecisions.CrystalReports.Engine v12.0.2000.0
    CrystalDecisions.Enterprise.Framework v12.0.1100.0
    CrystalDecisions.Enterprise.InfoStore v12.0.1100.0
    CrystalDecisions.ReportSource v12.0.2000.0
    I personally believe that the problem is with the link files.
    To be more exact, I have several projects (csproj) that handle all reports and report loading. I also have several applications that refer these projects (not all in the same time). Because all .rpt files are loaded at runtime, I made these files Embedded resources and I created a folder in the main projects named Reports where I added all .rpt files as links.
    When I open main application A solution, all .cs files associated with the .rpt files are checked out (the namespace is modified to A).
    When I open main application B solution, all .cs files associated with the .rpt files are checked out (the namespace is modified to B).
    And so on.
    And since we are a team of several developers working with all main applications, this is rather annoying.
    I hope this presents my situation a little more clear.
    Any ideas?
    Thanks again

  • Question about deletion of checked out file using CMIS connector

    When testing file deletion with Adobe Drive connected to an implementation of CMIS server, I ran into some mildly unexpected behavior for when the file is checked out.
    I successfully checked out a file through Adobe Drive then deleted the file. Our server has a constraint that checked out files are protected against deletions, renaming, and moves. So, I was expecting the operation to fail. Instead, the result was that the file had its check out canceled.
    In the AtomPub binding, a cancel check out is specified by deleting the pwc version of the the checked out file. So, this behavior did not strike me as too far off my expectations and I confirmed that the objectid in the deletion request sent by Adobe Drive was the id for pwc version of the file.
    Is this behavior intentional? Or is this an artifact of the way Adobe Drive caches the objectid of files? Check out requests do return an objectid and that objectid is that of the new pwc version of the file. So, the later behavior would not surprise me.
    Thanks

    Hi,
         Yes, this behavior is intentional.
         To bypass the possible constraint during deleting a checked-out file, Adobe Drive intentionally try to cancel check out this file by deleting the pwc version of the checked-out file.
    Regards,
    Gang

Maybe you are looking for

  • Exception - If table is Invalid

    Hi All, I have following procedure... what exceptions should be used if the table name which i am passing is invalid. Can i give INVALID_CURSOR????? Specification Used table type...    TYPE t_tab IS TABLE OF VARCHAR2 (4000);   PROCEDURE PROCESS (    

  • Importing external hard drive back on to Mac OS X

    My mail account, itunes account, and address book are all backed up on my external hard drive. I would like to know if anyone knew the best way to import all my information back onto my main Mac computer? Message was edited by: Austin Smith2

  • Nokia N8 touch Screen stop working..

    first of all Thankyou for reading my post. espicially to those who wanted to help me. also before i post this problem i read lots of problems same as my phone problem. main is Touch Screen wont work. i did this. 8secs depressed the power botton. fail

  • Extended Rebate Processing-Pendelum List Indirect Sales

    Hello Experts, I find myself with the following requirement. Situation: -       Bonus/rebate payouts are currently conducted to end customers via third party tools. -       These end customers are not served by the company directly, instead goods are

  • Creating a Single Page Peel Interactive Online Brochure

    I'm new to InDesign CS4. Could someone help me in explaining how I can create a single turning page peel interactive online book. I have the job done in InDesign using spread pages format.... and I'm looking to try and output to SWF format as single