public class GroupChmodStrategy extends java.lang.Object implements ChmodStrategy, org.springframework.context.ApplicationContextAware
ChmodStrategy
which only permits modifying
the permissions on groups.Constructor and Description |
---|
GroupChmodStrategy(BasicACLVoter voter,
SessionFactory osf,
ome.util.SqlAction sql,
ExtendedMetadata em) |
Modifier and Type | Method and Description |
---|---|
void |
check(ome.model.IObject obj,
java.lang.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(ome.model.IObject obj,
java.lang.String permissions)
Change the permissions for the given object.
|
java.lang.Object[] |
getChecks(ome.model.IObject obj,
java.lang.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) |
public GroupChmodStrategy(BasicACLVoter voter, SessionFactory osf, ome.util.SqlAction sql, ExtendedMetadata em)
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public java.lang.Object[] getChecks(ome.model.IObject obj, java.lang.String permissions)
ChmodStrategy
ChmodStrategy.check(IObject, Object)
.getChecks
in interface ChmodStrategy
public void chmod(ome.model.IObject obj, java.lang.String permissions)
ChmodStrategy
ChmodStrategy.check(IObject, Object)
to
guarantee that no invalid links are present.chmod
in interface ChmodStrategy
public void check(ome.model.IObject obj, java.lang.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