|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.directory.BaseSession
public abstract class BaseSession
Base session class with helper methods common to all kinds of directory sessions.
| Constructor Summary | |
|---|---|
BaseSession()
|
|
| Method Summary | |
|---|---|
static DocumentModel |
createEntryModel(java.lang.String sessionId,
java.lang.String schema,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> values)
Returns a bare document model suitable for directory implementations. |
static DocumentModel |
createEntryModel(java.lang.String sessionId,
java.lang.String schema,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> values,
boolean readOnly)
Returns a bare document model suitable for directory implementations. |
static boolean |
isReadOnlyEntry(DocumentModel entry)
Test whether entry comes from a read-only back-end directory. |
static void |
setReadOnlyEntry(DocumentModel entry)
Set the read-only flag of a directory entry. |
static void |
setReadWriteEntry(DocumentModel entry)
Unset the read-only flag of a directory entry. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nuxeo.ecm.directory.Session |
|---|
authenticate, close, commit, createEntry, createEntry, deleteEntry, deleteEntry, deleteEntry, getEntries, getEntry, getEntry, getIdField, getPasswordField, getProjection, getProjection, hasEntry, isAuthenticating, isReadOnly, query, query, query, query, rollback, updateEntry |
| Constructor Detail |
|---|
public BaseSession()
| Method Detail |
|---|
public static DocumentModel createEntryModel(java.lang.String sessionId,
java.lang.String schema,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> values)
throws PropertyException
Can be used for creation screen
PropertyException
public static DocumentModel createEntryModel(java.lang.String sessionId,
java.lang.String schema,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> values,
boolean readOnly)
throws PropertyException
Allow setting the readonly entry flag to Boolean.TRUE. See
Session#isReadOnlyEntry(DocumentModel)
PropertyExceptionpublic static boolean isReadOnlyEntry(DocumentModel entry)
public static void setReadOnlyEntry(DocumentModel entry)
public static void setReadWriteEntry(DocumentModel entry)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||