public class ICEDeliveryPolicy extends Object implements IICEElement, IICEElementHandler, IDOMStorable
ice-delivery-rule
+)
!ATTLIST ice-delivery-policy
startdate CDATA #IMPLIED
stopdate CDATA #IMPLIEDICEOffer
,
Copyright 2004 SAP AG
Modifier and Type | Field and Description |
---|---|
static String |
CID_DELIVERY_POLICY |
static String |
TAGNAME |
Constructor and Description |
---|
ICEDeliveryPolicy(Attributes attributes)
Creates a new delivery policy.
|
ICEDeliveryPolicy(Element element)
Create an ICEDeliveryPolicy object from a DOM-element.
|
ICEDeliveryPolicy(List rules)
Creates a new delivery policy containing a list of delivery rules.
|
ICEDeliveryPolicy(String configId) |
Modifier and Type | Method and Description |
---|---|
void |
deleteConfig(com.sapportals.config.fwk.IConfigPlugin icePlugin) |
boolean |
endElement(String name)
Receive notification of the end of an element.
|
String |
getConfigId()
Gets the identifier of the configurable which stores the configuration of this policy.
|
List |
getDeliveryRules()
Get all delivery rules of the delivery policy.
|
List |
getMatchingRules(Date date,
Date lastUpdate,
ICEDeliveryMode mode)
Gets the delivery rules that match a certain time and delivery mode.
|
Date |
getStartDate()
Get the overall start date of the delivery policy.
|
Date |
getStopDate()
Get the overall stop date of the delivery policy.
|
void |
saveConfig(com.sapportals.config.fwk.IConfigPlugin icePlugin) |
IICECharacterHandler |
startElement(String name,
Attributes attributes,
PreparsedXML input)
Receive notification of the beginning of an element.
|
Node |
store(Document document)
Store the informations into a DOM.
|
String |
toString()
Returns a string representation of this delivery policy.
|
void |
write(ContentHandler handler)
Write the XML representation of the ICE element to a SAX ContentHandler.
|
boolean |
writeChunk(ContentHandler handler)
Write a chunk of XML to a SAX ContentHandler.
|
public static final String TAGNAME
public static final String CID_DELIVERY_POLICY
public ICEDeliveryPolicy(List rules)
rules
- a list of DeliveryRule objects (must not be empty)public ICEDeliveryPolicy(Attributes attributes)
attributes
- The attributes of the ice-delivery-policy tag.public ICEDeliveryPolicy(String configId) throws com.sapportals.config.fwk.InitialConfigException, com.sapportals.config.fwk.CannotAccessConfigException
com.sapportals.config.fwk.InitialConfigException
com.sapportals.config.fwk.CannotAccessConfigException
public ICEDeliveryPolicy(Element element)
element
- A DOM-element containing the data of the delivery policypublic Date getStartDate()
public Date getStopDate()
public List getDeliveryRules()
public List getMatchingRules(Date date, Date lastUpdate, ICEDeliveryMode mode)
date
- the date to filter the rules (might be null
)lastUpdate
- the date of the last update (might be null
)mode
- the delivery mode to filter the rulesdate
and
mode
or null
if there are
no matching rulespublic IICECharacterHandler startElement(String name, Attributes attributes, PreparsedXML input) throws SAXException
startElement
in interface IICEElementHandler
name
- The local name of the XML element (we don't need namespaces at this point)input
- The preparsed XML stream to get the element contentattributes
- AttributesSAXException
- on error (might wrap another exception)public boolean endElement(String name) throws SAXException
endElement
in interface IICEElementHandler
name
- The local name of the XML element (we don't need namespaces at this point)SAXException
- on error (might wrap another exception)public void write(ContentHandler handler) throws SAXException
write
in interface IICEElement
handler
- The SAX ContentHandler (usually an XMLSerializer)SAXException
- on error (might wrap another exception)public boolean writeChunk(ContentHandler handler) throws SAXException
writeChunk
in interface IICEElement
handler
- The SAX ContentHandler (usually a XMLSerializer)SAXException
- on error (might wrap another exception)public Node store(Document document)
store
in interface IDOMStorable
document
- The DOM document that should be used as factory for the DOM elementspublic void saveConfig(com.sapportals.config.fwk.IConfigPlugin icePlugin) throws com.sapportals.config.fwk.ConfigException
com.sapportals.config.fwk.ConfigException
public void deleteConfig(com.sapportals.config.fwk.IConfigPlugin icePlugin) throws com.sapportals.config.fwk.ConfigException
com.sapportals.config.fwk.ConfigException
public String getConfigId()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice