public interface PersistenceStrategy
Identity
persistence strategy (file, db, etc.).Modifier and Type | Method and Description |
---|---|
Identity |
getIdentity(String name)
Retrieves an
Identity from the backend. |
Identity |
persistIdentity(Identity identity)
Persists the
Identity in the backend. |
boolean |
removeIdentity(Identity identity)
Removes an
Identity from the backend. |
Identity |
updateIdentity(Identity identity)
Updates the
Identity in the backend. |
Identity persistIdentity(Identity identity)
Identity
in the backend.identity
- Identity
to be persisted.Identity
or null
if persistence failed.Identity getIdentity(String name)
Identity
from the backend.name
- unique name of the Identity
.Identity
or null
if not found.Identity updateIdentity(Identity identity)
Identity
in the backend.identity
- Identity
to be updated.Identity
or null
if the update was not successful.boolean removeIdentity(Identity identity)
Identity
from the backend.identity
- Identity
to be removed.true
if successfully removed, false
otherwise.Copyright © 2019 JBoss by Red Hat. All rights reserved.