public class

OfbizExternalGadgetStore

extends Object
implements ExternalGadgetStore
java.lang.Object
   ↳ com.atlassian.jira.portal.gadgets.OfbizExternalGadgetStore

Class Overview

Ofbiz implementation of the ExternalGadgetStore.

Summary

Nested Classes
class OfbizExternalGadgetStore.Columns  
Constants
String TABLE
Public Constructors
OfbizExternalGadgetStore(OfBizDelegator ofBizDelegator)
Public Methods
ExternalGadgetSpec addGadgetSpecUri(URI uri)
Adds the URI specified to the whitelist.
boolean containsSpecUri(URI uri)
Checks if the specified URI is already contained in the store
Set<ExternalGadgetSpec> getAllGadgetSpecUris()
Retrieves a set of all external gadgets whitelisted in the directory.
void removeGadgetSpecUri(ExternalGadgetSpecId id)
Removes the URI specified from the whitelist.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.portal.gadgets.ExternalGadgetStore

Constants

public static final String TABLE

Constant Value: "ExternalGadget"

Public Constructors

public OfbizExternalGadgetStore (OfBizDelegator ofBizDelegator)

Public Methods

public ExternalGadgetSpec addGadgetSpecUri (URI uri)

Adds the URI specified to the whitelist.

Parameters
uri The gadget URI to add
Returns
  • The newly created ExternalGAdgetSpec

public boolean containsSpecUri (URI uri)

Checks if the specified URI is already contained in the store

Parameters
uri the URI to check for
Returns
  • true if the URI already exists in the store

public Set<ExternalGadgetSpec> getAllGadgetSpecUris ()

Retrieves a set of all external gadgets whitelisted in the directory.

Returns
  • a set of all external gadgets whitelisted in the directory.

public void removeGadgetSpecUri (ExternalGadgetSpecId id)

Removes the URI specified from the whitelist.

Parameters
id The id to remove