Set a description for a File object

Hello, I have to do a File saving task. I have a directory when I place my files. When i press "Save", a dialog appears and a table lists all my files from that directory. Each file must have a description. My question is how to set a description for a file, and also, how to get back that description. 10ks

public class ExtractionSetFile extends File {
     private String description;
     public ExtractionSetFile( String pathname ) {
          super( pathname );
     public void setDescpription( String descpription ) {
          this.description = descpription;
     public String getDescription() {
          return description;
}

Similar Messages

  • Set the password for zip file in unix

    Hi All,
    I have used the below command to zip the file and it is working fine.
    cd /YYYY;zip -r ZZZZ.zip ZZZZ.TXT
    While using the below command to set the password on zip file , I am getting error like "zip error: Invalid command arguments (encryption not supported)
    zip -P password -r ZZZZ.zip ZZZZ.TXT
    Can you please help me how to set the password for zip file in UNIX.
    Thanks,

    Do you use any characters in the password that might confuse the zip command? (like '-' or ';'?)
    If I use the command in RHEL4:
    cd /tmp
    zip -P password -r tt.zip gconfd-oracle
    adding: gconfd-oracle/ (stored 0%)
    adding: gconfd-oracle/lock/ (stored 0%)
    adding: gconfd-oracle/lock/ior (deflated 67%)

  • When setting up permissions for application files--URGENT

    Hello All,
    when setting up permissions for application files,
    Is this following permisson appropriate?
    If application files are owned by a single owner,
    that owner should be the oracle user.
    DN

    Here is my question again.
    when setting up permission for application file, which permission is
    appropriate?
    a) If application files are owned by a sigle owner,that owner should be oracle
    user.
    b) Application files should be owned by oracle user
    c) Application files should be owned by single user.

  • Showin a variable description  for an info-object depending on a user login

    Hi,
    Client requirement is to show a variable description  for an info-object depending on a user login.
    e.g. a Characteristic Name is Level1 with a description as 'Level1'. If a user in Canada logs in and see a BEx report he should be able to see the description for infoobject Level1 as 'Cost center'.  A user in US may wish to see the description as 'Expense center'  etc. etc.
    Is it possible to do so ? If yes please let me know ASAP.
    Do not get confused with language dependant texts.
    Regards,
    K.Manikandan.

    Hi,
    I don't think it is possible through standard functionality, but maybe you could try a workaround.
    Create a Characteristic (say COMP) with text, and compound it with Infoobject Level1. The values and description for COMP could be
    US Cost Center
    CN Expense Center
    You could make COMP an Authorisation relevant object and check the same with regard to user login, so that the people of sepecific country see only description relevant to their COMP.
    In the report Display COMP as Description and Level1 as Key.
    But do not that compounding may have an impact on the performance, also look into the implications of the same if you need to do it for a large number of reports/objects.
    Hope it helps.
    Cheers
    Anurag
    ......don't forget to assign points if it helps......

  • Setting bind variable for a view object from the Managed Bean

    Hi,
    i am using JDeveloper 11g, i have to create LOV in the JSF. To show the LOV, it has to populate data using View object and its query parameter need to be sent from the Managed Bean.
    For the View object i want to set the bind variable parameter from the managed bean value. bename is stored in a managed bean (session scope)
    #{beantest.bename}
    But it gives the following exception.
    JBO-29000: Unexpected exception caught:
    org.codehaus.groovy.control.MultipleCompilationErrorsException,msg=startup failed, Script1.groovy: 1: expecting '!',found '{'@ line1, column 2.
    I have followed the link http://kr.forums.oracle.com/forums/thread.jspa?threadID=615474 like Frank wrote on 8.2.2008:
    But steps are not clear.
    How to input the VO bind parameter with Managed bean variable?
    Any Help
    Regards
    Raj
    Edited by: user9928180 on Dec 17, 2008 9:51 AM

    Hi,
    a bind variable in a VO needs to be exposed as an executeWithParams operation in the pageDef file. Just add a new action binding to the pageDef file (context menu) and select the executeWithParams operation on teh VO. Then in the argument field, reference the managed bean property for the value
    Frank

  • Setting up FileName for Output file in SendPort

    Hi - I have a requirement setting up FileName in output file. For instance say, whatever I receive in the 'FathersName' field that Output File should be with that File Name.
    For e.g. if data received in FathersName field is JOHN, output file name should be JOHN.xml
    I am using File Adapters on Receive and send side.
    Can this be achieved just by Messaging Scenario or do I need to implement this using Orchestration ?
    If so, please advise on how to do this ?
    e.
    MBH

    To achieve this, you will have to set your filename value on one of the Context Properties available as a File Adapter macro. For example FILE.ReceivedFileName is mapped to the %SourceFileName% macro.
    You have several options to do this:
    Set FILE.ReceivedFileName in an Orchestration.  It does not have to be Promoted.
    Write the Property ReceivedFileName in namespace
    http://schemas.microsoft.com/BizTalk/2003/file-properties in a Custom Pipeline Component.
    If FathersName can be used in the file name unmodified, you set FathersName as a Promoted Property on the schema and Promote directly to FILE.ReceivedFileName.
    For 1 & 2, you will have to extract FathersName somehow, such as a distinguished field.
    A Custom Pipeline Component or direct Promotion are the only way to achieve this in Messaging only.

  • It should be possible to set default behavior for all file types

    It should be possible to set a default action for all file types. I'm so tired of having to manually sit and say "save this file" because Firefail always defaults to "open with" and has disabled the "Do this automatically for files like this from now on."
    And spare me the zealotry religious excuses for why its the fault of websites and not Firefail
    ''edited to remove swearing''

    I do want users to have full control to be able to set any folder view they want by using Apply to Folders; I just want to set the initial/default view to Detail because that matches what the majority of my users want.
    That is, what registry setting changes when I go to a picture folder, change the view to Detail, and click Apply to Folders? Having done that, I still retain the ability to change it to some other view and apply that to folders. But what registry setting
    represents the change I just made when applying Detail view to all Picture folders.?
    This settings is simple via GUI, but it is related a lot of registry keys, I made a test in my machine, capture the "Apply to Folders" process using Regshot tool (this is a small tool which can compare the regsitry changes after you change some
    settings), and this is the result:
    this is part of the registry changes, a plenty of registry keys and values need to be changed. hard to list them here. if you have interests, I recommend the tool Regshot, it can help you capture the regsitry changes.
    NOTE: Please Note: The third-party product discussed here is manufactured by a company that is
    independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's
    performance or reliability.
    Yolanda Zhu
    TechNet Community Support

  • How to set default value for html:file in struts

    hi
                   i am working on an application using struts situation is i am using the
    <html:file property="" /> to allow the user to upload file. but i need that a default file should be set so that even if the user donot click browse ie                the user wish to upload that default file the default file get uploaded on page submition.     Is it possible to set any default value for html:file ...if yes plz provide any suggestion or links how to achieve this.     thanks in advance

    www.google.com?q=STRUTS+DOCUMENTATION

  • Cannot set default programs for a file extension in Gnome

    After a gnome upgrade (cannot remember when), I can no longer set the default program for a particular file extension by right clicking the file in nautilus -> going to "properties" -> going to "open with" tab -> highlighting a program -> pressing "set as default".

    The program I was trying to set was totem for default video playback; wine had made windows media player the default player prior. Interestingly, once I installed gnome-mplayer; the default program changed to gnome-mplayer and I was then able to switch default programs. This error may be related to wine.
    Last edited by Bluerider (2013-07-05 23:07:59)

  • How to use BAPI_OBJCL* to set classification data for Techn. Objects - PM ?

    Good afternoon !
            I´m working in a project to integrate some legacy system with the ECC 6.0, and I need to do some activities like, create functional locations and equipments in SAP PM, I have done this creating Z RFC modules that call bapis like BAPI_FUNCLOC_CREATE and BAPI_EQUI_CREATE, but these BAPIs doesn´t fill classification data, so, in a first moment, I solved this using BDC, but I would like to solve these needs using standard BAPIs if possible.
            To solve the classification, I tried to do it using the BAPI_OBJCL* BAPIs(BAPI_OBJCL_GET_KEY_OF_OBJECT, BAPI_OBJCL_CREATE_KEY), but I didn´t find any example of using these bapis with technical objects, so I tried to test the BAPI_OBJCL_GET_KEY_OF_OBJECT in a first moment and, when I call it passing '003' as classtype(003 is the classtype for the functional locations), this bapi returns me "Class type 003 requires additional objects"(the same occurs if I try it with 002, for equipment). What means this message ? Need I to do some customization in img/spro, or cannot these bapis be used with PM technical objects ?
            Thank you for your attention,
            Wilson

    Hi all !
            I have found the solution for this problem, I found that I was trying to use the wrong functions for my case, so, to solve my needs here, I will use BAPI_OBJCL_CREATE to set the classification data for Functional Locations and Equipments, and I can use BAPI_OBJCL_GETCLASSES to list all classes assigned for a Technical Object, and BAPI_OBJCL_GETDETAIL to get all characteristics assigned to a Technical Object for a specific class.
            Thank you all for your attention !
            Wilson

  • Looking for attachment file object properties

    Hi all,
    I'm looking for an attachment file object properties. I want it to add in SAP system form.
    What is suitable object /property/method to add in SAP system form ?
    Thanks in advance
    Regards
    KK

    GWAVA Reveal will allow you to logon as the user undetected, if needed,
    and check the send items
    Tommy Mikkelsen
    IT Quality A/S, Denmark
    Novell Support Forums SYSOP / NKP
    Sorry, but no support through email
    Please join http://www.open-horizons.net
    jnlickey wrote:
    >
    > I am trying to find out if a user sent an attachment via GW. I was
    > wondering what logs I could check to see any attachments to emails
    > that were sent via GW. I have already looked at the Agent Accounting
    > Data Files, and looked at the POA.log = which only shows username to
    > username, but no attachment file names.
    >
    > Are there any other logs that would show what email user sent an
    > in-house email to another in-house user and what attachments, if any,
    > where attached to that email's?
    >
    > Thank you!
    >
    > Jon

  • Setting Spotlight Comments For Multiple Files?

    In iTunes and iPhoto, you can quickly assign "Comments" or "Keywords" to multiple files, all at the same time. Is there a way to do this in Spotlight? I'd like to add the same Spot Comment for 10 files. I tried selecting all 10 files, and clicking Get Info, but this flooded my screen with 10 individual Info windows!

    Rueben
    Check out SmartComments or This Automator Action
    Regards
    TD
    MacBook Pro 15 2.16gig / iMac 20" 2.16 C2D   Mac OS X (10.4)   2 gig RAM/ 2 gig RAM

  • How to set Mime Type for Static Files

    Hi All,
    I am working on Apex 3.2.1.00.10.
    When I am trying to upload (create) a ".js" file into Static Files under Shared Components of an application; it is saving as "*text/plain*" for Mime Type. But I need Mime type to be set as "*application/x-javascript*".
    Please help me to change the Mime type of .js file.
    Or is there any way to upload the file directly as "*application/x-javascript*" as its Mime Type.
    Thanks in advance.
    Umesh

    In IIS v4 which comes with the Windows NT4 option pack, you right click the web page you are working with, select properties, then go to the HTTP Headers tab. At the bottom there's a button labelled File Types in the MIME Map section.
    After you've clicked that, you can add the two mime types you need;
    Associated Extension MIME Type
    .jar application/x-java-jar-file
    .jnlp application/x-java-jnlp-file
    I'm assuming that it is the same in W2k/IIS5.

  • Set default app for generic files

    I don't know when this started happening, but some OSX update broke my opening generic files. Now when I doubleclick the generic file icon it opens in Microsoft Word, which is unacceptable. So I deleted Word and now the files open in a genealogy application, which has to throw a number of error dialogs before it can be closed.
    How do generic files know to open in the genealogy app? Is this something in Launch Services I can change to set them to open in a decent UNIX editor? This bugs me, because it all worked well until a few months ago.
    If I say:
    defaults read com.apple.LaunchServices 'LSHandlers'
    the resulting text contains:
    LSHandlerContentTag = ged;
    LSHandlerContentTagClass = "public.filename-extension";
    LSHandlerIgnoreCreator = 1;
    LSHandlerRoleAll = "uk.ac.qmw.dcs.seegedcomx";
    seegedcomx is the app that now opens all generic files. Is there a way to set this to a proper application?

    More than likely it's a LaunchServices problem and you should reset its database. See http://www.thexlab.com/faqs/resetlaunchservices.html for details.

  • Set default permissions for new files?

    We have a small LAN where different users often need to open and resave each others' files. No server, just a bunch of client computers on ethernet sharing an internet router.
    Each time a user creates a file, that file's permissions default to read only for anyone but that user. How can I set up the default permissions so that any newly-created files default to Read & Write for "groups" and "others".
    I anticipate I will have to make this change for each user on each workstation.
    Any help would be greatly appreciated.
    Thanks

    If you want users to share files then have them place the file in the /Users/Shared/ folder. Files placed in that folder can be accessed by any user.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

