|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.identity.plugins.FilePersistenceStrategy
public class FilePersistenceStrategy
An implementation of PersistenceStrategy
that serializes the
Identity
to a file.
Constructor Summary | |
---|---|
FilePersistenceStrategy(String path)
Create a new FilePersistenceStrategy. |
Method Summary | |
---|---|
org.jboss.security.identity.Identity |
getIdentity(String name)
Retrieves an Identity from the backend. |
org.jboss.security.identity.Identity |
persistIdentity(org.jboss.security.identity.Identity identity)
Persists the Identity in the backend. |
boolean |
removeIdentity(org.jboss.security.identity.Identity identity)
Removes an Identity from the backend. |
org.jboss.security.identity.Identity |
updateIdentity(org.jboss.security.identity.Identity identity)
Updates the Identity in the backend. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilePersistenceStrategy(String path)
path
- directory where the files will be stored.Method Detail |
---|
public org.jboss.security.identity.Identity persistIdentity(org.jboss.security.identity.Identity identity)
PersistenceStrategy
Identity
in the backend.
persistIdentity
in interface PersistenceStrategy
identity
- Identity
to be persisted.
Identity
or null
if persistence failed.PersistenceStrategy.persistIdentity(Identity).
public org.jboss.security.identity.Identity getIdentity(String name)
PersistenceStrategy
Identity
from the backend.
getIdentity
in interface PersistenceStrategy
name
- unique name of the Identity
.
Identity
or null
if not found.PersistenceStrategy.getIdentity(String).
public boolean removeIdentity(org.jboss.security.identity.Identity identity)
PersistenceStrategy
Identity
from the backend.
removeIdentity
in interface PersistenceStrategy
identity
- Identity
to be removed.
true
if successfully removed, false
otherwise.PersistenceStrategy.removeIdentity(Identity).
public org.jboss.security.identity.Identity updateIdentity(org.jboss.security.identity.Identity identity)
PersistenceStrategy
Identity
in the backend.
updateIdentity
in interface PersistenceStrategy
identity
- Identity
to be updated.
Identity
or null
if the update was not successful.PersistenceStrategy.updateIdentity(Identity).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |