=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/AttributeService.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/AttributeService.java 2011-11-14 16:02:32 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/AttributeService.java 2011-11-23 18:30:19 +0000 @@ -32,7 +32,7 @@ /** * @author mortenoh */ -public interface AttributeService +interface AttributeService { String ID = AttributeService.class.getName(); @@ -40,47 +40,47 @@ // Attribute // ------------------------------------------------------------------------- - public void addAttribute( Attribute attribute ); - - public void updateAttribute( Attribute attribute ); - - public void deleteAttribute( Attribute attribute ); - - public Attribute getAttribute( int id ); - - public Attribute getAttributeByName( String name ); - - public Set getAllAttributes(); - - public Set getDataElementAttributes(); - - public Set getIndicatorAttributes(); - - public Set getOrganisationUnitAttributes(); - - public Set getUserAttributes(); - - public int getAttributeCount(); - - public int getAttributeCountByName( String name ); - - public Set getAttributesBetween( int first, int max ); - - public Set getAttributesBetweenByName( String name, int first, int max ); + void addAttribute( Attribute attribute ); + + void updateAttribute( Attribute attribute ); + + void deleteAttribute( Attribute attribute ); + + Attribute getAttribute( int id ); + + Attribute getAttributeByName( String name ); + + Set getAllAttributes(); + + Set getDataElementAttributes(); + + Set getIndicatorAttributes(); + + Set getOrganisationUnitAttributes(); + + Set getUserAttributes(); + + int getAttributeCount(); + + int getAttributeCountByName( String name ); + + Set getAttributesBetween( int first, int max ); + + Set getAttributesBetweenByName( String name, int first, int max ); // ------------------------------------------------------------------------- // AttributeValue // ------------------------------------------------------------------------- - public void addAttributeValue( AttributeValue attributeValue ); - - public void updateAttributeValue( AttributeValue attributeValue ); - - public void deleteAttributeValue( AttributeValue attributeValue ); - - public AttributeValue getAttributeValue( int id ); - - public Set getAllAttributeValues(); - - public int getAttributeValueCount(); + void addAttributeValue( AttributeValue attributeValue ); + + void updateAttributeValue( AttributeValue attributeValue ); + + void deleteAttributeValue( AttributeValue attributeValue ); + + AttributeValue getAttributeValue( int id ); + + Set getAllAttributeValues(); + + int getAttributeValueCount(); } === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/AttributeStore.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/AttributeStore.java 2011-11-03 01:02:13 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/attribute/AttributeStore.java 2011-11-23 18:30:19 +0000 @@ -34,7 +34,7 @@ /** * @author mortenoh */ -public interface AttributeStore +interface AttributeStore extends GenericNameableObjectStore { String ID = AttributeStore.class.getName(); @@ -44,26 +44,26 @@ * * @return All attributes with attribute.dataElement = true */ - public Set getDataElementAttributes(); + Set getDataElementAttributes(); /** * Get all attributes that are enabled for indicators. * * @return All attributes with attribute.indicator = true */ - public Set getIndicatorAttributes(); + Set getIndicatorAttributes(); /** * Get all attributes that are enabled for organisation units. * * @return All attributes with attribute.organisationUnit = true */ - public Set getOrganisationUnitAttributes(); + Set getOrganisationUnitAttributes(); /** * Get all attributes that are enabled for users. * * @return All attributes with attribute.organisationUnit = true */ - public Set getUserAttributes(); + Set getUserAttributes(); }