org.axway.grapes.server.webapp.views
Class DependencyListView

java.lang.Object
  extended by com.yammer.dropwizard.views.View
      extended by org.axway.grapes.server.webapp.views.DependencyListView
Direct Known Subclasses:
AncestorsView

public class DependencyListView
extends com.yammer.dropwizard.views.View

Dependency List View

Handles the dependency list for the web-app display. It is able to generate tables that contains custom dependencies information.

Author:
jdcoffre

Field Summary
static String DOWNLOAD_URL_FIELD
           
static String LICENSE_COMMENT_FIELD
           
static String LICENSE_FIELD
           
static String LICENSE_LONG_NAME_FIELD
           
static String LICENSE_URL_FIELD
           
static String SCOPE_FIELD
           
static String SIZE_FIELD
           
static String SOURCE_FIELD
           
static String SOURCE_VERSION_FIELD
           
static String TARGET_FIELD
           
 
Constructor Summary
DependencyListView(String title, List<License> licenses, Decorator decorator)
           
 
Method Summary
 void addAll(List<Dependency> dependencies)
          Add many dependencies to the list
 void addDependency(Dependency dependency)
          Add a dependency to the list
 List<Dependency> getDependencies()
          Get the dependencies of the view
 Table getTable()
          Generate a table that contains the dependencies information with the column that match the configured filters
 String getTitle()
          Returns the HTML page title
 
Methods inherited from class com.yammer.dropwizard.views.View
getCharset, getTemplateName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_FIELD

public static final String SOURCE_FIELD
See Also:
Constant Field Values

SOURCE_VERSION_FIELD

public static final String SOURCE_VERSION_FIELD
See Also:
Constant Field Values

TARGET_FIELD

public static final String TARGET_FIELD
See Also:
Constant Field Values

DOWNLOAD_URL_FIELD

public static final String DOWNLOAD_URL_FIELD
See Also:
Constant Field Values

SIZE_FIELD

public static final String SIZE_FIELD
See Also:
Constant Field Values

SCOPE_FIELD

public static final String SCOPE_FIELD
See Also:
Constant Field Values

LICENSE_FIELD

public static final String LICENSE_FIELD
See Also:
Constant Field Values

LICENSE_LONG_NAME_FIELD

public static final String LICENSE_LONG_NAME_FIELD
See Also:
Constant Field Values

LICENSE_URL_FIELD

public static final String LICENSE_URL_FIELD
See Also:
Constant Field Values

LICENSE_COMMENT_FIELD

public static final String LICENSE_COMMENT_FIELD
See Also:
Constant Field Values
Constructor Detail

DependencyListView

public DependencyListView(String title,
                          List<License> licenses,
                          Decorator decorator)
Method Detail

getTitle

public String getTitle()
Returns the HTML page title

Returns:
String

addDependency

public void addDependency(Dependency dependency)
Add a dependency to the list

Parameters:
dependency - Dependency

addAll

public void addAll(List<Dependency> dependencies)
Add many dependencies to the list

Parameters:
dependencies - List

getDependencies

public List<Dependency> getDependencies()
Get the dependencies of the view

Returns:
List

getTable

public Table getTable()
Generate a table that contains the dependencies information with the column that match the configured filters

Returns:
Table


Copyright © 2014. All Rights Reserved.