cancel
Showing results for 
Search instead for 
Did you mean: 

AuthorityService: questions and remarks

mruflin
Champ in-the-making
Champ in-the-making
Hi

1. If I call deleteAuthority for a given group authority, will all the child groups defined for that group be deleted as well? Currently if I delete the authority through the admin console, I won't see the subauthorities anymore. Are they still around but just not accessible anymore?  The warning that pops up in the admin console is not clear imho.

2. Can a group authority be the child of more than one group authority? What
would happen in circular dependencies?

3. In general, it wouldn't hurt to clarify the JavaDoc of AuthorityService a bit, e.g. what is the short/full name of a user authority? Through testing I found out that they are the same, but is just for now that way or is this "by design"?

Thanks,

Michael
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

1. If I call deleteAuthority for a given group authority, will all the child groups defined for that group be deleted as well? Currently if I delete the authority through the admin console, I won't see the subauthorities anymore. Are they still around but just not accessible anymore? The warning that pops up in the admin console is not clear imho.


The authority is deleted via the node serivce. All associations (both children and regular node associations) will be deleted, and where the given authority is the primary parent, the children will also be cascade deleted. Secondary linked authorities will not be deleted.

2. Can a group authority be the child of more than one group authority? What
would happen in circular dependencies?

Yes. These are defined by a child assoc relationship. The node service does not allow circular dependancies to be added.

3. In general, it wouldn't hurt to clarify the JavaDoc of AuthorityService a bit, e.g. what is the short/full name of a user authority? Through testing I found out that they are the same, but is just for now that way or is this "by design"?


A user name is as is. A group starts  GROUP_….   See AuthorityType;
getShortName() strips the prefix string as appropriate.

Andy