com.beasys.commerce.ebusiness.catalog
Interface CatalogRequest

All Known Implementing Classes:
CatalogRequestImpl

public interface CatalogRequest

This interface is the common input record to catalog services that return catalog data. It contains everything required to resolve a catalog request to catalog content.


Field Summary
static int ADMINISTRATION
          Authorization bit-field constant for administrator use of the catalog.
static int DEFAULT_USE
          Authorization bit-field constant for end-user use of the catalog.
 
Method Summary
 int getAuthorization()
          Gets the authorization bit-field for this catalog request.
 String getLanguage()
           
 boolean getShowAll()
           
 boolean hasAuthorization(int authorizationCode)
           
 void setLanguage(String language)
          Sets the language associated with the catalog request or null if this request (or catalog) is language unaware.
 void setShowAll(boolean showAll)
          Sets the visibility attribute for this catalog request.
 

Field Detail

DEFAULT_USE

static final int DEFAULT_USE
Authorization bit-field constant for end-user use of the catalog.

See Also
Constants Summary

ADMINISTRATION

static final int ADMINISTRATION
Authorization bit-field constant for administrator use of the catalog.

See Also
Constants Summary
Method Detail

getLanguage

String getLanguage()
Returns
the language associated with the catalog request or null if this request (or catalog) is language unaware.

setLanguage

void setLanguage(String language)
Sets the language associated with the catalog request or null if this request (or catalog) is language unaware.

Parameters
language - the language attribute to use.

getShowAll

boolean getShowAll()
Returns
whether to retrieve all catalog items, irrespective of whether they have been marked as invisible.

setShowAll

void setShowAll(boolean showAll)
Sets the visibility attribute for this catalog request. if the showAll attribute is true all items will be returned irrespective of item visiblity. By default end-user catalog requests have showAll set to false and administrator catalog requests have showAll set to true. return the showAll attribute


getAuthorization

int getAuthorization()
Gets the authorization bit-field for this catalog request.


hasAuthorization

boolean hasAuthorization(int authorizationCode)
Returns
true if the current catalog request has the required authorization: one of DEFAULT_USE or ADMINISTRATION.


Copyright © 2006 BEA Systems, Inc. All Rights Reserved