public class SharingSecurityFilter extends AbstractSecurityFilter
SharingACLVoter
log, roles
current_user, is_adminorpi, is_nonprivate, is_share
Constructor and Description |
---|
SharingSecurityFilter(Roles roles,
ShareStore shares)
Construct a new sharing security filter.
|
Modifier and Type | Method and Description |
---|---|
void |
enable(org.hibernate.Session session,
EventContext ec)
Enables this filter with the settings from this filter.
|
String |
getDefaultCondition()
Return the string to be used as the condition.
|
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 details,
EventContext ec)
tests that the
Details argument passes the security test that
this filter defines. |
disable, disableBaseFilters, enableBaseFilters, getName, isAdminOrPi, isNonPrivate, isShare
afterPropertiesSet, getObject, getObjectType, isSingleton, setBeanName, setDefaultFilterCondition, setFilterName, setParameterTypes
public SharingSecurityFilter(Roles roles, ShareStore shares)
roles
- the users and groups that are special to OMEROshares
- the sharespublic Map<String,String> getParameterTypes()
SecurityFilter
public String getDefaultCondition()
SecurityFilter
public boolean passesFilter(org.hibernate.Session session, Details details, 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, EventContext ec)
SecurityFilter
SecurityFilter.passesFilter(Session, Details, EventContext)
.session
- Non-null.ec
- Non-null.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.