Package ome.security.basic
Class LightAdminPrivilegesSecurityFilter
- java.lang.Object
-
- org.springframework.orm.hibernate3.FilterDefinitionFactoryBean
-
- ome.security.basic.AbstractSecurityFilter
-
- ome.security.basic.LightAdminPrivilegesSecurityFilter
-
- All Implemented Interfaces:
SecurityFilter
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<org.hibernate.engine.FilterDefinition>
,org.springframework.beans.factory.InitializingBean
@Deprecated public class LightAdminPrivilegesSecurityFilter extends AbstractSecurityFilter
Deprecated.because the 2019-SV5 fix addressesSession
privacy no less than this, seePrivilegedStringType
Filter database queries to respect light administrator privileges. Specifically, provide means to be sudo-aware in filtering according to the currentSession
's ownership and the light administrator's privileges.- Since:
- 5.4.0
-
-
Field Summary
-
Fields inherited from class ome.security.basic.AbstractSecurityFilter
log, roles
-
Fields inherited from interface ome.security.SecurityFilter
current_user, is_adminorpi, is_nonprivate, is_share
-
-
Constructor Summary
Constructors Constructor Description LightAdminPrivilegesSecurityFilter(ome.system.Roles roles)
Deprecated.Construct a new light administrator filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 theDetails
argument passes the security test that this filter defines.-
Methods inherited from class ome.security.basic.AbstractSecurityFilter
disable, disableBaseFilters, enableBaseFilters, getName, isAdminOrPi, isNonPrivate, isShare
-
-
-
-
Method Detail
-
getParameterTypes
public java.util.Map<java.lang.String,java.lang.String> getParameterTypes()
Deprecated.Description copied from interface:SecurityFilter
Return a mapping of the hibernate types for each of the parameters that the condition takes.
-
getDefaultCondition
public java.lang.String getDefaultCondition()
Deprecated.Description copied from interface:SecurityFilter
Return the string to be used as the condition.
-
passesFilter
public boolean passesFilter(org.hibernate.Session session, ome.model.internal.Details details, ome.system.EventContext ec)
Deprecated.Description copied from interface:SecurityFilter
tests that theDetails
argument passes the security test that this filter defines. The two must be kept in sync. This will be used mostly by theOmeroInterceptor.onLoad(Object, java.io.Serializable, Object[], String[], org.hibernate.type.Type[])
method.details
- Details instance. If null (or if itsPermissions
are null allrights
will be assumed.- Returns:
- true if the object to which this
-
enable
public void enable(org.hibernate.Session session, ome.system.EventContext ec)
Deprecated.Description copied from interface:SecurityFilter
Enables this filter with the settings from this filter. The intent is that after this call, no Hibernate queries will return any objects that would fail a call toSecurityFilter.passesFilter(Session, Details, EventContext)
.- Parameters:
session
- Non-null.ec
- Non-null.
-
-