Project

General

Profile

bug #7099

Make CdmAuthority a persistable class

Added by Andreas Müller over 1 year ago. Updated 5 days ago.

Status:
Resolved
Priority:
Highest
Category:
cdm
Target version:
Start date:
11/30/2017
Due date:
% Done:

0%

Severity:
normal
Found in Version:
Tags:

Description

We need a persistable Authority base class which will then be extended by classes Role and CdmAuthority. It will replace the existing GrantedAuthorityImpl.

We need the following fields for CdmAuthority:

  • permissionClass (hibernate user type for the enum required)
  • property (String)
  • operation (hibernate user type for enumSet required)
  • targetUuid

NOTE: first read #7100 which extends this model change

For Role we only need:

  • role (String, or if Role becomes an enum, => enum user type)

https://dev.e-taxonomy.eu/redmine/projects/edit/wiki/WorkshopRightsAndRoles2017-11


Related issues

Related to Edit - task #7100: Split CdmAuthority into operations and filters New 11/30/2017
Related to Edit - feature request #4922: GrantedAuthorities not reusable anymore New 05/21/2015
Related to Edit - report #7089: Rights and Roles Workshop 2017-11 In Progress 11/23/2017
Precedes Edit - bug #8473: Migrate from GrantedAuthoritiesImpl to CdmAuthority and Role New 12/01/2017
Copied from Edit - feature request #3133: security: preparation and first steps for Role, CdmAuthority and GrantedAuthorityImpl implement GrantedAuthority Closed 10/05/2012
Copied to Edit - feature request #8464: Make AuthorityBases unique New 08/14/2019

Associated revisions

Revision 899b7d66 (diff)
Added by Andreas Müller 5 days ago

ref #7099 move user, group and GrantedAuthorityImpl to new rights package

Revision 0377d70f (diff)
Added by Andreas Müller 5 days ago

ref #7099 move CdmPermissionClass to model

Revision 39a05e3b (diff)
Added by Andreas Müller 5 days ago

ref #7099 move CRUD and Operation to model

Revision d5579203 (diff)
Added by Andreas Müller 5 days ago

ref #7099 rename model.rights to model.permission

Revision 55ad1a65 (diff)
Added by Andreas Müller 5 days ago

ref #7099 adapt CdmAuthority class

Revision 7fbe6eb3 (diff)
Added by Andreas Müller 5 days ago

ref #7099 rename CdmPermissionClass to PermissionClass

Revision 6183e939 (diff)
Added by Andreas Müller 5 days ago

ref #7099 further updates to CdmAuthority for persistance + add Role class

Revision b6177938 (diff)
Added by Andreas Müller 5 days ago

ref #7099 add CdmAuthority to User, remove CDM_VIEW from tests, cleanup

Revision 83615ec3 (diff)
Added by Andreas Müller 5 days ago

ref #7099 fix loading of EnumSet and add tests

Revision 6c8124b2 (diff)
Added by Andreas Müller 5 days ago

ref #7099 update script for CdmAuthority tables

Revision d742db9a (diff)
Added by Andreas Müller 5 days ago

ref #7099 preliminary removing initialization of authorities to avoid LIE in AuthenticationPresenterTest

Revision 20ffe9b7 (diff)
Added by Andreas Müller 3 days ago

ref #7099 , ref #8464 some adaptions on constraints for CdmAuthority

Revision 165e1209 (diff)
Added by Andreas Müller 2 days ago

ref #6794 , ref #7099 adapt app-import, pesi, eflora to modelchanges

History

#1 Updated by Andreas Müller over 1 year ago

  • Copied from feature request #3133: security: preparation and first steps for Role, CdmAuthority and GrantedAuthorityImpl implement GrantedAuthority added

#2 Updated by Andreas Müller over 1 year ago

  • Related to task #7100: Split CdmAuthority into operations and filters added

#3 Updated by Andreas Müller over 1 year ago

  • Description updated (diff)

#4 Updated by Andreas Müller over 1 year ago

  • Priority changed from New to Highest

#5 Updated by Andreas Müller over 1 year ago

#6 Updated by Andreas Müller over 1 year ago

  • Target version changed from CDM UML 5.0 to CDM UML 5.5

#7 Updated by Andreas Müller 7 months ago

  • Priority changed from Highest to Priority14

#8 Updated by Andreas Müller 4 months ago

  • Target version changed from CDM UML 5.5 to CDM UML 5.10

#9 Updated by Andreas Müller 10 days ago

  • Status changed from New to In Progress
  • Priority changed from Priority14 to Highest
  • Target version changed from CDM UML 5.10 to CDM UML 5.8

#10 Updated by Andreas Müller 10 days ago

  • Tags set to security

#11 Updated by Andreas Müller 6 days ago

  • Description updated (diff)

#12 Updated by Andreas Müller 6 days ago

  • Related to report #7089: Rights and Roles Workshop 2017-11 added

#13 Updated by Andreas Müller 5 days ago

  • Status changed from In Progress to Resolved
  • Assignee changed from Andreas Müller to Andreas Kohlbecker

This is implemented for now. Old GrantedAuthorities still exist and are in use but we could easily switch to new ones once they are tested. Hopefully the existing Parser works for migrating them.

I have not yet considered the ideas from #7100. This should be done in a next step.

#14 Updated by Andreas Müller 5 days ago

#15 Updated by Andreas Müller 5 days ago

forgot to implement uniqueness. Moved to #8464

#16 Updated by Andreas Müller 3 days ago

  • Precedes bug #8473: Migrate from GrantedAuthoritiesImpl to CdmAuthority and Role added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)