WL-2499 adds role based access setter using the logic from setPubView to the ContentHostingService.
WL-2499 Defined an isRoleView method for a user to check whether the content has the role defined
WL-2499 Added a method for performing a access check against a role in addition to the check against a user.
It is planned that for a role the UserDirectoryService will provide a consistent dummy user.
WL-2499 Creating a dummy user id for each role without creating a User
This is because we can preform an authorisation check on a string instead of a user and we'd rather not pollute the user directory.
WL-2499 Tidying up - indentation and adding finals.
WL-2499 Moved the DUMMY_USER_PREFIX to the interface so that it can be used elsewhere.
WL-2499 Introduced intercepting call to BaseAuthzGroupService to add the role if we are using a dummy user id.
WL-2499 Removed checks to see if roleview is used that take a user as a parameter
This is because this is a special use case for the pubview setting which will have a user defined in the user directory service. Other roles won't.
WL-2499 Added some access functions to the GroupAwareEdit interface for the roleview content functions.
WL-2499 Added a test for the RoleView functionality in the content hosting service.
WL-2499 Added a method to the content hosting service to get the list of roles that are defined for that content.
WL-2499 Added the implementation of the Group Aware Edit accessors for adding, removing and clearing role based access.
WL-2499 Indentation fixes.
WL-2499 Adjusted Javadoc to the roleview functins in Content Hosting Service to reflect the fact that they are probably too low level and should use the proper methods through GroupAwareEdit.
WL-2499 Adjusted the JavaDoc to the methods defining role based access in the GroupAwareEdit interface. In particular on how the exception handling works.
WL-2499 Setting roleview now throws the authorization exception if it occurs. Caught in setPubView to stop other things from blowing up.
WL-2499 Updated the Javadoc on the GroupAwareEdit for the Public Access functions, they now use the Role Access functions.
WL-2499 Updated public access functions to use add and remove role access.
WL-2499 Set up adding and remove role access to raise the right exceptions.
WL-2499 Updated group access to handle existence and clearing of role access appropriately.