com.atlassian.crowd.dao.property
Interface PropertyDAO

All Known Implementing Classes:
PropertyDAOHibernate

public interface PropertyDAO

Persist property objects.


Method Summary
 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 remove(String key, String name)
          Removes a property.
 Property update(Property property)
          Updates a property.
 

Method Detail

find

Property find(String key,
              String name)
              throws ObjectNotFoundException
Finds property by key and name.

Parameters:
key - Key.
name - Name.
Returns:
Property.
Throws:
ObjectNotFoundException - If the property cannot be found.

findAll

List<Property> findAll(String key)
Finds properties by key.

Parameters:
key - Key.
Returns:
List of properties

add

Property add(Property property)
Adds a new property.

Parameters:
property - Property.
Returns:
The saved property.

update

Property update(Property property)
Updates a property.

Parameters:
property - Property.
Returns:
The updated property.

remove

void remove(String key,
            String name)
Removes a property.

Parameters:
key - Key.
name - Name.

findAll

List<Property> findAll()
Retrieves all properties.

Returns:
the list of properties.


Copyright © 2013 Atlassian. All Rights Reserved.