# com.beasys.commerce.ebusiness.customer.jaas
TemplateAction Class

public class TemplateAction
extends `Object`
implements `PrivilegedExceptionAction`

Hierarchy
  `Object`
  `TemplateAction`

All Implemented Interfaces
  `PrivilegedExceptionAction`

## Constructor Summary

TemplateAction(`Customer` customer, `CustomerValue` customerValue)

## Method Summary

`public `Object`` | `run`() Implement the PrivilegedExceptionAction interface
`public void` | `updateCustomer`(`Customer` customer, `CustomerValue` customerValue) See the class documentation above.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `java.security.`PrivilegedExceptionAction``
`run`

## Constructor Detail

### TemplateAction

    public TemplateAction(Customer customer,
                          CustomerValue customerValue)

## Method Detail

### run() Method

    public Object run()
         throws Exception

Implement the PrivilegedExceptionAction interface

#### Exceptions

``Exception``
  thrown by updateCustomer()

Related Topics

``updateCustomer() for exception cases``

### updateCustomer(Customer, CustomerValue) Method

    public void updateCustomer(Customer customer,
                               CustomerValue customerValue)
         throws PrivilegedActionException

See the class documentation above.

#### Parameters

customer
  `PipelineSession` from where it gets `CustomerValue` object.

customerValue
  `Customer` object for current user.

#### Exceptions

``PrivilegedActionException``
  if either a RemoteException or a PropertyValidation exception occurs while setting customer properties.