|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminCustomerTagMgrIf
AdminCustomerTagMgrIf
Method Summary | |
---|---|
int |
deleteCustomerTag(int id)
Delete a Customer tag |
void |
deleteCustomerTagForCustomer(int customerId,
java.lang.String tagName)
Deletes the value of the customer tag referenced by tagName for the customer
referenced by customerId . |
int |
deleteExpression(int id)
Deletes the Expression object referenced by id . |
int |
deleteExpressionVariable(int id)
Deletes the ExpressionVariable object referenced by id . |
void |
deleteExpressionVariablesForExpression(int expressionId)
Deletes all of the AdminExpressionVariable objects belonging to the AdminExpression referenced by expressionId . |
boolean |
evaluateExpression(int customerId,
int expressionId,
java.lang.String expressionName)
An expression object is retrieved from the database and evaluated for the customer referenced by the customerId . |
AdminCustomerTag |
getCustomerTag(int id)
Returns the customer tag object for the id parameter, or Null if the customer
tag doesn't exist in the DB. |
AdminCustomerTag |
getCustomerTagForCustomer(int customerId,
java.lang.String tagName)
Returns the customer tag object for the tagName parameter, or Null if the
customer tag doesn't exist in the DB. |
AdminCustomerTag |
getCustomerTagForName(java.lang.String tagName)
Returns the customer tag object for the tagName parameter, or Null if the
customer tag doesn't exist in the DB. |
AdminCustomerTagSearchResult |
getCustomerTags(AdminCustomerTagSearch search,
int offset,
int size)
This returns an AdminCustomerTagSearchResult object. |
AdminCustomerTag[] |
getCustomerTagsForCustomer(int customerId)
This method fetches all of the customer tags for the customer referenced by the customerId parameter. |
AdminExpression |
getExpression(int id)
Returns the AdminExpression object for the id parameter, or Null if the
AdminExpression doesn't exist in the DB. |
AdminExpression |
getExpressionForName(java.lang.String expName)
Returns the AdminExpression object for the expName parameter, or Null if the
AdminExpression doesn't exist in the DB. |
AdminExpressionSearchResult |
getExpressions(AdminExpressionSearch search,
int offset,
int size)
This returns an AdminExpressionSearchResult object. |
AdminExpression[] |
getExpressionsPerPromotion(int promotionId)
Fetch an array of Expression objects linked to the promotion referenced by promotionId |
AdminExpressionVariable |
getExpressionVariable(int id)
Returns the AdminExpressionVariable object for the id parameter, or Null if the
AdminExpressionVariable doesn't exist in the DB. |
AdminExpressionVariable[] |
getExpressionVariablesForExpression(int expressionId)
Returns an array of AdminExpressionVariable objects for the AdminExpression identified by the id parameter. |
int |
insertCustomerTag(AdminCustomerTag tag)
An AdminCustomerTag object is inserted into the database. |
void |
insertCustomerTagForCustomer(int customerId,
AdminCustomerTag tag)
Assigns a customer tag to the customer referenced by the customerId . |
int |
insertExpression(AdminExpression exp)
Inserts an AdminExpression object. |
int |
insertExpressionVariables(AdminExpressionVariable[] expVarArray)
Inserts an array of ExpressionVariable objects that should all belong to the same expression. |
int |
updateCustomerTag(AdminCustomerTag tag)
Update an AdminCustomerTag object. |
int |
updateExpression(AdminExpression exp)
Updates the expression. |
int |
updateExpressionVariable(AdminExpressionVariable expVar)
Updates the ExpressionVariable object passed in as a parameter. |
Method Detail |
---|
boolean evaluateExpression(int customerId, int expressionId, java.lang.String expressionName) throws java.lang.Exception
customerId
. If the expressionName
parameter is not set to
null, then the Expression is searched for by name. Otherwise it is searched for by the id
contained in the expressionId
parameter.
customerId
- expressionId
- expressionName
-
java.lang.Exception
int insertCustomerTag(AdminCustomerTag tag) throws KKAdminException, org.apache.torque.TorqueException
tag
-
KKAdminException
org.apache.torque.TorqueException
AdminCustomerTagSearchResult getCustomerTags(AdminCustomerTagSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- The search object that defines the search parameters and sort orderoffset
- The offset in the dbsize
- The number of records from the specified offset
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
int updateCustomerTag(AdminCustomerTag tag) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
tag
- An AdminCustomerTag object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int deleteCustomerTag(int id) throws KKAdminException, org.apache.torque.TorqueException
id
- The id of the deleted customer tag
KKAdminException
org.apache.torque.TorqueException
void deleteCustomerTagForCustomer(int customerId, java.lang.String tagName) throws KKAdminException, org.apache.torque.TorqueException
tagName
for the customer
referenced by customerId
.
customerId
- The id of the customertagName
- The name of the customer tag
KKAdminException
org.apache.torque.TorqueException
AdminCustomerTag getCustomerTag(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the customer
tag doesn't exist in the DB.
id
- The id of the customer tag
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminCustomerTag getCustomerTagForCustomer(int customerId, java.lang.String tagName) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
tagName
parameter, or Null if the
customer tag doesn't exist in the DB. The value
attribute of the customer tag
contains the value for the customer referenced by customerId
.
customerId
- The id of the customertagName
- The name of the customer tag
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminCustomerTag getCustomerTagForName(java.lang.String tagName) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
tagName
parameter, or Null if the
customer tag doesn't exist in the DB.
tagName
- The name of the customer tag
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminCustomerTag[] getCustomerTagsForCustomer(int customerId) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
customerId
parameter. The value
attribute of the customer tag
contains the value for the customer referenced by customerId
.
An empty array is returned if no tags exist.
customerId
- The id of the customer
org.apache.torque.TorqueException
KKAdminException
com.workingdogs.village.DataSetException
void insertCustomerTagForCustomer(int customerId, AdminCustomerTag tag) throws KKAdminException, org.apache.torque.TorqueException, java.text.ParseException, com.workingdogs.village.DataSetException
customerId
. If a tag
already exists with this name, then the value is replaced with the new value. The compulsory
tag fields are:
Note that a customer tag with name tag.getName()
must exist in the database
since it is used to validate tag.getValue()
.
customerId
- The id of the customertag
- The customer tag object
KKAdminException
org.apache.torque.TorqueException
java.text.ParseException
com.workingdogs.village.DataSetException
int insertExpression(AdminExpression exp) throws KKAdminException, org.apache.torque.TorqueException
name
attribute of the
AdminExpression is required.
exp
- The AdminExpression object to be inserted
KKAdminException
org.apache.torque.TorqueException
int updateExpression(AdminExpression exp) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
exp
- The AdminExpression object to be updated
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int deleteExpression(int id) throws java.lang.Exception
id
.
id
- The id of the AdminExpression object to be deleted
java.lang.Exception
AdminExpression getExpression(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
AdminExpression doesn't exist in the DB.
id
- The id of the AdminExpression object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminExpressionVariable getExpressionVariable(int id) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter, or Null if the
AdminExpressionVariable doesn't exist in the DB.
id
- The id of the AdminExpressionVariable object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminExpressionVariable[] getExpressionVariablesForExpression(int expressionId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
id
parameter. An empty array is returned if no objects are found.
expressionId
- The AdminExpression id for the AdminExpressionVariable objects
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminExpression getExpressionForName(java.lang.String expName) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
expName
parameter, or Null if the
AdminExpression doesn't exist in the DB.
expName
- The name of the AdminExpression object
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminExpressionSearchResult getExpressions(AdminExpressionSearch search, int offset, int size) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- The search object that defines the search parameters and sort orderoffset
- The offset in the dbsize
- The number of records from the specified offset
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int insertExpressionVariables(AdminExpressionVariable[] expVarArray) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
expVarArray
- The AdminExpressionVariable array of objects to be inserted
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
int updateExpressionVariable(AdminExpressionVariable expVar) throws KKAdminException, org.apache.torque.TorqueException
expVar
- The AdminExpressionVariable object to be updated
KKAdminException
org.apache.torque.TorqueException
int deleteExpressionVariable(int id) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
id
.
id
- The id of the AdminExpressionVariable object to be deleted
org.apache.torque.TorqueException
KKAdminException
com.workingdogs.village.DataSetException
void deleteExpressionVariablesForExpression(int expressionId) throws org.apache.torque.TorqueException, KKAdminException, com.workingdogs.village.DataSetException
expressionId
.
expressionId
- The id of the AdminExpression object
com.workingdogs.village.DataSetException
KKAdminException
org.apache.torque.TorqueException
AdminExpression[] getExpressionsPerPromotion(int promotionId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
promotionId
promotionId
-
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |