Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit b669af8

Browse files
committed
Merge branch 'master'
2 parents 4ee21bc + 6f25280 commit b669af8

File tree

180 files changed

+4487
-4475
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+4487
-4475
lines changed

pom.xml

+78-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,47 @@
66
<groupId>io.admin-shell.aas</groupId>
77
<artifactId>model</artifactId>
88
<version>${revision}</version>
9+
10+
<!-- Description, name, URL, developers, and scm are required by Sonatype for the Central Repository release -->
11+
<description>This project includes a Java representation of the classes defined in the Asset Administration Shell ontology.</description>
12+
<name>Asset Administration Shell Java Model</name>
13+
<url>https://github.com/admin-shell-io/java-model</url>
14+
<developers>
15+
<developer>
16+
<organization>SAP SE</organization>
17+
<url>https://github.com/admin-shell-io/java-model#contributors</url>
18+
</developer>
19+
<developer>
20+
<organization>Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.</organization>
21+
<url>https://github.com/admin-shell-io/java-model#contributors</url>
22+
</developer>
23+
</developers>
24+
25+
<scm>
26+
<connection>scm:git:git://github.com/admin-shell-io/java-model.git</connection>
27+
<developerConnection>scm:git:git://github.com/admin-shell-io/java-model.git</developerConnection>
28+
<url>https://github.com/admin-shell-io/java-model/tree/main</url>
29+
</scm>
30+
31+
<licenses>
32+
<license>
33+
<name>Apache License, Version 2.0</name>
34+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
35+
<distribution>repo</distribution>
36+
</license>
37+
</licenses>
38+
39+
40+
941
<properties>
10-
<revision>1.0.0</revision>
42+
<revision>1.0.2</revision>
1143
<maven.compiler.source>1.8</maven.compiler.source>
1244
<maven.compiler.target>1.8</maven.compiler.target>
1345
<plugin.flatten.version>1.2.2</plugin.flatten.version>
1446
<plugin.javadoc.version>3.2.0</plugin.javadoc.version>
1547
<plugin.license.version>4.1</plugin.license.version>
1648
<plugin.projectinfo.version>3.1.2</plugin.projectinfo.version>
49+
<gpg.keyname>0xDFCC34A6</gpg.keyname>
1750
</properties>
1851
<dependencies>
1952
<dependency>
@@ -52,6 +85,7 @@
5285
<version>${plugin.flatten.version}</version>
5386
<configuration>
5487
<updatePomFile>true</updatePomFile>
88+
<pomElements><name/><description/><url/><developers/><scm/></pomElements>
5589
</configuration>
5690
<executions>
5791
<execution>
@@ -92,6 +126,49 @@
92126
</execution>
93127
</executions>
94128
</plugin>
129+
<plugin>
130+
<groupId>org.apache.maven.plugins</groupId>
131+
<artifactId>maven-source-plugin</artifactId>
132+
<version>3.2.0</version>
133+
<executions>
134+
<execution>
135+
<id>attach-sources</id>
136+
<goals>
137+
<goal>jar-no-fork</goal>
138+
</goals>
139+
</execution>
140+
</executions>
141+
</plugin>
142+
<plugin>
143+
<groupId>org.apache.maven.plugins</groupId>
144+
<artifactId>maven-gpg-plugin</artifactId>
145+
<version>3.0.1</version>
146+
<configuration>
147+
<keyname>${gpg.keyname}</keyname>
148+
<passphraseServerId>${gpg.keyname}</passphraseServerId>
149+
</configuration>
150+
<executions>
151+
<execution>
152+
<id>sign-artifacts</id>
153+
<phase>verify</phase>
154+
<goals>
155+
<goal>sign</goal>
156+
</goals>
157+
</execution>
158+
</executions>
159+
</plugin>
95160
</plugins>
96161
</build>
162+
163+
<!-- Central Repository deployment configuration -->
164+
<distributionManagement>
165+
<snapshotRepository>
166+
<id>ossrh</id>
167+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
168+
</snapshotRepository>
169+
<repository>
170+
<id>ossrh</id>
171+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
172+
</repository>
173+
</distributionManagement>
97174
</project>

