public class Contexts extends MMObjectBuilder
Verify,
Authorization| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONTEXT |
(package private) static int |
DEFAULT_MAX_CONTEXTS_IN_QUERY |
static Parameter<String> |
PARAMETER_GROUPORUSER |
static Parameter<String> |
PARAMETER_OPERATION |
AGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctions, GUI_INDICATOR, GUI_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, pluralNames, searchAge, singularNames, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_EXISTS, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunctionmaxNodesFromQuery, mmb, storageConnector, tableNamefunctions| Constructor and Description |
|---|
Contexts() |
| Modifier and Type | Method and Description |
|---|---|
Authorization.QueryCheck |
check(User userContext,
Query query,
Operation operation)
Implements check function with same arguments of Authorisation security implementation
|
protected ContextProvider |
createProvider() |
static Contexts |
getBuilder()
Staticly receives the MMObjectBuilder instance (cast to Contexts).
|
MMObjectNode |
getDefaultContextNode() |
protected MMObjectNode |
getGroupOrUserNode(Parameters a) |
ContextProvider |
getProvider() |
protected MMObjectNode |
getUserNode(UserContext user) |
boolean |
init()
Initializes this builder
The property 'mmb' needs to be set for the builder before this method can be called.
|
protected boolean |
isOwnNode(User user,
MMObjectNode node) |
protected boolean |
mayDo(MMObjectNode user,
MMObjectNode contextNode,
Operation operation,
boolean checkOwnRights) |
void |
setDefaults(MMObjectNode node)
Makes sure unique values and not-null's are filed
|
String |
toString(MMObjectNode n)
Implements for MMObjectNode
|
addEventListener, addField, addLocalObserver, addRemoteObserver, broadcastChanges, checkAddTmpField, clearBlobCache, commit, create, createAlias, createAlias, createIfNotExists, delete, equals, equals, executeFunction, executeFunction, fieldLocalChanged, getAncestors, getBlobCache, getClassName, getConfigFile, getConfigResource, getDataTypeCollector, getDBState, getDBType, getDefaultTeaser, getDefaultUrl, getDescendants, getDescription, getDescription, getDescriptions, getEmptyNode, getField, getFieldNames, getFields, getFields, getFunction, getFunctionParameters, getFunctions, getGUIIndicator, getGUIIndicator, getGUIIndicator, getHTML, getInitParameter, getInitParameters, getInitParameters, getInternalVersion, getList, getLocaleGUIIndicator, getLocaleGUIIndicator, getMachineName, getMaintainer, getNewNode, getNewTmpNode, getNextField, getNextField, getNode, getNode, getNode, getNodeFromCache, getNodeGUIIndicator, getNumber, getObjectType, getObjectValue, getParentBuilder, getPluralName, getPluralName, getPluralNames, getRelations_main, getSearchAge, getShort, getShortedByte, getShortedInputStream, getShortedText, getSingularName, getSingularName, getSingularNames, getSmartPath, getTmpNode, getURLEncode, getValue, getVersion, getWAP, getXMLPath, hasField, hashCode, hashCode, hostname_function, insert, insert, isExtensionOf, isNodeCached, isNull, isVirtual, loadInitParameters, newFunctionInstance, nodeLocalChanged, nodeRemoteChanged, notify, notify, preCommit, process, removeEventListener, removeField, removeLocalObserver, removeNode, removeRelations, removeRemoteObserver, removeSyncNodes, replace, safeCache, sendFieldChangeSignal, setDescription, setDescriptions, setFields, setInitParameter, setMaintainer, setPluralNames, setSearchAge, setSingularNames, setUniqueValue, setUniqueValue, setValue, setValue, setVersion, setXMLPath, shutdown, testValidData, toString, update, updateFields, wrapcount, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, sizeaddFunction, createParameters, getFunction, getFunctions, getFunctionValuepublic static final String DEFAULT_CONTEXT
static final int DEFAULT_MAX_CONTEXTS_IN_QUERY
protected ContextProvider createProvider()
public boolean init()
MMObjectBuilderinit in class MMObjectBuilderMMObjectBuilder.create()public static Contexts getBuilder()
public ContextProvider getProvider()
protected boolean isOwnNode(User user, MMObjectNode node)
protected boolean mayDo(MMObjectNode user, MMObjectNode contextNode, Operation operation, boolean checkOwnRights)
public Authorization.QueryCheck check(User userContext, Query query, Operation operation)
public final MMObjectNode getDefaultContextNode()
public void setDefaults(MMObjectNode node)
setDefaults in class MMObjectBuildernode - The node to set the defaults of.protected MMObjectNode getUserNode(UserContext user)
protected MMObjectNode getGroupOrUserNode(Parameters a)
public String toString(MMObjectNode n)
MMObjectBuildertoString in class MMObjectBuilderMMBase 1.9-SNAPSHOT - ${javadoctimestamp}