Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6378415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:00:11+00:00 2026-05-25T02:00:11+00:00

I want to extend the permissions given for an user to an entity. I

  • 0

I want to extend the permissions given for an user to an entity.

I am able to create ACLs via MutableAclService.

MutableAcl acl = this.mutableAclService.createAcl(new ObjectIdentityImpl(entity));            
acl.setOwner(SYSTEM_PRINCIPAL_SID);
acl.insertAce(0, permission, grantToSid, true);
this.mutableAclService.updateAcl(acl);

But I don’t know how to change ACLs. For example if a user has Read Privileges to an entity, I want to provide him additional Write Privileges.
Or give an other user the same privileges.


My first try was to invoke MutableAclService.createAcl twice, but that failed:

org.springframework.security.acls.model.AlreadyExistsException: Object identity ‘org.springframework.security.acls.domain.ObjectIdentityImpl[Type: test.Entity; Identifier: 3]’ already exists

Ok that seams to be correct, wrong way. But how to do it then? How to change the acl permissions for an entity where already some permissions are defined?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:00:12+00:00Added an answer on May 25, 2026 at 2:00 am

    I have had a look at the code, and it seams that there is only one relevant implementation of the ACL interface: AclImpl.

    This class implements the MutableAcl interface and is returned by the AclService functions.

    So I decided to cast the results from Acl to MutableAcl. Up to now it is working and I did not get an problem or Class cast exception:

    MutableAcl existingAcl = (MutableAcl) mutableAclService.readAclById(oid, sids);
    ...
    mutableAclService.updateAcl(existingAcl);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to extend RuntimeException to create this specific exception: class CompileLinkException extends RuntimeException
Is it possible to extend the original permissions given by the user? So, once
I want to extend a web server which is only able to handle RPC
Folks I have a sealed class as follows. I want to extend this sealed
i want extend an entity framework model with a temporany attribute. I need it
I want to extend Ion Auth to only allow certain email addresses to register.
I want to extend the IEnumerable class but only for types that can be
I want to extend the functionality of a part of a program that I'm
I have a class PlaylistTrack that I want to extend class Song. When I
I have a Django template that I want to extend in multiple places. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.