src/main/java/io/adminshell/aas/v3/model/AccessControl.java

+64-89
Original file line numberDiff line numberDiff line change
@@ -1,155 +1,137 @@
11
/*
22
* Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V.
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5+
* in compliance with the License. You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software distributed under the License
10+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11+
* or implied. See the License for the specific language governing permissions and limitations under
12+
* the License.
1513
*/
14+
1615
package io.adminshell.aas.v3.model;
1716

18-
import io.adminshell.aas.v3.model.annotations.KnownSubtypes;
19-
import io.adminshell.aas.v3.model.annotations.IRI;
2017
import java.util.List;
2118

19+
20+
21+
import io.adminshell.aas.v3.model.annotations.IRI;
22+
import io.adminshell.aas.v3.model.annotations.KnownSubtypes;
2223
import io.adminshell.aas.v3.model.builder.*;
2324
import io.adminshell.aas.v3.model.impl.*;
2425

2526
/**
26-
* Access Control defines the local access control policy administration point.
27-
* Access Control has the major task to define the access permission rules.
27+
* Access Control defines the local access control policy administration point. Access Control has
28+
* the major task to define the access permission rules.
2829
*/
2930
@KnownSubtypes({
3031
@KnownSubtypes.Type(value = DefaultAccessControl.class)
3132
})
3233
public interface AccessControl {
3334

3435
/**
35-
* Access permission rules of the AAS describing the rights assigned to
36-
* (already authenticated) subjects to access elements of the AAS.
36+
* Access permission rules of the AAS describing the rights assigned to (already authenticated)
37+
* subjects to access elements of the AAS.
3738
*
38-
* More information under
39-
* https://admin-shell.io/aas/3/0/RC01/AccessControl/accessPermissionRule
39+
* More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/accessPermissionRule
4040
*
41-
* @return Returns the List of AccessPermissionRules for the property
42-
* accessPermissionRules.
41+
* @return Returns the List of AccessPermissionRules for the property accessPermissionRules.
4342
*/
4443
@IRI("https://admin-shell.io/aas/3/0/RC01/AccessControl/accessPermissionRule")
4544
List<AccessPermissionRule> getAccessPermissionRules();
4645

4746
/**
48-
* Access permission rules of the AAS describing the rights assigned to
49-
* (already authenticated) subjects to access elements of the AAS.
47+
* Access permission rules of the AAS describing the rights assigned to (already authenticated)
48+
* subjects to access elements of the AAS.
5049
*
51-
* More information under
52-
* https://admin-shell.io/aas/3/0/RC01/AccessControl/accessPermissionRule
50+
* More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/accessPermissionRule
5351
*
54-
* @param accessPermissionRules desired value for the property
55-
* accessPermissionRules.
52+
* @param accessPermissionRules desired value for the property accessPermissionRules.
5653
*/
5754
void setAccessPermissionRules(List<AccessPermissionRule> accessPermissionRules);
5855

5956
/**
60-
* Reference to a submodel defining the authenticated subjects that are
61-
* configured for the AAS. They are selectable by the access permission
62-
* rules to assign permissions to the subjects.
57+
* Reference to a submodel defining the authenticated subjects that are configured for the AAS. They
58+
* are selectable by the access permission rules to assign permissions to the subjects.
6359
*
64-
* Default: reference to the submodel referenced via
65-
* defaultSubjectAttributes.
60+
* Default: reference to the submodel referenced via defaultSubjectAttributes.
6661
*
6762
* More information under
6863
* https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableSubjectAttributes
6964
*
70-
* @return Returns the Reference for the property
71-
* selectableSubjectAttributes.
65+
* @return Returns the Reference for the property selectableSubjectAttributes.
7266
*/
7367
@IRI("https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableSubjectAttributes")
7468
Reference getSelectableSubjectAttributes();
7569

7670
/**
77-
* Reference to a submodel defining the authenticated subjects that are
78-
* configured for the AAS. They are selectable by the access permission
79-
* rules to assign permissions to the subjects.
71+
* Reference to a submodel defining the authenticated subjects that are configured for the AAS. They
72+
* are selectable by the access permission rules to assign permissions to the subjects.
8073
*
81-
* Default: reference to the submodel referenced via
82-
* defaultSubjectAttributes.
74+
* Default: reference to the submodel referenced via defaultSubjectAttributes.
8375
*
8476
* More information under
8577
* https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableSubjectAttributes
8678
*
87-
* @param selectableSubjectAttributes desired value for the property
88-
* selectableSubjectAttributes.
79+
* @param selectableSubjectAttributes desired value for the property selectableSubjectAttributes.
8980
*/
9081
void setSelectableSubjectAttributes(Reference selectableSubjectAttributes);
9182

9283
/**
93-
* Reference to a submodel defining the default subjects attributes for the
94-
* AAS that can be used to describe access permission rules.
84+
* Reference to a submodel defining the default subjects attributes for the AAS that can be used to
85+
* describe access permission rules.
9586
*
9687
* The submodel is of kind=Type.
9788
*
98-
* More information under
99-
* https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultSubjectAttributes
89+
* More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultSubjectAttributes
10090
*
10191
* @return Returns the Reference for the property defaultSubjectAttributes.
10292
*/
10393
@IRI("https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultSubjectAttributes")
10494
Reference getDefaultSubjectAttributes();
10595

10696
/**
107-
* Reference to a submodel defining the default subjects attributes for the
108-
* AAS that can be used to describe access permission rules.
97+
* Reference to a submodel defining the default subjects attributes for the AAS that can be used to
98+
* describe access permission rules.
10999
*
110100
* The submodel is of kind=Type.
111101
*
112-
* More information under
113-
* https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultSubjectAttributes
102+
* More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultSubjectAttributes
114103
*
115-
* @param defaultSubjectAttributes desired value for the property
116-
* defaultSubjectAttributes.
104+
* @param defaultSubjectAttributes desired value for the property defaultSubjectAttributes.
117105
*/
118106
void setDefaultSubjectAttributes(Reference defaultSubjectAttributes);
119107

120108
/**
121-
* Reference to a submodel defining which permissions can be assigned to the
122-
* subjects.
109+
* Reference to a submodel defining which permissions can be assigned to the subjects.
123110
*
124111
* Default: reference to the submodel referenced via defaultPermissions
125112
*
126-
* More information under
127-
* https://admin-shell.io/aas/3/0/RC01/AccessControl/selectablePermissions
113+
* More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/selectablePermissions
128114
*
129115
* @return Returns the Reference for the property selectablePermissions.
130116
*/
131117
@IRI("https://admin-shell.io/aas/3/0/RC01/AccessControl/selectablePermissions")
132118
Reference getSelectablePermissions();
133119

134120
/**
135-
* Reference to a submodel defining which permissions can be assigned to the
136-
* subjects.
121+
* Reference to a submodel defining which permissions can be assigned to the subjects.
137122
*
138123
* Default: reference to the submodel referenced via defaultPermissions
139124
*
140-
* More information under
141-
* https://admin-shell.io/aas/3/0/RC01/AccessControl/selectablePermissions
125+
* More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/selectablePermissions
142126
*
143-
* @param selectablePermissions desired value for the property
144-
* selectablePermissions.
127+
* @param selectablePermissions desired value for the property selectablePermissions.
145128
*/
146129
void setSelectablePermissions(Reference selectablePermissions);
147130

148131
/**
149132
* Reference to a submodel defining the default permissions for the AAS.
150133
*
151-
* More information under
152-
* https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultPermissions
134+
* More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultPermissions
153135
*
154136
* @return Returns the Reference for the property defaultPermissions.
155137
*/
@@ -159,67 +141,60 @@ public interface AccessControl {
159141
/**
160142
* Reference to a submodel defining the default permissions for the AAS.
161143
*
162-
* More information under
163-
* https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultPermissions
144+
* More information under https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultPermissions
164145
*
165-
* @param defaultPermissions desired value for the property
166-
* defaultPermissions.
146+
* @param defaultPermissions desired value for the property defaultPermissions.
167147
*/
168148
void setDefaultPermissions(Reference defaultPermissions);
169149

170150
/**
171-
* Reference to a submodel defining which environment attributes can be
172-
* accessed via the permission rules.
151+
* Reference to a submodel defining which environment attributes can be accessed via the permission
152+
* rules.
173153
*
174154
* More information under
175155
* https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableEnvironmentAttributes
176156
*
177-
* @return Returns the Reference for the property
178-
* selectableEnvironmentAttributes.
157+
* @return Returns the Reference for the property selectableEnvironmentAttributes.
179158
*/
180159
@IRI("https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableEnvironmentAttributes")
181160
Reference getSelectableEnvironmentAttributes();
182161

183162
/**
184-
* Reference to a submodel defining which environment attributes can be
185-
* accessed via the permission rules.
163+
* Reference to a submodel defining which environment attributes can be accessed via the permission
164+
* rules.
186165
*
187166
* More information under
188167
* https://admin-shell.io/aas/3/0/RC01/AccessControl/selectableEnvironmentAttributes
189168
*
190169
* @param selectableEnvironmentAttributes desired value for the property
191-
* selectableEnvironmentAttributes.
170+
* selectableEnvironmentAttributes.
192171
*/
193172
void setSelectableEnvironmentAttributes(Reference selectableEnvironmentAttributes);
194173

195174
/**
196-
* Reference to a submodel defining default environment attributes, i.e.
197-
* attributes that are not describing the asset itself. The submodel is of
198-
* kind=Type. At the same type the values of these environment attributes
199-
* need to be accessible when evaluating the access permission rules. This
200-
* is realized as a policy information point.
175+
* Reference to a submodel defining default environment attributes, i.e. attributes that are not
176+
* describing the asset itself. The submodel is of kind=Type. At the same type the values of these
177+
* environment attributes need to be accessible when evaluating the access permission rules. This is
178+
* realized as a policy information point.
201179
*
202180
* More information under
203181
* https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultEnvironmentAttributes
204182
*
205-
* @return Returns the Reference for the property
206-
* defaultEnvironmentAttributes.
183+
* @return Returns the Reference for the property defaultEnvironmentAttributes.
207184
*/
208185
@IRI("https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultEnvironmentAttributes")
209186
Reference getDefaultEnvironmentAttributes();
210187

211188
/**
212-
* Reference to a submodel defining default environment attributes, i.e.
213-
* attributes that are not describing the asset itself. The submodel is of
214-
* kind=Type. At the same type the values of these environment attributes
215-
* need to be accessible when evaluating the access permission rules. This
216-
* is realized as a policy information point.
189+
* Reference to a submodel defining default environment attributes, i.e. attributes that are not
190+
* describing the asset itself. The submodel is of kind=Type. At the same type the values of these
191+
* environment attributes need to be accessible when evaluating the access permission rules. This is
192+
* realized as a policy information point.
217193
*
218194
* More information under
219195
* https://admin-shell.io/aas/3/0/RC01/AccessControl/defaultEnvironmentAttributes
220196
*
221-
* @param defaultEnvironmentAttributes desired value for the property
222-
* defaultEnvironmentAttributes.
197+
* @param defaultEnvironmentAttributes desired value for the property defaultEnvironmentAttributes.
223198
*/
224199
void setDefaultEnvironmentAttributes(Reference defaultEnvironmentAttributes);
225200

0 commit comments

Comments
 (0)