Cisco Systems Inc. Confidential

com.scms.common
Class PolicyProfile_BULK

java.lang.Object
  extended by com.scms.common.BulkBase
      extended by com.scms.common.PolicyProfile_BULK
All Implemented Interfaces:
com.pcube.management.framework.rpc.GenericSerializable, java.io.Serializable

public class PolicyProfile_BULK
extends com.scms.common.BulkBase
implements java.io.Serializable

This class represents bulk of subscribers IDs and subscriber Policy Profiles and it is used in updatePolicyProfileBulk operation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.scms.common.BulkBase
MAX_BULK_SIZE, subsBulk
 
Constructor Summary
PolicyProfile_BULK()
          Constructs and empty bulk.
PolicyProfile_BULK(java.lang.String[] subscriberIDs, PolicyProfile[] policy)
          Constructor
 
Method Summary
 void addBulkEntry(java.lang.String subscriberID, PolicyProfile policy)
          Adds an entry to the bulk
protected  void validateArguments(java.lang.String[] subscriberIDs, PolicyProfile[] policy)
           
 
Methods inherited from class com.scms.common.BulkBase
addBulkEntry, addBulkEntry, deserialize, getIterator, getSize, getSubscribers, readObject, toString, validateArguments, validateArguments, validateArguments, validateArguments, validateBulkSize, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicyProfile_BULK

public PolicyProfile_BULK()
Constructs and empty bulk. Use addBulkEntry method to fill the bulk


PolicyProfile_BULK

public PolicyProfile_BULK(java.lang.String[] subscriberIDs,
                          PolicyProfile[] policy)
                   throws java.lang.IllegalArgumentException
Constructor

Throws:
java.lang.IllegalArgumentException
See Also:
method for parameters description
Method Detail

validateArguments

protected void validateArguments(java.lang.String[] subscriberIDs,
                                 PolicyProfile[] policy)
                          throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

addBulkEntry

public void addBulkEntry(java.lang.String subscriberID,
                         PolicyProfile policy)
                  throws java.lang.IllegalArgumentException
Adds an entry to the bulk

Parameters:
subscriberID - - the unique ID of the subscriber.
policy - - policy profile of the subscriber
Throws:
java.lang.IllegalArgumentException

Cisco Systems Inc. Confidential