Maybe you are looking for

  • How to create Connection pool in Tomcat 5

    present i am developing one web site in that i am using tomcat 5. i am trying to establish connection pooling in tomcat,i am facing some problems.. tomcat throws the following exception ie., cannot create JDBC Driver class for connect URL null. my co

  • Two scripts not aligning correctly, 200px Width each, Link inside

    Hello all, I have a slight problem, I am attempting to align a twitter script and another script on one page, next to eachother, yet no matter how small I make the width of the style div, they remain on two individual alignments, one below the other.

  • CS5: CUDA, CPU and other hardware questions

    CS5 can gain much speed with CUDA technology by Nvidia; I assume everybody who researched a bit knows this. However, I like very exact information to get the best decision for a new investment. I need to get two identical new CS5 systems, that are mu

  • External Hard Drive Partitioning Options

    I recently purchased a new external portable hard drive for my mac.  It is the WD My Passport Ultra 2 TB version.  I looked up online how to reformat it for Mac's and read through the instructions.  Essentially, when reaching the part about partionin

  • Same tax code to inventorise and non-inventorise the excise

    hi My client want to use the same tax code to inventorise and non-inventorise the excise values. Requirement is as follows:- two plants- plant1 is excisable and plant2 is in excise free zone. tax code is T1 - 16 % BED + 2% ECS  + 1% SEcess they want