public class AttributeRepositoryImpl extends Object implements AttributeRepository
AttributeRepository interface.| Constructor and Description |
|---|
AttributeRepositoryImpl(List<AttributeTemplate> attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAttributeNames()
Returns a list of all attribute names that are stored in the repository.
|
AttributeTemplate |
getByFriendlyName(String friendlyName)
Returns the
AttributeTemplate for the given friendly name. |
AttributeTemplate |
getByName(String name)
Returns the
AttributeTemplate for the given attribute name. |
public AttributeRepositoryImpl(List<AttributeTemplate> attributes)
attributes - the attributes stored by the repositorypublic List<String> getAttributeNames()
getAttributeNames in interface AttributeRepositorypublic AttributeTemplate getByName(String name)
AttributeTemplate for the given attribute name.getByName in interface AttributeRepositoryname - the attribute nameAttributeTemplate or null if no match existspublic AttributeTemplate getByFriendlyName(String friendlyName)
AttributeTemplate for the given friendly name.getByFriendlyName in interface AttributeRepositoryfriendlyName - the attribute friendly nameAttributeTemplate or null if no match existsCopyright © 2018 Litsec AB. All rights reserved.