Using the Photosharing Service
| |
|
|
| |
Table of Contents |
|
| |
|
|
Creating Galleries
We now want to create our personal and public galleries. We will create a "SummerVacation" gallery as well as a "Work" gallery.
Start the Image Gallery Application
- Open a Windows Command Prompt
- Change directory to your Hackathon directory

%> cd C:\hackathon
- Start the gallery application

%> ant gallery
Create Galleries:
- Click the Gallery Browser button near the top of the panel.
- Select MyLaptop in the Photo Sharing Services(s) tree viewer
- Right-Click on MyLaptop
- Click + Add Gallery (Note for Mac Users: command + double click will also access the menu)
- Set SummerVacation as Gallery Name
- Add a second gallery called Work
Adding Photos
Viewing the Gallery
|
Add Photos to Work Gallery
|
13. Select Work from the Viewer.
14. Right-Click on Work and click + Add Photo
15. Set "Bones" a name
16. Set "Head bone connected to the neck bone" as the description.
17. Browse to C:\hackathon\images and select ConferenceThree.jpg
18. Click Add Photo
Share Your IP Address
We've just finished loading our own photos onto the grid. Now we want to see our neighbor's photos. Since we're not using a centralized index service to advertise our services for this tutorial, we'll need to manually configure our gallery browser to connect to other services. To do this we'll need to provide our machine's IP address to a neighbor and obtain our neighbor's IP address.
If you have been doing this tutorial with someone else on a different machine:
- Give them the IP address to your machine.
- Note the IP address to their machine.
Verifying the PhotoSharing Service
Verify that you can access your neighbor's PhotoSharing Service:
- Open Internet Explorer
- Go to: https://<NEIGHBOR'S IP>:8443/wsrf/services/cagrid/PhotoSharing
- Click "Yes" (or "Continue to this website") if prompted for a "Security Alert" to access our secured service.
| Note: If you cannot connect to your neighbor or vice versa, you might to need to check your network / firewall settings to allow incoming connections on port 8443. |
View Your Neighbor's Gallery
|
We'll now need to configure the Image Browser
|
Share Your Grid Identity
We've connected to our neighbor's service, but we don't have permission to view any of the galleries. To grant view privileges, our neighbor will need to know who to grant access to. We'll need to provide them with our grid identity so they can grant us view rights.
In the Gallery Application:
- Click the My Account menu item, then select Credential Manager
- Share your Identity with your neighbor
Give Your Neighbor Permissions
Now that we have our neighbor's grid identity, we can grant them permission to see only those galleries we want them to see.
|
After you've given permissions to your neighbor and vice versa, try viewing the Work gallery and SummerVacation gallery. You should now be able to view their Work gallery and not the SummerVacation gallery. Nor should you be able to add additional photos to their Work gallery.
We have worked with the PhotoSharing service and displayed its security capabilities and ease of use. The next part in the tutorial is an advanced section that will walk through the steps of creating the service using Introduce.





