Skip to content

Commit e098056

Browse files
committed
Merge branch 'master' into production
2 parents 7e4b33d + e6e460d commit e098056

File tree

26 files changed

+922
-265
lines changed

26 files changed

+922
-265
lines changed

package-lock.json

Lines changed: 71 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"@semantic-release/changelog": "6.0.3",
99
"@semantic-release/exec": "6.0.3",
1010
"@semantic-release/git": "10.0.1",
11-
"@semantic-release/github": "9.0.4",
11+
"@semantic-release/github": "9.0.7",
1212
"commitizen": "4.3.0",
1313
"conventional-changelog-conventionalcommits": "6.1.0",
1414
"inquirer": "8.2.6",
15-
"semantic-release": "21.1.1"
15+
"semantic-release": "21.1.2"
1616
},
1717
"config": {
1818
"commitizen": {

perun-auditlogger/src/main/java/cz/metacentrum/perun/auditlogger/service/impl/AuditLoggerManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ public void startProcessingEvents() {
3636
eventProcessorThread = new Thread(eventLogger);
3737
eventProcessorThread.start();
3838

39-
log.debug("Event processor thread started.");
39+
log.info("Event processor thread started.");
4040
System.out.println("Event processor thread started.");
4141
}
4242

4343
public void stopProcessingEvents() {
4444
eventProcessorThread.interrupt();
45-
log.debug("Event processor thread interrupted.");
45+
log.info("Event processor thread interrupted.");
4646
System.out.println("Event processor thread interrupted.");
4747
}
4848

perun-auditlogger/src/main/resources/logback.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<appender-ref ref="perun-auditlogger"/>
2727
</root>
2828

29-
<logger name="cz.metacentrum.perun.auditlogger" level="debug"/>
29+
<logger name="cz.metacentrum.perun.auditlogger" level="info"/>
3030

3131
<!-- keep Spring quiet -->
3232
<logger name="org.springframework" level="warn"/>
@@ -35,7 +35,6 @@
3535
<appender class="org.gnieh.logback.SystemdJournalAppender" name="journal-audit">
3636
<syslogIdentifier>perun_audit</syslogIdentifier>
3737
<logLoggerName>true</logLoggerName>
38-
<logStacktrace>false</logStacktrace>
3938
<encoder>
4039
<pattern>%msg</pattern>
4140
</encoder>

perun-base/src/main/java/cz/metacentrum/perun/registrar/model/ApplicationForm.java

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
import cz.metacentrum.perun.core.api.Group;
44
import cz.metacentrum.perun.core.api.Vo;
5+
import org.springframework.util.StringUtils;
6+
7+
import java.util.ArrayList;
8+
import java.util.List;
59

610
/**
711
* Application form of a VO. Use {@link cz.metacentrum.perun.registrar.RegistrarManager#getFormItems} for items.
@@ -16,7 +20,7 @@ public class ApplicationForm {
1620
private boolean automaticApproval;
1721
private boolean automaticApprovalExtension;
1822
private boolean automaticApprovalEmbedded;
19-
private String moduleClassName;
23+
private final List<String> moduleClassNames = new ArrayList<>();
2024

2125
public ApplicationForm() {
2226
}
@@ -69,12 +73,29 @@ public void setAutomaticApprovalEmbedded(boolean automaticApprovalEmbedded) {
6973
this.automaticApprovalEmbedded = automaticApprovalEmbedded;
7074
}
7175

72-
public String getModuleClassName() {
73-
return moduleClassName;
76+
public List<String> getModuleClassNames() {
77+
return new ArrayList<>(moduleClassNames);
78+
}
79+
80+
public void setModuleClassNames(List<String> moduleClassNames) {
81+
this.moduleClassNames.clear();
82+
for (String moduleClassName : moduleClassNames) {
83+
if (StringUtils.hasText(moduleClassName)) {
84+
this.moduleClassNames.add(moduleClassName);
85+
}
86+
}
87+
}
88+
89+
public void addModuleClassName(String moduleClassName) {
90+
if (StringUtils.hasText(moduleClassName)) {
91+
this.moduleClassNames.add(moduleClassName);
92+
}
7493
}
7594

76-
public void setModuleClassName(String moduleClassName) {
77-
this.moduleClassName = moduleClassName;
95+
public void removeModuleClassName(String moduleClassName) {
96+
if (StringUtils.hasText(moduleClassName)) {
97+
this.moduleClassNames.remove(moduleClassName);
98+
}
7899
}
79100

80101
/**
@@ -94,7 +115,7 @@ public String toString() {
94115
", group='" + getGroup() + '\'' +
95116
", automaticApproval='" + isAutomaticApproval() + '\'' +
96117
", automaticApprovalExtension='" + isAutomaticApprovalExtension() + '\'' +
97-
", moduleClassName='" + getModuleClassName() + '\'' +
118+
", moduleClassNames='" + getModuleClassNames() + '\'' +
98119
"]";
99120
}
100121

perun-base/src/main/resources/perun-roles.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8310,6 +8310,9 @@ perun_roles_management:
83108310
- GROUPOBSERVER: Group
83118311
- GROUPMEMBERSHIPMANAGER: Group
83128312
- SPREGAPPLICATION:
8313+
- RESOURCEADMIN: Vo
8314+
- RESOURCEOBSERVER: Vo
8315+
- TRUSTEDFACILITYADMIN: Vo
83138316
associated_read_roles:
83148317
- GROUPOBSERVER
83158318
assignable_to_attributes: true
@@ -8371,6 +8374,9 @@ perun_roles_management:
83718374
- GROUPADMIN: Group
83728375
- GROUPOBSERVER: Group
83738376
- GROUPMEMBERSHIPMANAGER: Group
8377+
- RESOURCEADMIN: Vo
8378+
- RESOURCEOBSERVER: Vo
8379+
- TRUSTEDFACILITYADMIN: Vo
83748380
associated_read_roles: []
83758381
assignable_to_attributes: true
83768382
display_name: "Group membership manager"

perun-base/src/test/resources/test-schema.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- database version 3.2.17 (don't forget to update insert statement at the end of file)
1+
-- database version 3.2.18 (don't forget to update insert statement at the end of file)
22
CREATE EXTENSION IF NOT EXISTS "unaccent";
33
CREATE EXTENSION IF NOT EXISTS "pgcrypto";
44

@@ -539,7 +539,7 @@ create table application_form (
539539
automatic_approval boolean default false not null, --approval of application is automatic
540540
automatic_approval_extension boolean default false not null, --approval of extension is automatic
541541
automatic_approval_embedded boolean default false not null, --approval of embedded application is automatic
542-
module_name varchar, --name of module which processes application
542+
module_names varchar, --name of modules (separated by comma) which are called when processing application
543543
group_id integer, --identifier of group (groups.id) if application is for group
544544
created_by_uid integer,
545545
modified_by_uid integer,
@@ -1908,7 +1908,7 @@ create index idx_fk_attr_critops ON attribute_critical_actions(attr_id);
19081908
create index app_state_idx ON application (state);
19091909

19101910
-- set initial Perun DB version
1911-
insert into configurations values ('DATABASE VERSION','3.2.17');
1911+
insert into configurations values ('DATABASE VERSION','3.2.18');
19121912
-- insert membership types
19131913
insert into membership_types (id, membership_type, description) values (1, 'DIRECT', 'Member is directly added into group');
19141914
insert into membership_types (id, membership_type, description) values (2, 'INDIRECT', 'Member is added indirectly through UNION relation');

perun-cli/Perun/MembersAgent.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ sub getRichMembers
5858
return Perun::Common::callManagerMethod('getRichMembers', '[]RichMember', @_);
5959
}
6060

61+
sub getRichMember
62+
{
63+
return Perun::Common::callManagerMethod('getRichMember', 'RichMember', @_);
64+
}
65+
6166
sub getRichMembersWithAttributes
6267
{
6368
return Perun::Common::callManagerMethod('getRichMembersWithAttributes', '[]RichMember', @_);

0 commit comments

Comments
 (0)