Announcement Announcement Module
Collapse
No announcement yet.
Make a private method protected? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Make a private method protected?

    It would be very sueful or me, and possibly others, to have the private method net.sf.acegisecurity.vote.BasicAclEntryVoter.getDo mainObjectInstance be protected.

    I find that that class is extremely useful to subclass to implement some custom access control by rules (instead of ACL). For exmple, a rule that says user can update a Contact only if the user is in the same territory as the contact. This does not require the ACL entries in the database, but this class extending BasicAclEntryVoter and overriding the vote method is still an excellent way to implement this logic. My new vote method usually could use the getDomainObjectInstance method.

    Consider this an enhancement request.

  • #2
    Logged: http://opensource2.atlassian.com/pro.../browse/SEC-52

    Comment

    Working...
    X