|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.repository.UserInfo
public class UserInfo
Manage access to misc. user info that we might want to store.
Nested Class Summary | |
---|---|
static interface |
UserInfo.Command
|
static class |
UserInfo.InboxEntry
And entry in an inbox. |
static class |
UserInfo.Val
|
Constructor Summary | |
---|---|
UserInfo(RulesRepository repo)
Use the current sessions userName to get to the info node. |
|
UserInfo(RulesRepository repo,
String userName)
Use the given userName to select the node. |
Method Summary | |
---|---|
void |
clear(String fileName,
String boxName)
|
static void |
eachUser(RulesRepository repository,
UserInfo.Command c)
Do something for each user. |
UserInfo.Val |
getProperty(String fileName,
String propertyName)
|
List<UserInfo.InboxEntry> |
readEntries(String fileName,
String propertyName)
|
void |
save()
Persists the change (if not in a transaction of course, if in a transaction, it will wait until the boundary is hit, as per JCR standard. |
void |
setProperty(String fileName,
String propertyName,
UserInfo.Val value)
|
void |
writeEntries(String fileName,
String boxName,
List<UserInfo.InboxEntry> entries)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserInfo(RulesRepository repo) throws RulesRepositoryException
RulesRepositoryException
public UserInfo(RulesRepository repo, String userName) throws RulesRepositoryException
RulesRepositoryException
Method Detail |
---|
public List<UserInfo.InboxEntry> readEntries(String fileName, String propertyName) throws RulesRepositoryException
RulesRepositoryException
public void writeEntries(String fileName, String boxName, List<UserInfo.InboxEntry> entries) throws RulesRepositoryException
RulesRepositoryException
public void clear(String fileName, String boxName)
public void setProperty(String fileName, String propertyName, UserInfo.Val value) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public UserInfo.Val getProperty(String fileName, String propertyName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public static void eachUser(RulesRepository repository, UserInfo.Command c) throws RulesRepositoryException
c
-
RulesRepositoryException
public void save() throws RulesRepositoryException
javax.jcr.RepositoryException
RulesRepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |