@Deprecated public class DefaultSecurityFilter extends Object implements ISpaceFilter
SecurityException
will be thrown.SecurityException
Modifier and Type | Class and Description |
---|---|
static class |
DefaultSecurityFilter.MatchObject
Deprecated.
Structure used to maintaining restricted values and their indexes.
|
Modifier and Type | Field and Description |
---|---|
protected ISpaceUserAccountDriver |
m_realm
Deprecated.
GigaSpaces MemoryRealm.
|
protected IJSpace |
m_spaceProxy
Deprecated.
Embedded space proxy.
|
static String |
OPERATION_CLEAN
Deprecated.
Clean operation.
|
static String |
OPERATION_EXECUTE
Deprecated.
execute operation
|
static String |
OPERATION_NOTIFY
Deprecated.
Notify operation.
|
static String |
OPERATION_READ
Deprecated.
Read operation.
|
static String |
OPERATION_TAKE
Deprecated.
Take operation.
|
static String |
OPERATION_UPDATE
Deprecated.
Update operation.
|
static String |
OPERATION_WRITE
Deprecated.
Write operation.
|
Constructor and Description |
---|
DefaultSecurityFilter()
Deprecated.
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Closes this filter, enabling the developer to clean open resources.
|
protected DefaultSecurityFilter.MatchObject |
createOnceMatchObject(List<GenericPrincipal.Attribute> grantAttributes,
String className)
Deprecated.
|
void |
init(IJSpace space,
String filterId,
String url,
int priority)
Deprecated.
Initializes this filter.
|
void |
initSpaceUserAccountDriver(String spaceName,
String url,
String containerName)
Deprecated.
For internal use only.
|
protected boolean |
performMatching(DefaultSecurityFilter.MatchObject matchObj,
Object[] content)
Deprecated.
|
void |
process(SpaceContext context,
ISpaceFilterEntry[] subject,
int operationCode)
Deprecated.
Called only on before replace.
|
void |
process(SpaceContext context,
ISpaceFilterEntry subject,
int operationCode)
Deprecated.
This method is called by the engine when an event matching this filter's
operation code occurs in the space engine.
|
public static final String OPERATION_WRITE
public static final String OPERATION_READ
public static final String OPERATION_TAKE
public static final String OPERATION_UPDATE
public static final String OPERATION_NOTIFY
public static final String OPERATION_CLEAN
public static final String OPERATION_EXECUTE
protected ISpaceUserAccountDriver m_realm
protected IJSpace m_spaceProxy
public DefaultSecurityFilter()
public void init(IJSpace space, String filterId, String url, int priority) throws RuntimeException
init
in interface ISpaceFilter
space
- an embedded proxy to the space that contain this filter.filterId
- the name of this filter.url
- The URL that was passed when this filter was created.priority
- defines the order in which filters are activated.RuntimeException
- if this exception is raised, the filter will be discarded
by the engine for the current engine execution ,unless
defined otherwise in space configuration.public void initSpaceUserAccountDriver(String spaceName, String url, String containerName) throws Exception
Exception
public void process(SpaceContext context, ISpaceFilterEntry[] subject, int operationCode) throws RuntimeException
process
in interface ISpaceFilter
context
- the Context passed by the caller, contains security context. some of the
filters (like ON_INIT) will always receive a null context.subject
- an array of two elements: On AFTER_UPDATE
: the first element represents the old entry while the
second is the new entry.
On BEFORE_NOTIFY_TRIGGER
and AFTER_NOTIFY_TRIGGER
: the first element represents the entry while the
second is the template.
operationCode
- the operation that defines when this filter is activated. The operation
codes are defined in FilterOperationCodes
.RuntimeException
- if this exception is raised for BEFORE filters,public void process(SpaceContext context, ISpaceFilterEntry subject, int operationCode) throws RuntimeException
This method is called by the engine when an event matching this filter's operation code occurs in the space engine. Only for SecurityFilter implementation: On SET_SECURITY operation code call SpaceContext.setSecurityContext().
process
in interface ISpaceFilter
context
- the Context passed by the caller, contains security context. some of the
filters (like ON_INIT) will always receive a null context.subject
- the event that occurred.operationCode
- the operation that defines when this filter is activated. The operation
codes are defined in FilterOperationCodes
.RuntimeException
- if this exception is raised for BEFORE filters, it aborts
the execution of the operation.public void close() throws RuntimeException
close
in interface ISpaceFilter
RuntimeException
- if this exception is raised it will be logged. This should
be used as away to report a filter internal error.protected DefaultSecurityFilter.MatchObject createOnceMatchObject(List<GenericPrincipal.Attribute> grantAttributes, String className) throws Exception
Exception
protected boolean performMatching(DefaultSecurityFilter.MatchObject matchObj, Object[] content)
Copyright © GigaSpaces.