public interface SecurityFilter
Modifier and Type | Field and Description |
---|---|
static String |
current_user |
static String |
is_adminorpi |
static String |
is_nonprivate |
static 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,
EventContext ec)
Enables this filter with the settings from this filter.
|
String |
getDefaultCondition()
Return the string to be used as the condition.
|
String |
getName()
Name of this security filter.
|
Map<String,String> |
getParameterTypes()
Return a mapping of the hibernate types for each of the parameters
that the condition takes.
|
boolean |
passesFilter(org.hibernate.Session session,
Details d,
EventContext c)
tests that the
Details argument passes the security test that
this filter defines. |
static final String is_share
static final String is_adminorpi
static final String is_nonprivate
static final String current_user
String getName()
Map<String,String> getParameterTypes()
String getDefaultCondition()
boolean passesFilter(org.hibernate.Session session, Details d, 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, EventContext ec)
#passesFilter(Details, Long, Long, boolean, boolean, boolean, List)
.sess
- Non-null.ec
- Non-null.void disable(org.hibernate.Session sess)
enable(Session, EventContext)
.
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.