org.axway.grapes.server.core
Class ProductHandler

java.lang.Object
  extended by org.axway.grapes.server.core.ProductHandler

public class ProductHandler
extends Object

Product Handler

Manages all operation regarding Products. It can, get/update Products of the database.

Author:
jdcoffre

Constructor Summary
ProductHandler(RepositoryHandler repositoryHandler)
           
 
Method Summary
 void create(DbProduct dbProduct)
          Creates a new Product in Grapes database
 void deleteProduct(String name)
          Deletes a product from the database
 DbProduct getProduct(String name)
          Returns a product regarding its name
 List<String> getProductNames()
          Returns all the product names
 void setProductModules(String name, List<String> moduleNames)
          Patches the product module names
 void update(DbProduct dbProduct)
          Update a product in Grapes database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductHandler

public ProductHandler(RepositoryHandler repositoryHandler)
Method Detail

create

public void create(DbProduct dbProduct)
Creates a new Product in Grapes database

Parameters:
dbProduct - DbProduct

update

public void update(DbProduct dbProduct)
Update a product in Grapes database

Parameters:
dbProduct - DbProduct

getProductNames

public List<String> getProductNames()
Returns all the product names

Returns:
List

getProduct

public DbProduct getProduct(String name)
Returns a product regarding its name

Parameters:
name - String
Returns:
DbProduct

deleteProduct

public void deleteProduct(String name)
Deletes a product from the database

Parameters:
name - String

setProductModules

public void setProductModules(String name,
                              List<String> moduleNames)
Patches the product module names

Parameters:
name - String
moduleNames - List


Copyright © 2014. All Rights Reserved.