|
15 | 15 | package gemma.gsec.acl.domain;
|
16 | 16 |
|
17 | 17 | import org.springframework.security.acls.jdbc.LookupStrategy;
|
18 |
| -import org.springframework.security.acls.model.MutableAcl; |
19 |
| -import org.springframework.security.acls.model.ObjectIdentity; |
20 |
| -import org.springframework.security.acls.model.Sid; |
| 18 | +import org.springframework.security.acls.model.Acl; |
21 | 19 |
|
| 20 | +import javax.annotation.CheckReturnValue; |
22 | 21 | import javax.annotation.Nullable;
|
23 |
| -import java.io.Serializable; |
24 | 22 | import java.util.List;
|
25 | 23 |
|
26 | 24 | /**
|
|
29 | 27 | */
|
30 | 28 | public interface AclDao extends LookupStrategy {
|
31 | 29 |
|
32 |
| - AclObjectIdentity createObjectIdentity( String type, Serializable identifier, Sid sid, boolean entriesInheriting ); |
| 30 | + /** |
| 31 | + * Find an ACL object identity confirming to the given object identity. |
| 32 | + */ |
| 33 | + @Nullable |
| 34 | + AclObjectIdentity findObjectIdentity( AclObjectIdentity objectIdentity ); |
33 | 35 |
|
34 |
| - void delete( ObjectIdentity objectIdentity, boolean deleteChildren ); |
| 36 | + List<AclObjectIdentity> findChildren( AclObjectIdentity parentIdentity ); |
35 | 37 |
|
36 |
| - void delete( Sid sid ); |
| 38 | + /** |
| 39 | + * Create a new object identity. |
| 40 | + */ |
| 41 | + @CheckReturnValue |
| 42 | + AclObjectIdentity createObjectIdentity( AclObjectIdentity oid ); |
37 | 43 |
|
38 |
| - @Nullable |
39 |
| - AclObjectIdentity find( ObjectIdentity oid ); |
| 44 | + /** |
| 45 | + * Update a given object identity so that it conforms to a given ACL object. |
| 46 | + */ |
| 47 | + void updateObjectIdentity( AclObjectIdentity aclObjectIdentity, Acl acl ); |
40 | 48 |
|
41 |
| - @Nullable |
42 |
| - AclSid find( Sid sid ); |
| 49 | + void deleteObjectIdentity( AclObjectIdentity objectIdentity, boolean deleteChildren ); |
43 | 50 |
|
44 |
| - List<ObjectIdentity> findChildren( ObjectIdentity parentIdentity ); |
| 51 | + void deleteSid( AclSid sid ); |
45 | 52 |
|
46 |
| - AclSid findOrCreate( Sid sid ); |
47 |
| - |
48 |
| - void update( MutableAcl acl ); |
| 53 | + @Nullable |
| 54 | + AclSid findSid( AclSid sid ); |
49 | 55 |
|
| 56 | + @CheckReturnValue |
| 57 | + AclSid findOrCreateSid( AclSid sid ); |
50 | 58 | }
|
0 commit comments