Session
privacy no less than this, see PrivilegedStringType
@Deprecated public class LightAdminPrivilegesSecurityFilter extends AbstractSecurityFilter
Session
's ownership and the
light administrator's privileges.log, roles
current_user, is_adminorpi, is_nonprivate, is_share
Constructor and Description |
---|
LightAdminPrivilegesSecurityFilter(ome.system.Roles roles)
Deprecated.
Construct a new light administrator filter.
|
Modifier and Type | Method and Description |
---|---|
void |
enable(org.hibernate.Session session,
ome.system.EventContext ec)
Deprecated.
Enables this filter with the settings from this filter.
|
java.lang.String |
getDefaultCondition()
Deprecated.
Return the string to be used as the condition.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameterTypes()
Deprecated.
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 details,
ome.system.EventContext ec)
Deprecated.
tests that the
Details argument passes the security test that
this filter defines. |
disable, disableBaseFilters, enableBaseFilters, getName, isAdminOrPi, isNonPrivate, isShare
public LightAdminPrivilegesSecurityFilter(ome.system.Roles roles)
roles
- the users and groups that are special to OMEROpublic java.util.Map<java.lang.String,java.lang.String> getParameterTypes()
SecurityFilter
public java.lang.String getDefaultCondition()
SecurityFilter
public boolean passesFilter(org.hibernate.Session session, ome.model.internal.Details details, ome.system.EventContext ec)
SecurityFilter
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.details
- Details instance. If null (or if its Permissions
are
null all rights
will be assumed.public void enable(org.hibernate.Session session, ome.system.EventContext ec)
SecurityFilter
SecurityFilter.passesFilter(Session, Details, EventContext)
.session
- Non-null.ec
- Non-null.