@Override public Collection<ResourceAttribute<?>> getAllIdentifiers() { return extractAttributesByDefinitions(getDefinition().getAllIdentifiers()); }
/** * Returns secondary identifiers. * * This method returns properties that act as secondary identifiers for the * resource object. Secondary identifiers are used to confirm primary * identification of resource object. * * Returns empty set if no identifier is defined. Must not return null. * * Resource objects may have multiple (composite) identifiers, all of them * are returned. * * @return set of secondary identifier properties */ @Override public Collection<ResourceAttribute<?>> getSecondaryIdentifiers() { return extractAttributesByDefinitions(getDefinition().getSecondaryIdentifiers()); }
/** * Returns primary identifiers. * * This method returns properties that act as (primary) identifiers for the * resource object. Primary identifiers are used to access the resource * objects, retrieve them from resource, identify objects for modifications, * etc. * * Returns empty set if no identifier is defined. Must not return null. * * Resource objects may have multiple (composite) identifiers, all of them * are returned. * * The returned set it immutable! Any modifications will be lost. * * @return set of identifier properties */ @Override public Collection<ResourceAttribute<?>> getPrimaryIdentifiers() { return extractAttributesByDefinitions(getDefinition().getPrimaryIdentifiers()); }