com.atlassian.jira.portal
Class PortletImpl

java.lang.Object
  extended bycom.atlassian.jira.portal.PortletImpl
All Implemented Interfaces:
Portlet

public class PortletImpl
extends java.lang.Object
implements Portlet


Constructor Summary
PortletImpl(java.lang.String id, java.lang.String name, java.lang.String description, java.lang.String xmlfile)
           
PortletImpl(java.lang.String id, java.lang.String name, java.lang.String description, java.lang.String xmlfile, int groupPermission, java.lang.String thumbnailfile)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getCornerThumbnail()
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 int getPermission()
          Returns a list of permissions for this portlet.
 java.lang.String getThumbnailfile()
          The path to a thumbnail image of this portlet
 java.lang.String getXmlfile()
           
 int hashCode()
           
 boolean hasPermission()
          Does thie portlet has a permission set on it
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletImpl

public PortletImpl(java.lang.String id,
                   java.lang.String name,
                   java.lang.String description,
                   java.lang.String xmlfile)

PortletImpl

public PortletImpl(java.lang.String id,
                   java.lang.String name,
                   java.lang.String description,
                   java.lang.String xmlfile,
                   int groupPermission,
                   java.lang.String thumbnailfile)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface Portlet

getName

public java.lang.String getName()
Specified by:
getName in interface Portlet

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Portlet

getXmlfile

public java.lang.String getXmlfile()
Specified by:
getXmlfile in interface Portlet

hasPermission

public boolean hasPermission()
Does thie portlet has a permission set on it

Specified by:
hasPermission in interface Portlet
Returns:
true If this user has a permission e.g. getPermission != -1

getPermission

public int getPermission()
Returns a list of permissions for this portlet.

Specified by:
getPermission in interface Portlet
Returns:
Returns a @link:Permissions, -1 indicates no permission so view able by everyone

getThumbnailfile

public java.lang.String getThumbnailfile()
The path to a thumbnail image of this portlet

Specified by:
getThumbnailfile in interface Portlet
Returns:
Path to image

getCornerThumbnail

public java.lang.String getCornerThumbnail()
Specified by:
getCornerThumbnail in interface Portlet

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()