|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EncryptionContentIterator
An iterator over a collection of contents for encryption purpose. The content is here represented
by a Map
object in which each entry represents a field or a property of a content.
ContentEncryptionService
.
The provider can implement this interface by wrapping the retrieve of the contents to be
encrypted or to be decrypted and to put them at disposition of the caller.
It extends the Iterator
interface by adding the following methods:
update(java.util.Map)
to update the last content returned by the iterator,onError(java.util.Map, org.silverpeas.util.crypto.CryptoException)
to inform the
implementation of this interface of an error while processing the last content returned by it, so
that it can perform specific treatments with any retrieve mechanism (like closing correctly a
connection for example).
Method Summary | |
---|---|
boolean |
hasNext()
Is there another content in this iteration? |
void |
init()
Initialize contents to iterate. |
Map<String,String> |
next()
Gets the next content in the iteration. |
void |
onError(Map<String,String> content,
CryptoException ex)
An error occurred while processing the last content returned by this iterator. |
void |
update(Map<String,String> updatedContent)
Updates the last content returned by this iterator. |
Methods inherited from interface java.util.Iterator |
---|
remove |
Method Detail |
---|
void init()
Map<String,String> next()
next
in interface Iterator<Map<String,String>>
Map
object in which each entry
represents a field or a property of the content.boolean hasNext()
next()
method.
hasNext
in interface Iterator<Map<String,String>>
void update(Map<String,String> updatedContent)
updatedContent
- the content updated by the encryption service in the form of a
Map
object in which each entry represents a field or a property of the content.void onError(Map<String,String> content, CryptoException ex)
content
- the content with which the error occurred.ex
- the exception raised at the error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |