|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ibm.websphere.samples.plantsbywebsphereclient.PBWSBusinessObjects
public class PBWSBusinessObjects
Layer that retrieves information from the Business Object layer.
| Field Summary | |
|---|---|
static java.lang.String |
Report_TopSellersForDates
|
static java.lang.String |
Report_TopSellingZipsForDates
|
| Constructor Summary | |
|---|---|
PBWSBusinessObjects()
Default Constructor |
|
| Method Summary | |
|---|---|
static boolean |
assignInvItemToPerson(java.lang.String itemID,
java.lang.String person)
Assign a given inventory item to the specified person. |
static boolean |
clearInventoryQueue()
Clear-out the JMS Inventory Queue |
static boolean |
clearInventoryQueueforItem(java.lang.String itemID)
Clear-out the JMS Inventory Queue for an Item. |
static boolean |
completeInvItem(java.lang.String itemID)
Complete the inventory item |
static boolean |
createUnassignedInvItem(java.lang.String itemID,
int categoryID)
Add a new Unassigned Item to the inventory queue. |
static java.util.Vector |
getAssignedInvItemsByPerson(java.lang.String person)
Retrieve all assigned items for a given person. |
static com.ibm.websphere.samples.plantsbywebsphereejb.Catalog |
getCatalog()
|
static com.ibm.websphere.samples.plantsbywebsphereejb.StoreItem |
getCatalogItem(java.lang.String itemID)
Retrieve an item from the catalog from it's Item ID |
static void |
getCatalogItemImageByFile(java.lang.String itemID,
java.io.File imgDestFile)
Retrieves a catalog item's image for a given item and places it into a file with the specified name and path on the local hard drive. |
static byte[] |
getCatalogItemImageBytes(java.lang.String itemID)
Retrieves a catalog item's image for a given item into an array of bytes. |
static java.util.Vector |
getCategories()
Returns a vector of Category objects for each available category. |
static java.lang.String |
getCategoryNameFromID(int catID)
Retrieves the Category Name from a Category ID. |
static int |
getCatIdFromName(java.lang.String catName)
Retrieves the Category ID from a Category Name. |
static java.lang.String[] |
getInvPersonnel()
Get a list of Inventory Personnel names. |
static com.ibm.websphere.samples.plantsbywebsphereejb.ReportGenerator |
getReportGenerator()
Retrieves a ReportGenerator remote object. |
static java.util.Vector |
getUnassignedInvItemsByCategory(int categoryID)
Retrieve all of the unassigned inventory items for the given category. |
static void |
init()
Initializes the Business Objects by finding the EJB home objects. |
static void |
init(java.lang.String userId,
java.lang.String passWord)
Initializes the Business Objects by finding the EJB home objects. |
static com.ibm.websphere.samples.plantsbywebsphereejb.Report |
runReport(java.lang.String rptName,
java.util.Date fromDate,
java.util.Date toDate,
int maxRows,
java.io.File outFile)
Run a report and store the results in an input file. |
static void |
sendEmail(java.lang.String toAddr,
java.lang.String fromAddr,
java.lang.String subject,
java.lang.String message,
java.util.Vector vItemIDs)
Send an email to the designated email address. |
static void |
setCatalogItemImageByFile(java.lang.String itemID,
java.io.File imgFile)
Sets a catalog item's image for a given item for an input file on the local user's hard drive. |
static void |
setCatalogItemImageBytes(java.lang.String itemID,
byte[] imgBytes)
Sets a catalog item's image for a given item to an array of bytes. |
static boolean |
unassignInvItem(java.lang.String itemID)
Unassign the given item from whomever it's current assigned to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String Report_TopSellersForDates
public static final java.lang.String Report_TopSellingZipsForDates
| Constructor Detail |
|---|
public PBWSBusinessObjects()
| Method Detail |
|---|
public static void init()
public static void init(java.lang.String userId,
java.lang.String passWord)
public static java.util.Vector getCategories()
public static int getCatIdFromName(java.lang.String catName)
String - Category Name
public static java.lang.String getCategoryNameFromID(int catID)
int - Category ID
public static void sendEmail(java.lang.String toAddr,
java.lang.String fromAddr,
java.lang.String subject,
java.lang.String message,
java.util.Vector vItemIDs)
throws javax.mail.MessagingException
String - Email Address of the recipient.String - Email Address of the sender.String - Additional message text to send to the recipient.Vector - Item ID's of the catalog items to send to the recipient.
javax.mail.MessagingExceptionpublic static java.lang.String[] getInvPersonnel()
public static boolean createUnassignedInvItem(java.lang.String itemID,
int categoryID)
String - The Catalog item ID to create.String - The Category ID of the item.
public static boolean unassignInvItem(java.lang.String itemID)
String - The Catalog item ID to unassign.
public static boolean assignInvItemToPerson(java.lang.String itemID,
java.lang.String person)
String - The Catalog item ID to assign.String - The user id of the person to assign to.
public static java.util.Vector getUnassignedInvItemsByCategory(int categoryID)
int - The category to retrieve unassigned items for.
public static java.util.Vector getAssignedInvItemsByPerson(java.lang.String person)
String - The id of the person to retreive the assigned items for.
public static boolean completeInvItem(java.lang.String itemID)
String - The Catalog item ID
public static boolean clearInventoryQueueforItem(java.lang.String itemID)
String - The Catalog item ID
public static boolean clearInventoryQueue()
public static com.ibm.websphere.samples.plantsbywebsphereejb.Catalog getCatalog()
throws javax.ejb.CreateException,
java.rmi.RemoteException
javax.ejb.CreateException
java.rmi.RemoteExceptionpublic static com.ibm.websphere.samples.plantsbywebsphereejb.StoreItem getCatalogItem(java.lang.String itemID)
public static void setCatalogItemImageBytes(java.lang.String itemID,
byte[] imgBytes)
String - The catalog Item IDbyte[] - An array of bytes representing the image.public static byte[] getCatalogItemImageBytes(java.lang.String itemID)
String - The catalog Item ID
public static void setCatalogItemImageByFile(java.lang.String itemID,
java.io.File imgFile)
throws java.io.FileNotFoundException,
java.io.IOException
String - The catalog Item IDFile - An existing image file.
java.io.FileNotFoundException
java.io.IOException
public static void getCatalogItemImageByFile(java.lang.String itemID,
java.io.File imgDestFile)
throws java.io.FileNotFoundException,
java.io.IOException
String - The catalog Item IDFile - The image file to create
java.io.FileNotFoundException
java.io.IOException
public static com.ibm.websphere.samples.plantsbywebsphereejb.ReportGenerator getReportGenerator()
throws javax.ejb.CreateException,
java.rmi.RemoteException
javax.ejb.CreateException
java.rmi.RemoteException
public static com.ibm.websphere.samples.plantsbywebsphereejb.Report runReport(java.lang.String rptName,
java.util.Date fromDate,
java.util.Date toDate,
int maxRows,
java.io.File outFile)
throws java.io.IOException,
java.lang.Throwable
rptName - The name of the report to run.fromDate - The beginning date to run from.toDate - The end date to run to.maxRows - The maximum number of rows of data to return.outFile - The file to write the report results to.
java.io.IOException
java.lang.Throwable
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||