public class EncryptingPropertyDAO extends Object implements PropertyDAO, DataReEncryptor
| Constructor and Description |
|---|
EncryptingPropertyDAO() |
| Modifier and Type | Method and Description |
|---|---|
Property |
add(Property property)
Adds a new property.
|
Property |
find(String key,
String name)
Finds property by key and name.
|
List<Property> |
findAll()
Retrieves all properties.
|
List<Property> |
findAll(String key)
Finds properties by key.
|
void |
reEncrypt() |
void |
remove(String key,
String name)
Removes a property.
|
void |
setDelegate(PropertyDAO delegate) |
void |
setEncryptor(PropertyEncryptor encryptor) |
Property |
update(Property property)
Updates a property.
|
public void setDelegate(PropertyDAO delegate)
public void setEncryptor(PropertyEncryptor encryptor)
public Property find(String key, String name) throws ObjectNotFoundException
PropertyDAOfind in interface PropertyDAOkey - Key.name - Name.ObjectNotFoundException - If the property cannot be found.public List<Property> findAll(String key)
PropertyDAOfindAll in interface PropertyDAOkey - Key.public Property add(Property property)
PropertyDAOadd in interface PropertyDAOproperty - Property.public Property update(Property property)
PropertyDAOupdate in interface PropertyDAOproperty - Property.public void remove(String key, String name)
PropertyDAOremove in interface PropertyDAOkey - Key.name - Name.public List<Property> findAll()
PropertyDAOfindAll in interface PropertyDAOpublic void reEncrypt()
reEncrypt in interface DataReEncryptorCopyright © 2023 Atlassian. All rights reserved.