public class GroupChmodStrategy extends Object implements ChmodStrategy, org.springframework.context.ApplicationContextAware
ChmodStrategy
which only permits modifying
the permissions on groups.Constructor and Description |
---|
GroupChmodStrategy(BasicACLVoter voter,
SessionFactory osf,
SqlAction sql,
ExtendedMetadata em) |
Modifier and Type | Method and Description |
---|---|
void |
check(IObject obj,
Object check)
Here we used the checks returned from
ExtendedMetadata to iterate
through every non-system table and check that it has no FKs which point
to back to its rows and violate the read permissions which are being
reduced. |
void |
chmod(IObject obj,
String permissions)
Change the permissions for the given object.
|
Object[] |
getChecks(IObject obj,
String permissions)
Return all the checks necessary to validate the
given object if it were to have its permissions.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx)
Set the ApplicationContext that this object runs in.
|
public GroupChmodStrategy(BasicACLVoter voter, SessionFactory osf, SqlAction sql, ExtendedMetadata em)
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAware
Invoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader)
,
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)
and
MessageSourceAware
, if applicable.
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
ctx
- the ApplicationContext object to be used by this objectorg.springframework.context.ApplicationContextException
- in case of context initialization errorsorg.springframework.beans.BeansException
- if thrown by application context methodsBeanInitializationException
public Object[] getChecks(IObject obj, String permissions)
ChmodStrategy
ChmodStrategy.check(IObject, Object)
.getChecks
in interface ChmodStrategy
public void chmod(IObject obj, String permissions)
ChmodStrategy
#check(IObject, String)
to
guarantee that no invalid links are present.chmod
in interface ChmodStrategy
public void check(IObject obj, Object check)
ExtendedMetadata
to iterate
through every non-system table and check that it has no FKs which point
to back to its rows and violate the read permissions which are being
reduced.check
in interface ChmodStrategy
Version: 5.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.