예제 #1
0
 /**
  * @throws PicasaCommandException
  * @see com.jdevelop.jpicasa.commands.PicasaCommandInterface#execute()
  */
 public AlbumEntry execute() throws PicasaCommandException {
   try {
     final PicasawebService service = ctx.getService();
     final URL albumUrl = new URL(PicasaUrlBuilder.getUserURL(ctx));
     final AlbumEntry newAlbum = new AlbumEntry();
     newAlbum.setTitle(new PlainTextConstruct(albumName));
     final AlbumEntry insertedAlbum = service.insert(albumUrl, newAlbum);
     return insertedAlbum;
   } catch (final Exception e) {
     throw new PicasaCommandException(e);
   }
 }