public interface SecurityFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
current_user |
static java.lang.String |
is_adminorpi |
static java.lang.String |
is_nonprivate |
static java.lang.String |
is_share |
Modifier and Type | Method and Description |
---|---|
void |
disable(org.hibernate.Session sess)
Reverts the call to
enable(Session, EventContext) . |
void |
enable(org.hibernate.Session sess,
ome.system.EventContext ec)
Enables this filter with the settings from this filter.
|
java.lang.String |
getDefaultCondition()
Return the string to be used as the condition.
|
java.lang.String |
getName()
Name of this security filter.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameterTypes()
Return a mapping of the hibernate types for each of the parameters
that the condition takes.
|
boolean |
passesFilter(org.hibernate.Session session,
ome.model.internal.Details d,
ome.system.EventContext c)
tests that the
Details argument passes the security test that
this filter defines. |
static final java.lang.String is_share
static final java.lang.String is_adminorpi
static final java.lang.String is_nonprivate
static final java.lang.String current_user
java.lang.String getName()
java.util.Map<java.lang.String,java.lang.String> getParameterTypes()
java.lang.String getDefaultCondition()
boolean passesFilter(org.hibernate.Session session, ome.model.internal.Details d, ome.system.EventContext c)
Details
argument passes the security test that
this filter defines. The two must be kept in sync. This will be used
mostly by the
OmeroInterceptor.onLoad(Object, java.io.Serializable, Object[], String[], org.hibernate.type.Type[])
method.d
- Details instance. If null (or if its Permissions
are
null all rights
will be assumed.void enable(org.hibernate.Session sess, ome.system.EventContext ec)
passesFilter(Session, Details, EventContext)
.sess
- Non-null.ec
- Non-null.void disable(org.hibernate.Session sess)
enable(Session, EventContext)
.