| Constructor and Description | 
|---|
| CompositeACLVoter(CurrentDetails cd,
                 BasicACLVoter basic,
                 SharingACLVoter sharing) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | allowAnnotate(ome.model.IObject object,
             ome.model.internal.Details trustedDetails)test whether the given object should be annotatable given the trusted
  details. | 
| boolean | allowChmod(ome.model.IObject object)test whether the given object can have its
  Permissionschanged within the currentsecurity context. | 
| boolean | allowCreation(ome.model.IObject object)test whether the given object should be insertable into the DB. | 
| boolean | allowDelete(ome.model.IObject object,
           ome.model.internal.Details trustedDetails)test whether the given object should be deleteable given the trusted
  details. | 
| boolean | allowLoad(org.hibernate.Session session,
         Class<? extends ome.model.IObject> klass,
         ome.model.internal.Details trustedDetails,
         long id)test whether the object of the given  Classwith the givenDetailsshould be loadable in the current security context. | 
| boolean | allowUpdate(ome.model.IObject object,
           ome.model.internal.Details trustedDetails)test whether the given object should be updateable given the trusted
  details. | 
| ACLVoter | choose() | 
| void | postProcess(ome.model.IObject object)Gives the  ACLVoterinstance a chance to act on theIObjectafter the transaction but before finishing the AOP stack. | 
| Set<String> | restrictions(ome.model.IObject object)Provide the active restrictions for this  IObject. | 
| void | throwCreationViolation(ome.model.IObject object)throws a  SecurityViolationbased on the givenIObjectand
 the context of the current user. | 
| void | throwDeleteViolation(ome.model.IObject object)throws a  SecurityViolationbased on the givenIObjectand
 the context of the current user. | 
| void | throwLoadViolation(ome.model.IObject object)throws a  SecurityViolationbased on the givenIObjectand
 the context of the current user. | 
| void | throwUpdateViolation(ome.model.IObject object)throws a  SecurityViolationbased on the givenIObjectand
 the context of the current user. | 
public CompositeACLVoter(CurrentDetails cd, BasicACLVoter basic, SharingACLVoter sharing)
public ACLVoter choose()
public boolean allowChmod(ome.model.IObject object)
ACLVoterPermissions changed within the current
 security context.allowChmod in interface ACLVoterpublic boolean allowCreation(ome.model.IObject object)
ACLVoterdetails is passed to this method, since for
 transient entities there are no trusted values.
 
 The SecuritySystem implementors will usually call
 ACLVoter.throwCreationViolation(IObject) if this method returns false.allowCreation in interface ACLVoterobject - a non-null entity to test for creation.ACLEventListener.onPreInsert(org.hibernate.event.PreInsertEvent)public boolean allowDelete(ome.model.IObject object,
                  ome.model.internal.Details trustedDetails)
ACLVoterdetails. The details will usually be retrieved from the
 current state array coming from the database.
 
 The SecuritySystem implementors will usually call
 ACLVoter.throwDeleteViolation(IObject) if this method returns false.allowDelete in interface ACLVoterobject - a non-null entity to test for deletion.trustedDetails - a Details instance that is known to be valid.ACLEventListener.onPreDelete(org.hibernate.event.PreDeleteEvent)public boolean allowLoad(org.hibernate.Session session,
                Class<? extends ome.model.IObject> klass,
                ome.model.internal.Details trustedDetails,
                long id)
ACLVoterClass with the given
 Details should be loadable in the current security context.
 
 This method does not take an actual object because that will not be
 generated until after loading is permitted.
 
 The SecuritySystem implementors will usually call
 ACLVoter.throwLoadViolation(IObject) if this method returns false.allowLoad in interface ACLVoterklass - a non-null class to test for loadingid - the id of the object which will be loaded. As opposed to the
            rest of the object, this must be known.ACLEventListener.onPostLoad(org.hibernate.event.PostLoadEvent)public boolean allowAnnotate(ome.model.IObject object,
                    ome.model.internal.Details trustedDetails)
ACLVoterdetails. The details will usually be retrieved from the
 current state array coming from the database.allowAnnotate in interface ACLVoterobject - a non-null entity to test for update.trustedDetails - a Details instance that is known to be valid.public boolean allowUpdate(ome.model.IObject object,
                  ome.model.internal.Details trustedDetails)
ACLVoterdetails. The details will usually be retrieved from the
 current state array coming from the database.
 
 The SecuritySystem implementors will usually call
 ACLVoter.throwUpdateViolation(IObject) if this method returns false.allowUpdate in interface ACLVoterobject - a non-null entity to test for update.trustedDetails - a Details instance that is known to be valid.ACLEventListener.onPreUpdate(org.hibernate.event.PreUpdateEvent)public void throwCreationViolation(ome.model.IObject object)
                            throws ome.conditions.SecurityViolation
ACLVoterSecurityViolation based on the given IObject and
 the context of the current user.throwCreationViolation in interface ACLVoterobject - Non-null object which caused this violationome.conditions.SecurityViolationACLEventListener#onPreInsert(org.hibernate.event.PreInsertEvent)}public void throwDeleteViolation(ome.model.IObject object)
                          throws ome.conditions.SecurityViolation
ACLVoterSecurityViolation based on the given IObject and
 the context of the current user.throwDeleteViolation in interface ACLVoterobject - Non-null object which caused this violationome.conditions.SecurityViolationACLEventListener.onPreDelete(org.hibernate.event.PreDeleteEvent)public void throwLoadViolation(ome.model.IObject object)
                        throws ome.conditions.SecurityViolation
ACLVoterSecurityViolation based on the given IObject and
 the context of the current user.throwLoadViolation in interface ACLVoterobject - Non-null object which caused this violationome.conditions.SecurityViolationACLEventListener#onPostLoad(org.hibernate.event.PostLoadEvent)}public void throwUpdateViolation(ome.model.IObject object)
                          throws ome.conditions.SecurityViolation
ACLVoterSecurityViolation based on the given IObject and
 the context of the current user.throwUpdateViolation in interface ACLVoterobject - Non-null object which caused this violationome.conditions.SecurityViolationACLEventListener.onPreUpdate(org.hibernate.event.PreUpdateEvent)public Set<String> restrictions(ome.model.IObject object)
ACLVoterIObject.
 See {@link ome.security.policy.PolicyService for further details.restrictions in interface ACLVoterpublic void postProcess(ome.model.IObject object)
ACLVoterACLVoter instance a chance to act on the IObject
 after the transaction but before finishing the AOP stack.postProcess in interface ACLVoter
                
                
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.