TS3999 making an appointment private

I'd like to be able to manage my appointments on a shared calendar by making some events private.  This way others that I share my calendar with can't see the details, but they can see the time is unavailable.  How can I do this with the icloud calendar?

The simple but most likely unsatisfying answer to your question is, you cannot do that.

Similar Messages

  • Can i go to Apple Genius without making a Appointment

    They gived me a faulty new iPod Touch because my old one didn't work.
    Can i just go to Apple Genius without making a appointment?

    Apple says:
    Meet a Genius at the Apple Store.
    Geniuses have extensive knowledge of our products, and they work with you face to face to provide technical support and troubleshoot any problems. Some repairs can even be completed right on the spot. Want to meet with a Genius? Make a reservation ahead of time to guarantee your spot. A limited number of walk-in appointments are also available.

  • Can i make a calendar appointment private

    Hi -
    Is there a way to create an appointment and make it private so others can not see it on my shared calendar?
    Thank you.

    I have this question too. Thanks snozdop. If it is in a private calendar, will it block out the time in the public one? I work in a corporate environment and managing two diaries seems a little backward unless this is somehow automated?

  • Making section of private site publicly visible

    I have one section of an otherwise private iTunes U site that I would like to make visible, because it contains content from our university's radio station and student newspaper that they would like the public to be able to see.
    I have set the All and Unauthenticated credentials to have download access on the main site welcome page, and then made sure that this only cascades down to that section and the course pages it contains. I have overridden this download access for All and Unauthenticated to give them no access to other sections, divisions, and course pages.
    I am able to link directly to the course pages for the radio station and the newspaper and view/download content without needing to log in. However, when I access the main site welcome page without logging in, all that shows up is my header graphic and my links boxes. The section that I am trying to make public and the course pages it contains do not show up on the main site page as I think they should.
    Can anyone help?
    Eric

    Another option is my DW Extension called PasswordProtect6.
    Check it out at:
    http://valleywebdesigns.com/vwd_passprotect6.asp
    emichael brandt
    Jeremy Williams wrote:
    > Does anyone know whether or not there is a way to make a
    section of a web site
    > password protected without making the pages dynamic and
    setting up an online
    > database? There is only going to be one password and, if
    necessary, one user
    > name. I was hoping that I could get a pop-up box to come
    up, or just an intro
    > page asking for the user to enter the 'general password'
    to continue to the
    > pages in that section.
    >
    > Usually, I do make the pages dynamic with the usual
    registration and log-in
    > pages. I know that there may be a problem with making
    sure the other pages are
    > secure in case someone just types in the url address,
    therefore bypassing the
    > intro page or pop-up box. Thank you in advance for any
    input you may have!
    >

  • Making a function private

    Trying to adjust a function in a package to make it private. And then adjust the procedure to utilize the function to display the results of the function
    I seem to be going in circles HELP!!!
    Thanks
    Mat
    This is the original Package
    CREATE OR REPLACE PACKAGE order_info_pkg IS
    FUNCTION ship_name_pf
    (p_basket IN NUMBER)
    RETURN VARCHAR2;
    PROCEDURE basket_info_pp
    (p_basket IN NUMBER,
    p_shop OUT NUMBER,
    p_date OUT DATE);
    END;
    CREATE OR REPLACE PACKAGE BODY order_info_pkg IS
    FUNCTION ship_name_pf
    (p_basket IN NUMBER)
    RETURN VARCHAR2
    IS
    lv_name_txt VARCHAR2(25);
    BEGIN
    SELECT shipfirstname||' '||shiplastname
    INTO lv_name_txt
    FROM bb_basket
    WHERE idBasket = p_basket;
    RETURN lv_name_txt;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.PUT_LINE('Invalid basket id');
    END ship_name_pf;
    PROCEDURE basket_info_pp
    (p_basket IN NUMBER,
    p_shop OUT NUMBER,
    p_date OUT DATE)
    IS
    BEGIN
    SELECT idshopper, dtordered
    INTO p_shop, p_date
    FROM bb_basket
    WHERE idbasket = p_basket;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.PUT_LINE('Invalid basket id');
    END basket_info_pp;
    END;
    And this is my adjusted one with the returned errors
    CREATE OR REPLACE PACKAGE order_info_pkg IS
    PROCEDURE basket_info_pp
    (p_basket IN NUMBER,
    p_shop OUT NUMBER,
    p_date OUT DATE,
    p_shipname OUT VARCHAR2);
    END;
    CREATE OR REPLACE PACKAGE BODY order_info_pkg IS
    FUNCTION ship_name_pf
    (p_basket IN NUMBER)
    RETURN VARCHAR2
    IS
    lv_name_txt VARCHAR2(35);
    BEGIN
    SELECT shipfirstname||' '||shiplastname
    INTO lv_name_txt
    FROM bb_basket
    WHERE idBasket = p_basket;
    RETURN lv_name_txt;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.PUT_LINE('Invalid basket id');
    END ship_name_pf;
    PROCEDURE basket_info_pp
    (p_basket IN NUMBER,
    p_shop OUT NUMBER,
    p_date OUT DATE,
    p_shipname OUT VARCHAR2)
    IS
    BEGIN
    SELECT idshopper, dtordered, ship_name_pf(p_basket)
    INTO p_shop, p_date, p_shipname
    FROM bb_basket
    WHERE idbasket = p_basket;
    DBMS_OUTPUT.PUT_LINE(p_basket||' '||p_shop||' '||p_date||' '||p_shipname);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.PUT_LINE('Invalid basket id');
    END basket_info_pp;
    END;
    Errors for PACKAGE BODY ORDER_INFO_PKG:
    LINE/COL ERROR
    24/4 PL/SQL: SQL Statement ignored
    24/33 PLS-00231: function 'SHIP_NAME_PF' may not be used in SQL
    24/33 PL/SQL: ORA-00904: : invalid identifier
    SQL>

    Hi,
    It is because you are trying to use a private function in an SQL statement. Just call the function outside the SQL:
    PROCEDURE basket_info_pp
    (p_basket IN NUMBER,
    p_shop OUT NUMBER,
    p_date OUT DATE,
    p_shipname OUT VARCHAR2)
    IS
    BEGIN
    SELECT idshopper, dtordered
    INTO p_shop, p_date
    FROM bb_basket
    WHERE idbasket = p_basket;
    p_shipname := ship_name_pf(p_basket);
    DBMS_OUTPUT.PUT_LINE(p_basket||' '||p_shop||' '||p_date||' '||p_shipname);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.PUT_LINE('Invalid basket id');
    END basket_info_pp;
    END;

  • Making a new private network.

    I want to build a network - private network. I have 80-90 sites with up to 14 hosts on each site. The hosts comunicate with a server. Not much trafic. Can I use a couple of 2924-XL-EN to connect the sites together? And from the switches a connection to another 2924 where I have the server?

    Instead of using a complete layer2 network design, I would start looking at Layer3 segmentation and fault isolation. If all 90 sites were connected with nothing but layer2 switches, you would have issues with STP convergance, broadcast storms, etc. Essentially, a single user with a bad nic or virus could take down the entire network. Depending on your requirements, you could do a hub-and-spoke design and have each site connect to a layer3 router at the hub of your design. From this you can provision subinterfaces per site and allow vlans per site. This would shrink the broadcast domain per site, and reduce the risk of a single site taking out the entire network. The layer3 device at the hub could provide inter-vlan routing to provide communication with all the sites. Or if distance is a factor, you could provision a lower end router per site (1710 or something) and have this router connect to a slightly higher end layer3 device (2800 or something depending on your traffic requirements). This would be a more scalable design and allow you to provide more services in the future. If you wanted to go all out with it, you could provision some kind of 2800 per site with a 3800 at the hub. Then you could run MPLS VPNs. Each site would have a router capable of label imposition and your at your hub, your router could function as a P router. You could also place your server into a central services VRF and do selective import and export of the VPN routes. This gives you the ablility to further segment your network (possibly start selling Internet access or service access to various customers) and still keep everything private.
    Hope this helps.

  • Making a file Private

    Is ther anyway to make a file private so that you have to enter your password before someone can open it?

    Click here and follow the instructions; don't put the password in the keychain, and unmount the disk image whenever you're finished using it.
    (27975)

  • Webcenter Spaces - Making page within 'Private' space accessible to public

    Hi,
    I have create a space within Webcenter Spaces, and set it as a private space. This space is a sub-space of another space which has been set to public.
    Within this space, I have create a new "Home" page (which will be the first page that is visible when a user accesses the space).
    I have changed the page access method on this page from "Use Application Permissions" to "Use Custom Access settings", and then clicked the "Add Public access Link",
    similar to what can be seen in this image:
    http://download.oracle.com/docs/cd/E21764_01/webcenter.1111/e10149/img/wcsug_gs_setpageacc3.gif
    I assume that this should make the page visible to non authenticated users, but when I try to access this space via the DIRECT URL to the space or page (without being logged in), I am redirected to the login page.
    I though that this was how it was supposed to work? That you can expose a page within a private space, to public users?
    It seems to be explained the same way here:
    http://download.oracle.com/docs/cd/E12839_01/webcenter.1111/e10149/gspace_build.htm#CHDBHDGJ
    I know the above is old documentation, but the newer doco doesn't explain it quite as well.
    I am really trying to understand what actually happens when you "Add Public Access" to a page? What does this functionality do?
    Or...is there another way I can accomplish this task? I know I can change the space role to give them extra permissions to "View Pages", but I don't want my public users to view ALL the pages in the space (because for example, if they can see the "Discussions" page, but then click on it and don't have access to discussions, it is not a very elegant solution). Ideally I want the users to just see the home page which will just have a description about the space, and if they are interested, then they can join.
    Amanda.

    Amanda,
    first of all, this is a wrong forum. You should have used this one: WebCenter Portal
    Second, I think the key sentence is:
    Private (Space): People can discover this Space in search results and in the list of available Spaces, and can subscribe to it if invited to join or if self-subscription is enabled.
    I'm wondering how do you expect non-authenticated users (thus, not-invited) to access a page, if they cannot see even the space? By space's and page's pretty URL? I'm not sure, but I can guess the system is not designed that way.

  • I have a 2009 iMac. It is shutting down all the time. I am beyond over this. If no luck with help on here I am making an appointment to have service.

    I am getting ready to call and schedule to take imac in for service. Thought I would try on here first. It is shutting down all the time. Its like it just crashes.

    Paul,
    Thank you for the quick response. here is my mac. I sure hope someone can pin point the cause of this.
    Hardware Information:
              iMac (21.5-inch, Late 2009)
              iMac - model: iMac10,1
              1 3.06 GHz Intel Core 2 Duo CPU: 2 cores
              12 GB RAM
    Video Information:
              NVIDIA GeForce 9400 - VRAM: 256 MB
    System Software:
              OS X 10.9.2 (13C64) - Uptime: 0 days 0:1:47
    Disk Information:
              ST3500418ASQ disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        disk0s2 (disk0s2) <not mounted>: 499.25 GB
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              OPTIARC DVD RW AD-5680H 
    USB Information:
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Canon MX410 series
              Apple Computer, Inc. IR Receiver
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
    Configuration files:
              /etc/hosts - Count: 1
    Kernel Extensions:
              com.rogueamoeba.InstantOn          (5.0.2 - SDK 10.6)
              com.Cycling74.driver.Soundflower          (1.5.3 - SDK 10.6)
    Startup Items:
              HP IO: Path: /Library/StartupItems/HP IO
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.adobe.SwitchBoard.plist 3rd-Party support link
              [System] com.macpaw.CleanMyMac2.Agent.plist 3rd-Party support link
              [System] com.oracle.java.Helper-Tool.plist 3rd-Party support link
    Launch Agents:
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.hp.help.tocgenerator.plist 3rd-Party support link
              [System] com.hp.messagecenter.launcher.plist 3rd-Party support link
              [System] com.oracle.java.Java-Updater.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded] com.google.Chrome.framework.plist 3rd-Party support link
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
              [not loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist 3rd-Party support link
              [not loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist 3rd-Party support link
              [not loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist 3rd-Party support link
              [not loaded] com.zeobit.MacKeeper.Helper.plist 3rd-Party support link
    User Login Items:
              smcFanControl
              Growl
              iAntiVirus
              HP Scheduler
              HP Product Research
              HPEventHandler
    Internet Plug-ins:
              Easy-WebPrint EX: Version: 1.1.0 3rd-Party support link
              Google Earth Web Plug-in: Version: 6.2 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              Unity Web Player: Version: UnityPlayer version 3.1.0f4 3rd-Party support link
              AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 3rd-Party support link
              FlashPlayer-10.6: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              Flash Player: Version: 12.0.0.77 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              iPhotoPhotocast: Version: 7.0
              AdobePDFViewer: Version: 11.0.06 - SDK 10.6 3rd-Party support link
              EPPEX Plugin: Version: 3.0.5.0 3rd-Party support link
              JavaAppletPlugin: Version: Java 7 Update 51 3rd-Party support link
    Safari Extensions:
              Facebook Improved: Version: 1.8
              Add To Amazon Wish List: Version: 1.8
              Omnibar: Version: 1.2
              Social Fixer: Version: 9.0
              Ultimate Status Bar: Version: 1.3
              Pinterest: Version: 1.0
              AddThis: Version: 1.7
              Facebook Photo Zoom: Version: 1.1206.11.1
              GMail Counter: Version: 0.9.3
              Reload Button: Version: 1.2
              SafariRestore: Version: 6.0.1
              Facebook Cleaner: Version: 3.3
              My eBay Manager: Version: 3.0.2.0
              Turn Off the Lights: Version: 2.3.0.5
              AdBlock: Version: 2.6.18
              1-ClickWeather: Version: 1.0
              Bing Highlights: Version: 1.0.24
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User iTunes Plug-ins:
              AudioScrobbler: Version: 6.0.5 - SDK 10.8 3rd-Party support link
    User Internet Plug-ins:
              CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 3rd-Party support link
              Google Earth Web Plug-in: Version: 7.1 3rd-Party support link
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
              Java  3rd-Party support link
    Old Applications:
              None
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
              Destinations:
                        My Passport for Mac [Network] (Last used)
                        Total size: 465.29 GB
                        Total number of backups: 61
                        Oldest backup: 2013-08-19 15:41:53 +0000
                        Last backup: 2014-03-18 16:18:22 +0000
                        Size of backup disk: Excellent
                                  Backup size 465.29 GB > (Disk size 0 B X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                  38%          AAM Updates Notifier
                  19%          iavd
                   8%          iAntiVirus
                   4%          WindowServer
                   1%          Safari
    Top Processes by Memory:
              233 MB          thunderbird
              197 MB          Safari
              135 MB          MailTab for Gmail
              98 MB          ocspd
              61 MB          WindowServer
    Virtual Memory Information:
              9.01 GB          Free RAM
              1.79 GB          Active RAM
              249 MB          Inactive RAM
              715 MB          Wired RAM
              291 MB          Page-ins
              0 B          Page-outs

  • Has anyone got the calendar and contact sync with MS Outlook to work?

    Office Version:Office 2007Operating System:Windows 7
    I've used Outlook for several years. I use the Outlook Connector to link to my hotmail account for mail and Outlook's functionality for contact and calendaring.
    Recently my appointments seem to have taken on a life of their own. After entering them they look fine but at some point the appointment title is being changed to "Private Event". I can open the appointment and it looks ok. In fact, the little lock icon for making the appointment private is not enabled so I can find no visable reason for the appointment to be marked private.
    I am the only user and I have administrator rights. Also, none of my much older appointments are being changed, most of them being reoccurring appointments that haven't been opened in some time.
    It looks like what you might expect if you were a delegate on an Exchange calendar. But in this case my Outlook is just a local, standalone installation with no Exchange server.
    I can't be absolutely certain but I think the timing of when this started was a couple of weeks ago when I attempted to set up sync between my iPod Touch and Outlook. I never opened Outlook [that I know of] during the process. I just set the sync options in iTunes to Outlook. Nothing ever got copied over to the iPod but I think that the privacy issue began about the same time.
    Any idea what may be causing this?
    Thanks in advance for your help.

    Yes thats correct & it should showup if already checked.
    When I checked the https://p15-calendars.icloud.com/holiday/FR_fr.ics
    also https://p15-calendars.icloud.com/holiday/UK_uk.ics ofcourse it could be any page from
    p 0- to p 20- but nothing happens from the UK one but the FR it auto downloads does not instal into
    Calendar it will ask you for permision first.
    I have many calendars too Europe, Asia etc:
    This is what info of active Holiday Cal looks like.

  • Stop appointments on home screen

    Hi,
    Can someone help me with the following problem please!
    I'd like to stop having my appointments / calendar entries from being displayed on the home screen. Is that possible?
    Thanks,
    Ofelas.

    Ofelas wrote:
    Making the appointment 'private' hides the details but not the fact something is happening!
    That's the only method I know of.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How do I make a genius bar appointment?

    Bought new iPhone 6 that should arrive around Dec. 5th.  I don't have the serial number yet (bought from carrier) but wanted to make a genius bar appointment to transfer info from old to new iPhone.  Can I make an appointment without having a serial # yet?  Can I make an appointment on line?  Thanks ...

    Not sure if you can make the appointment now, but the following is the starting point for making an appointment online: Transfer content from an iPhone, iPad, or iPod touch to a new device - Apple Support
    Regarding the reason for the appointment, the following has instructions on how to transfer data from an old iPhone to a new one via either iCloud or iTunes if you want to consider doing it yourself: Transfer content from an iPhone, iPad, or iPod touch to a new device - Apple Support

  • Trying to access an object's field but it has private access ! !

    Dear People,
    I am trying to access the highestBid, a data member of the Bid class
    in an Auction program.
    If I try to set the highestBid:
    bicycle.setHighestBid(steveBicycleBid);
    The error message says:
    "TryAuction.java": Error #: 306 : method setHighestBid(stan_bluej_ch4p90.Bid) has private access in class stan_bluej_ch4p90.Lot at line 58, column 15
    IF I try to get the highest bid by saying:
    System.out.println("The highest bid for this item is " + bicycle.getHighestBid() );
    I get an object hex address as seen below instead of an integer value:
    The highest bid for this item is stan_bluej_ch4p90.Bid@f4a24a
    ^^^
    Below are the classes
    Thank you in advance
    stan
    package stan_bluej_ch4p90;
    //Purpose of project: To demonstrate collections of objects
    //Version: 2001.05.31
    //How to start this project:
    // Create an Auction object.
    // Enter a few lots via its enterLot method. Only String
    // descriptions of the lots are required.
    // Create one or more Person objects to represent bidders.
    // Show the lots and select one to bid for.
    // Get the required Lot onto the object bench.
    // Enter a bid for the lot, passing the Person who is
    // bidding to the bidFor method.
    public class TryAuction
    public static void main(String[] args)
    //create the auction
    Auction cityAuction = new Auction();
    //create the lots for sale
    Lot bicycle = new Lot(1,"bicycle");
    Lot lamp = new Lot(2, "lamp");
    Lot trailer = new Lot(3, "trailer");
    //enter the lots into the city Auction
    cityAuction.enterLot("A bicycle in so so condition");
    cityAuction.enterLot("A brand new lamp");
    cityAuction.enterLot("A trailer built in 2001");
    //show the lots
    System.out.println();
    System.out.println("The first lot for sale: " + bicycle.getDescription());
    System.out.println("The second lot for sale: " + lamp.getDescription());
    System.out.println("The third lot for sale: " + trailer.getDescription());
    //create the people who will bid for the lots
    Person Steve = new Person("Steve");
    Person Maria = new Person("Maria");
    //create the people's bids
    Bid mariaLampBid = new Bid(Maria, 460);
    Bid steveLampBid = new Bid(Steve, 510);
    //create the people's bids
    Bid mariaBicycleBid = new Bid(Maria, 1460);
    Bid steveBicycleBid = new Bid(Steve, 1510);
    //create the people's bids
    Bid steveTrailerBid = new Bid(Steve, 700510);
    Bid mariaTrailerBid = new Bid(Maria, 900460);
    //give the bids
    bicycle.bidFor(Maria,1460);
    bicycle.bidFor(Steve, 1510);
    //bicycle.setHighestBid(steveBicycleBid);
    System.out.println("The highest bid for this item is " + bicycle.getHighestBid() );
    lamp.bidFor(Maria,460);
    lamp.bidFor(Steve,510);
    trailer.bidFor(Steve, 700510);
    trailer.bidFor(Maria,900460);
    System.out.println(" \nMaria's bicycle bid is : " + mariaBicycleBid.getValue() );
    System.out.println("Steve's lamp bid is : " + steveBicycleBid.getValue() );
    System.out.println(" \nMaria's lamp bid is : " + mariaLampBid.getValue() );
    System.out.println("Steve's lamp bid is : " + steveLampBid.getValue() );
    System.out.println("\nSteve's trailer bid is : " + steveTrailerBid.getValue() );
    System.out.println(" Maria's trailer bid is : " + mariaTrailerBid.getValue() );
    System.out.println();
    cityAuction.showLots();
    //cityAuction.close();
    //The output I get is:
    //The first lot for sale: bicycle
    //The second lot for sale: lamp
    //The third lot for sale: trailer
    //The highest bid for this item is stan_bluej_ch4p90.Bid@f4a24a
    //Maria's bicycle bid is : 1460
    //Steve's lamp bid is : 1510
    //Maria's lamp bid is : 460
    //Steve's lamp bid is : 510
    //Steve's trailer bid is : 700510
    // Maria's trailer bid is : 900460
    //1: A bicycle in so so condition
    // (No bid)
    //2: A brand new lamp
    // (No bid)
    //3: A trailer built in 2001
    // (No bid)
    package stan_bluej_ch4p90;
    import java.util.*;
    //Ex4.14
    * A simple model of an auction.
    * The auction maintains a list of lots of arbitrary length.
    * @author David J. Barnes and Michael Kolling.
    * @version 2001.06.08
    public class Auction
    // The list of Lots in this auction.
    private ArrayList lots;
    // The number that will be given to the next lot entered
    // into this auction.
    private int nextLotNumber;
    * Create a new auction.
    public Auction()
         lots = new ArrayList();
         nextLotNumber = 1;
    * Enter a new lot into the auction.
    * Lots can only by entered into the auction by an
    * Auction object.
    * @param description A description of the lot.
    public void enterLot(String description)
         lots.add(new Lot(nextLotNumber, description));
         nextLotNumber++;
    * Show the full list of lot numbers and lot descriptions in
    * this auction. Include any details of the highest bids.
    public void showLots()
         Iterator it = lots.iterator();
         while(it.hasNext()) {
         Lot lot = (Lot) it.next();
         System.out.println(lot.getNumber() + ": " +
                   lot.getDescription());
         // Include any details of a highest bid.
         Bid highestBid = lot.getHighestBid();
         if(highestBid != null) {
              System.out.println(" Bid: " +
                        highestBid.getValue());
         else {
              System.out.println(" (No bid)");
    * Return the lot with the given number. Return null
    * if a lot with this number does not exist.
    * @param number The number of the lot to return.
    public Lot getLot(int number)
         if((number >= 1) && (number < nextLotNumber)) {
         // The number seems to be reasonable.
         Lot selectedLot = (Lot) lots.get(number-1);
         // Include a confidence check to be sure we have the
         // right lot.
         if(selectedLot.getNumber() != number) {
              System.out.println("Internal error: " +
                        "Wrong lot returned. " +
                        "Number: " + number);
         return selectedLot;
         else {
         System.out.println("Lot number: " + number + " does not exist.");
         return null;
    // public void close()
    // Iterator i = lots.iterator();
    // while(i.hasNext())
    //     System.out.println("The winning amount for the " + bicycle.getDescription()
    //     + " is " + bicycle.getHighestBid());
    //     System.out.println("The winning amount for the " + lamp.getDescription()
    //     + " is " + lamp.getHighestBid());
    //     System.out.println("The winning amount for the " + trailer.getDescription()
    //     + " is " + trailer.getHighestBid());
    package stan_bluej_ch4p90;
    * A class to model an item (or set of items) in an
    * auction: a lot.
    * @author David J. Barnes and Michael Kolling.
    * @version 2001.06.08
    public class Lot
    // A unique identifying number.
    private final int number;
    // A description of the lot.
    private String description;
    // The current highest bid for this lot.
    private Bid highestBid;
    * Construct a Lot, setting its number and description.
    * @param number The lot number.
    * @param description A description of this lot.
    public Lot(int number, String description)
         this.number = number;
         this.description = description;
    * Attempt to bid for this lot. A successful bid
    * must have a value higher than any existing bid.
    * @param bidder Who is bidding.
    * @param value The value of the bid.
    public void bidFor(Person bidder, long value)
         // We trust that lot is genuine. There is nothing to
         // prevent a spurious lot from being bid for, but it
         // would not appear in the auction list.
         if((highestBid == null) ||
         (highestBid.getValue() < value)) {
         // This bid is the best so far.
         setHighestBid(new Bid(bidder, value));
         else {
         System.out.println("\nLot number: " + getNumber() +
                   " (" + getDescription() + ")" +
                   " has a bid of: " +
                   highestBid.getValue());
    * @return The lot's number.
    public int getNumber()
         return number;
    * @return The lot's description.
    public String getDescription()
         return description;
    * @return The highest bid for this lot. This could be null if
    * there are no current bids.
    public Bid getHighestBid()
         return highestBid;
    * @param highestBid The new highest bid.
    private void setHighestBid(Bid highestBid)
         this.highestBid = highestBid;
    package stan_bluej_ch4p90;
    * A class that models an auction bid. The bid contains a reference
    * to the Lot bid for and the user making the bid.
    * @author David J. Barnes and Michael Kolling.
    * @version 2001.05.31
    public class Bid
    // The user making the bid.
    private final Person bidder;
    // The value of the bid. This could be a large number so
    // the long type has been used.
    private final long value;
    * Create a bid.
    * @param bidder Who is bidding for the lot.
    * @param value The value of the bid.
    public Bid(Person bidder, long value)
         this.bidder = bidder;
         this.value = value;
    * @return The bidder.
    public Person getBidder()
         return bidder;
    * @return The value of the bid.
    public long getValue()
         return value;
    package stan_bluej_ch4p90;
    * Maintain details of someone who participates in an auction.
    * @author David J. Barnes and Michael Kolling.
    * @version 2001.05.31
    public class Person
    // The name of this user.
    private final String name;
    * Create a new user with the given name.
    * @param name The user's name.
    public Person(String name)
         this.name = name;
    * @return The user's name.
    public String getName()
         return name;
    if I try to say
    LotObjectName.getHighestBid, I get a

    Dear EsoralTrebor,
    Thank you very much for an enlightening explanation.
    I had never tried to chain methods together before but it works !
    anObject.methodOfTheObjectClassThatReturnsAnObjectOfAnotherClass.
    methodOfTheObjectClassThatWasReturned();
    my output correctly states:
    The highest bid for the bicycle is 1510
    The highest bid for the lamp is 510
    The highest bid for the trailer is 900460
    Thank you !
    Stan
    ps tomorrow I need to study the showLots() method in the Auction class
    to figure out why that method is saying "No Bid" to everything
    Have a Good Thanksgiving !

  • What's the best method to make an appointment book?

    I have to make a simple appointment book program. Start/end time, and appointment within the start/end time. My first idea was to use ArrayList, but if someone knows of an easier or simpler way, it'd be a great help.

    General pointers:
    You can do your validations as soon as the user enters the dates.
    There are a variety of approaches for storing the appointment information and the one chosen will depend on the functional requirements of your program. Some options include creating an Appointment class that stores start and end dates, as well as information about the event.
    (e.g.
    public class Appointment{
    private Date startTime;
    private Date stopTime;
    public Appointment(){
    public setStartTime(Date d){...}
    public setStopTime(Date d){...}
    You can store a collection of Appointment objects in any Collections implementation e.g. ArrayList, LinkedList etc. and then search as needed for start and stop times.
    You can also separately store the start and stop times as keys in two HashMap<Date,Collection> with each Appointment that start/stops on the date as the values (in a Collection)
    (E.g.
    /*Check that there is a Collection object associated with the Date object and
    store it.*/
    //Some where in your code you might have:
    HashMap<Date,Collection> myStartAppointments = new HashMap<Date, Collection>();
    /*Elsewhere*/
    if ((c = myStartAppointments.get(someDate)) != null) {
    c.add(newAppointment); //or whatever
    else{
    c = new ArrayList();
    c.add(newAppointment);
    myStartAppointments.put(someDate,c);
    )To save memory, you might also want to use the Date reference as both the key in the HashMap<Date,Collection> and the instance variable within the Appointment object.
    (E.g.
    //replace the else{...} with
    else {
    /*Use the same reference within the Appointment object and HashMap.*/
    c = new ArrayList();
    newAppointment.setStartDate(someDate);
    c.add(newAppointment);
    myStartAppointments.put(someDate,c);
    }You could actually also remove the Date instance variables entirely from the Appointment class and just depend on your HashMap<Date,Collection> objects.
    Of course there are a variety of other approaches, but this can get you started.

  • Privately Owned and Cascade Delete in DB

    HI,
    What is the relationship between setting privately owned in Toplink vs creating a cascade delete in Oracle DB? If I've the cascade delete in DB then what is the advantage of setting the privately owned flag in toplink?
    Thanks

    If you only set the cascade delete option in the database, then TopLink will have no knowledge that the private object was deleted (or that it is private in general). This would mean that TopLink would not remove the private object from the cache or process it as have being deleted. In general this may not cause your app any direct issues if you never read the private object directly as it will eventually garbage collect from the cache.
    Making the relationship privately own in TopLink will also ensure the following:
    - If you replace the private object with another, or set it to null, TopLink will delete the old object on the update of the source. Cascade delete only works on deletion.
    - If the relationship is a 1-m and you remove an object from the collection it will be removed.
    - If you refresh the parent object, by default the child will also be refreshed.
    - If you merge the parent object, by default the child will also be merged.

Maybe you are looking for

  • Sun Java System Portal Server 6.0 FAQs

    Sun Java System Portal Server 6.0 FAQs. Author: Sanjeev Agarwal Q. How to connect to external URLs from Sun ONE Portal Server? I want to use URL Scrapper for some of external sites/URLs. Ans: You can connect to external URLs if you have a Proxy Serve

  • Launching Rescue & Recovery from a Command Line

    Question - I would like to know how I can launch Rescue & Recovery from a command line. Issue that is prompting the question -  My laptop was sitting in my computer bag overnight. The battery was fully charged. I BELIEVE that it was in suspend mode a

  • Acrobat 9 Pro in CS4 - Acrobat X upgrade doesn't work with this!!!

    I bought this upgrade which recognised that there was a version of Acrobat on my system but later on during the installation, said it was not an eligible product.  Doubt very much I'll get a refund from the vendor now the package is opened and used.

  • Status profile in QM

    Hi Guys, I'm looking for some advice please. I have created a status profile in QM to decide which inspection plan to trigger for GR movement 101. Example Status Profile Z_100000 has the following steps. 1st del = Inspection plan 0101 *(Model, 1st of

  • How to validate datetime in TextField on KeyPress (or lostfocus )

    Could someone please tell me how can we stop user from inputting invalid values for DATETIME in JTextField and to store these in datebase