Package com.atlassian.gadgets.directory
Interface Directory.Entry<T>
- All Known Subinterfaces:
Directory.DashboardDirectoryEntry,Directory.OpenSocialDirectoryEntry
- Enclosing interface:
- Directory
public static interface Directory.Entry<T>
A single entry in the directory.
-
Method Summary
Modifier and TypeMethodDescription<V> Vaccept(DirectoryEntryVisitor<V> visitor) Accepts the visitor.Returns the email address of the author of the gadget for this directory entry.Returns the name of the author of the gadget for this directory entry.Returns the directory categories of this entry.Returns a textual description of the gadget for this directory entry.getId()Returns the id of the directory entry.getSelf()Returns the unique URI of the directory entry.Returns the URI of an image to display as a thumbnail or icon in the directory for this entry.getTitle()Returns the title of the directory entry.Returns a URI of the gadget author's choosing that is displayed as a link in the directory, with the title as the link text.booleanCan this Gadget Spec File be removed from the directory?
-
Method Details
-
getSelf
Returns the unique URI of the directory entry.- Returns:
- the
URIthat represents this directory entry, ornullif the entry is not directly addressable.
-
isDeletable
boolean isDeletable()Can this Gadget Spec File be removed from the directory?- Returns:
- whether or not the Gadget Spec File be removed from the directory.
-
getId
T getId()Returns the id of the directory entry.- Returns:
- the id of the directory entry. Must not be
null.
-
getTitle
String getTitle()Returns the title of the directory entry. This should be human-readable and localized. It will not have any dynamic substitution or other post-processing performed on it.- Returns:
- the human-readable title of this entry. Must not be
null, but may be an empty string.
-
getTitleUri
Returns a URI of the gadget author's choosing that is displayed as a link in the directory, with the title as the link text. In most cases this should be the gadget's web site. This method may returnnullto suppress the link.- Returns:
- a URI to link to from the title in the directory entry. May be
null.
-
getThumbnailUri
Returns the URI of an image to display as a thumbnail or icon in the directory for this entry. This method may returnnullif no thumbnail or icon is available.- Returns:
- the URI of an image to display in the directory. May be
null.
-
getAuthorName
String getAuthorName()Returns the name of the author of the gadget for this directory entry.- Returns:
- the name of the gadget author for this entry. Must not be
null, but may be an empty string.
-
getAuthorEmail
String getAuthorEmail()Returns the email address of the author of the gadget for this directory entry. This must be a well-formed and valid address, or an empty string if no email address should be displayed.- Returns:
- the valid email address of the gadget author for this entry. Must not be
null, but may be an empty string.
-
getDescription
String getDescription()Returns a textual description of the gadget for this directory entry.- Returns:
- a description of this entry. Must not be
null, but may be an empty string.
-
getCategories
Returns the directory categories of this entry. If the gadget does not specify any valid category, this should return a set containing onlyCategory.OTHER.- Returns:
- a set of the directory categories of this entry or a set containing
Category.OTHER. Must not benull.
-
accept
Accepts the visitor.- Type Parameters:
V- the type returned by visitor's visit methods.- Parameters:
visitor- the visitor.
-