com.atlassian.gadgets.directory.internal.jaxb
Class JAXBDirectoryEntry

java.lang.Object
  extended by com.atlassian.gadgets.directory.internal.jaxb.JAXBDirectoryEntry

public final class JAXBDirectoryEntry
extends Object

Provides a JAXB view of Directory.Entry implementations. TODO: AG-428 We should add LINK elements to this representation, as the REST Guidleines recommend.


Constructor Summary
JAXBDirectoryEntry(Directory.Entry entry)
          Constructor.
 
Method Summary
 boolean equals(Object that)
           
 String getAuthorEmail()
          Returns the gadget author's email address.
 String getAuthorName()
          Returns the gadget author's name.
 Collection<String> getCategories()
          Returns the gadget's categories.
 String getDescription()
          Returns the entry's description.
 URI getGadgetSpecUri()
          Returns the gadget's spec URI.
 URI getSelf()
          The gadget spec file's resource URI.
 URI getThumbnailUri()
          Returns the gadget's thumbnail URI.
 String getTitle()
          Returns the gadget's title as a String.
 URI getTitleUri()
          Returns the gadget's title URI.
 int hashCode()
           
 Boolean isDeletable()
          Whehter or not this gadget spec file can be removed from the directory.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBDirectoryEntry

public JAXBDirectoryEntry(Directory.Entry entry)
Constructor. Maps the Directory.Entry properties onto the JAXB properties.

Parameters:
entry - the Directory.Entry implementation to use
Method Detail

getSelf

public URI getSelf()
The gadget spec file's resource URI. NOTE: this is NOT the gadget spec file location, rather the URI that represents this gadget's resource

Returns:
the gadget spec file's resource URI.

isDeletable

public Boolean isDeletable()
Whehter or not this gadget spec file can be removed from the directory.

Returns:
whehter or not this gadget spec file can be removed from the directory.

getAuthorEmail

public String getAuthorEmail()
Returns the gadget author's email address.

Returns:
the gadget author's email address

getAuthorName

public String getAuthorName()
Returns the gadget author's name.

Returns:
the gadget author's name

getCategories

public Collection<String> getCategories()
Returns the gadget's categories.

Returns:
the gadget's categories

getDescription

public String getDescription()
Returns the entry's description.

Returns:
the entry's description

getGadgetSpecUri

public URI getGadgetSpecUri()
Returns the gadget's spec URI.

Returns:
the gadget's spec URI

getThumbnailUri

public URI getThumbnailUri()
Returns the gadget's thumbnail URI.

Returns:
the gadget's thumbnail URI

getTitle

public String getTitle()
Returns the gadget's title as a String.

Returns:
the gadget's title as a String

getTitleUri

public URI getTitleUri()
Returns the gadget's title URI.

Returns:
the gadget's title URI

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object that)
Overrides:
equals in class Object


Copyright © 2011 Atlassian. All Rights Reserved.