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 AttributeRepository
public AttributeTemplate getByName(String name)
AttributeTemplate
for the given attribute name.getByName
in interface AttributeRepository
name
- the attribute nameAttributeTemplate
or null
if no match existspublic AttributeTemplate getByFriendlyName(String friendlyName)
AttributeTemplate
for the given friendly name.getByFriendlyName
in interface AttributeRepository
friendlyName
- the attribute friendly nameAttributeTemplate
or null
if no match existsCopyright © 2018 Litsec AB. All rights reserved.