Simon Brandhof
c1caffa9fb
SONARCLOUD-213 fix Quality flaws
5 anos atrás
Eric Hartmann
d933f38f5f
SONAR-11271 Add migration to create new permissions
5 anos atrás
Eric Hartmann
4d159788f0
SONAR-11271 Introduce two new rights
APPLICATION_CREATOR to allow creation of Applications
PORTFOLIO_CREATOR to allow creation of Portfolios
5 anos atrás
Simon Brandhof
d55f047c44
Cleanup code based on Intellij inspections
6 anos atrás
Simon Brandhof
c0d2705e61
Fix license headers for 2018
6 anos atrás
Julien Lancelot
16b42344b1
Rename ComponentDto#getKey to ComponentDto#getDbKey
Preparing component key that will contains branch key
6 anos atrás
Eric Hartmann
329a3c594a
SONAR-9514 SONAR-9516 SONAR-9517 ES resilience from POST WS
6 anos atrás
Julien Lancelot
f91190bf83
SONAR-9287 Fix limited number of returned permissions in api/permissions/users
7 anos atrás
Sébastien Lesaint
e21722bdc3
SONAR-9140 support public flag in ComponentTesting/ComponentDbTester
7 anos atrás
Julien Lancelot
ecd5c70f62
UserDbTester.insertUser does not add default organization membership
7 anos atrás
Teryk Bellahsene
ed1aa9d75e
SONAR-8997 SONAR-8998 Filter organization members when selecting users to change permissions and template permissions
7 anos atrás
Simon Brandhof
b15e5e7a05
Move OrganizationPermission to sonar-db-dao
7 anos atrás
Simon Brandhof
456f46662f
Use the methods UserSession accepting OrganizationPermission param
7 anos atrás
Simon Brandhof
33acda7596
Fix integer type of user and group ids
User IDs are INTEGER in database. The java classes are fixed
to replace long by int.
7 anos atrás
Teryk Bellahsene
cfa372a57a
SONAR-8637 Update POM parent version
7 anos atrás
Simon Brandhof
1b6a668e28
SONAR-8716 remove usages of UserSessionRule#setGlobalPermissions()
7 anos atrás
Sébastien Lesaint
2d00e017b5
SONAR-8608 bulk apply template only on projects of template's org
7 anos atrás
Sébastien Lesaint
7efab8ef44
rename UserSessionRule.login() to logIn() for clarity
7 anos atrás
Simon Brandhof
934bf664b8
SONAR-8704 Refactor Elasticsearch types "authorization"
Multiple indices define a type "authorization".
The related code was duplicated, and sometimes
had some minor differences. This commits share
all the management of these types in the same
bunch of classes.
It also allows to quickly create a project-related
index, without having to fix the different locations
which may require project re-indexing.
7 anos atrás
Simon Brandhof
f78f06335e
Remove error-prone params Organization in UserDbTester
7 anos atrás
Sébastien Lesaint
a50808c9a3
SONAR-8690 read and write default templates from ORGANIZATIONS table
7 anos atrás
Sébastien Lesaint
fcf197ca98
SONAR-8608 consistent organization on permission/group/component
7 anos atrás
Daniel Schwarz
66414bc7e9
SONAR-7282 add authorization to the ComponentIndex
7 anos atrás
Daniel Schwarz
bc06486e57
SONAR-7282 rename .component.es to .measure.index
* All other elastic search indexes reside in
"index" subpackages.
* We want to introduce a new component index
and need the .component.index-package name
for that one.
7 anos atrás
Sébastien Lesaint
299ea02a3f
SONAR-8595 enforce organization of component is specified in UTs
for UTs using ComponentTesting and/or ComponentDbTester
7 anos atrás
Sébastien Lesaint
722854e4dc
SONAR-8429 apply permission template of specified organization
rather than the one of the default organization no matter what
PermissionTemplateService does not use the default organization under the hood anymore
7 anos atrás
Simon Brandhof
f34266f025
SONAR-8278 Support organizations in web service api/permissions/search_templates
7 anos atrás
Simon Brandhof
c004eacf33
SONAR-8134 merge PermissionRepository into PermissionTemplateService
7 anos atrás
Simon Brandhof
4770d7ad2a
SONAR-8134 rename PermissionService
It's only about templates, so class is renamed
PermissionTemplateService.
7 anos atrás
Simon Brandhof
c2ed13e241
SONAR-8134 remove ComponentFinder from PermissionService
7 anos atrás
Simon Brandhof
ee433377a2
SONAR-8134 replace WsTester by WsActionTester
in tests of permissions web services
7 anos atrás
Simon Brandhof
c545808bb4
SONAR-8267 SONAR-8265 add organization parameter
to web services api/permissions/search_global_permissions
and api/permissions/users.
Both WS are touched at the same time as the same refactoring
is required in UserPermissionDao.
7 anos atrás
Simon Brandhof
1e663e7149
SONAR-8261 Support organizations in web service api/permissions/groups
7 anos atrás
Julien Lancelot
972fbd3a52
SONAR-8227 Rename AuthorizationIndexer to PermissionIndexer
7 anos atrás
Julien Lancelot
ac8031ea04
SONAR-8227 Index project measures authorization
7 anos atrás
Julien Lancelot
980460baad
SONAR-8227 Index authorization by projects
7 anos atrás
Julien Lancelot
7b3ad7add7
SONAR-8227 Move org.sonar.server.issue.index.IssueAuthorizationIndexer to org.sonar.server.permission.index.AuthorizationIndexer
This indexer will also be used to feed the authorization type of projectmeasures index
7 anos atrás
Sébastien Lesaint
718789f18f
SONAR-8192 rename DefaultOrganizationProviderRule to TestDefaultOrganizationProvider
7 anos atrás
Simon Brandhof
6189f1973d
SONAR-8272 SONAR-8273 organization in WS to apply permission templates
7 anos atrás
Simon Brandhof
8595a520f3
Support organizations in permission template web services
7 anos atrás
Simon Brandhof
f2115ee22b
Remove RoleDao#insertUserRole()
7 anos atrás
Simon Brandhof
dca860b61a
Move and rename GroupRoleDto to GroupPermissionDto
7 anos atrás
Simon Brandhof
a30dc8ee3d
Rename PermissionDao to GroupPermissionDao
7 anos atrás
Simon Brandhof
672d9dc2e3
Remove some methods related to users from RoleDao
7 anos atrás
Simon Brandhof
9974dee49c
Remove deprecated code in permission DAOs
7 anos atrás
Simon Brandhof
f79030e299
SONAR-7678 server-side stateless settings
* Settings class becomes abstract as multiple implementations
are used. Can't become an interface for binary
backward-compatibility of API
* tests should use MapSettings, an in-memory implementation
of Settings
* web server uses a thread-specific cache of settings when
processing HTTP requests
* web server does not have a cache of settings during startup,
except for the system settings loaded from sonar.properties
* Compute Engine uses a thread-specific cache of settings when
processing a task. Cache is clear at end of task.
* some useless methods of PersistentSettings are removed
7 anos atrás
Teryk Bellahsene
a51fcb2ad9
Refactor UserPermissionDto
8 anos atrás
Teryk Bellahsene
a607b5d750
Move permissions template classes and resources to a specific package in sonar-db
8 anos atrás
Teryk Bellahsene
fc558542c4
SONAR-7835 Select users by query
8 anos atrás
Simon Brandhof
48d5099ff5
Remove unused annotation @DbTests
8 anos atrás