ontomde-demo-acegi 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/History.txt +2 -0
  2. data/Manifest.txt +46 -0
  3. data/README.txt +79 -0
  4. data/Rakefile +22 -0
  5. data/bin/ontomde-demo-acegi-install +11 -0
  6. data/demo/1-base.bat +6 -0
  7. data/demo/1-base.sh +5 -0
  8. data/demo/2-unpack.bat +6 -0
  9. data/demo/2-unpack.sh +5 -0
  10. data/demo/3-generate.bat +4 -0
  11. data/demo/3-generate.sh +5 -0
  12. data/demo/4-start-webapp-nosecurity.bat +4 -0
  13. data/demo/4-start-webapp-nosecurity.sh +4 -0
  14. data/demo/5-start-webapp.bat +7 -0
  15. data/demo/5-start-webapp.sh +4 -0
  16. data/demo/9-eclipse.bat +5 -0
  17. data/demo/9-eclipse.sh +6 -0
  18. data/demo/doc/images/_Ea8UYu6FEdyp6cGW4pi6rw.GIF +0 -0
  19. data/demo/doc/images/_XH8XYjuOEdyltIorAFYEcg.GIF +0 -0
  20. data/demo/doc/images/_o7gEAsg1Edy3YZbvY96G9w.GIF +0 -0
  21. data/demo/doc/images/_s1Mq8O6sEdyp6cGW4pi6rw.GIF +0 -0
  22. data/demo/domain/pom.xml +74 -0
  23. data/demo/domain/src/main/java/administration/ApplicationUser.java +649 -0
  24. data/demo/domain/src/main/java/administration/SecurityPanel.java +1408 -0
  25. data/demo/domain/src/main/java/demo1GSMNetwork/BaseTransceiverStation.java +570 -0
  26. data/demo/domain/src/main/java/demo2testModel/Client.java +1099 -0
  27. data/demo/domain/src/main/java/xmda/security/ProviderImpl.java +367 -0
  28. data/demo/ear/pom.xml +160 -0
  29. data/demo/mda/clean-generated.sh +24 -0
  30. data/demo/mda/pom.xml +181 -0
  31. data/demo/mda/src/main/mda/customDataTypes.rb +5 -0
  32. data/demo/mda/src/main/mda/dbDiscriminatorCache.rb +94 -0
  33. data/demo/mda/src/main/mda/mda.rb +0 -0
  34. data/demo/mda/src/main/model/.project +12 -0
  35. data/demo/mda/src/main/model/model.emx +3139 -0
  36. data/demo/mda/src/main/model/model.emx.nt +4608 -0
  37. data/demo/mda/src/main/model/model.emx.nt_kb.pprj +1768 -0
  38. data/demo/mda/src/main/model/model.emx.nt_kb.rdf +258 -0
  39. data/demo/mda/src/main/model/model.emx.nt_kb.rdfs +3345 -0
  40. data/demo/mda/src/main/profil-uml/.project +11 -0
  41. data/demo/mda/src/main/profil-uml/OntoMDE-profil.epx +615 -0
  42. data/demo/mda/src/main/resources/formatter.properties +260 -0
  43. data/demo/pom.xml +21 -0
  44. data/demo/projectbase/pom.xml +96 -0
  45. data/demo/webapp/pom.xml +125 -0
  46. data/lib/ontomde-demo-acegi.rb +1 -0
  47. metadata +109 -0
@@ -0,0 +1,2 @@
1
+ # 2008
2
+ initial publication
@@ -0,0 +1,46 @@
1
+ History.txt
2
+ Manifest.txt
3
+ README.txt
4
+ Rakefile
5
+ bin/ontomde-demo-acegi-install
6
+ demo/1-base.bat
7
+ demo/1-base.sh
8
+ demo/2-unpack.bat
9
+ demo/2-unpack.sh
10
+ demo/3-generate.bat
11
+ demo/3-generate.sh
12
+ demo/4-start-webapp-nosecurity.bat
13
+ demo/4-start-webapp-nosecurity.sh
14
+ demo/5-start-webapp.bat
15
+ demo/5-start-webapp.sh
16
+ demo/9-eclipse.bat
17
+ demo/9-eclipse.sh
18
+ demo/doc/images/_Ea8UYu6FEdyp6cGW4pi6rw.GIF
19
+ demo/doc/images/_XH8XYjuOEdyltIorAFYEcg.GIF
20
+ demo/doc/images/_o7gEAsg1Edy3YZbvY96G9w.GIF
21
+ demo/doc/images/_s1Mq8O6sEdyp6cGW4pi6rw.GIF
22
+ demo/domain/pom.xml
23
+ demo/domain/src/main/java/administration/ApplicationUser.java
24
+ demo/domain/src/main/java/administration/SecurityPanel.java
25
+ demo/domain/src/main/java/demo1GSMNetwork/BaseTransceiverStation.java
26
+ demo/domain/src/main/java/demo2testModel/Client.java
27
+ demo/domain/src/main/java/xmda/security/ProviderImpl.java
28
+ demo/ear/pom.xml
29
+ demo/mda/clean-generated.sh
30
+ demo/mda/pom.xml
31
+ demo/mda/src/main/mda/customDataTypes.rb
32
+ demo/mda/src/main/mda/dbDiscriminatorCache.rb
33
+ demo/mda/src/main/mda/mda.rb
34
+ demo/mda/src/main/model/.project
35
+ demo/mda/src/main/model/model.emx
36
+ demo/mda/src/main/model/model.emx.nt
37
+ demo/mda/src/main/model/model.emx.nt_kb.pprj
38
+ demo/mda/src/main/model/model.emx.nt_kb.rdf
39
+ demo/mda/src/main/model/model.emx.nt_kb.rdfs
40
+ demo/mda/src/main/profil-uml/.project
41
+ demo/mda/src/main/profil-uml/OntoMDE-profil.epx
42
+ demo/mda/src/main/resources/formatter.properties
43
+ demo/pom.xml
44
+ demo/projectbase/pom.xml
45
+ demo/webapp/pom.xml
46
+ lib/ontomde-demo-acegi.rb
@@ -0,0 +1,79 @@
1
+ ontomde-demo-acegi
2
+ by stephane (pierre) Carrie
3
+ http://ontomde.rubyforge.org/
4
+
5
+ == DESCRIPTION:
6
+
7
+ This is a demonstration project for our acegi integration
8
+
9
+ == FEATURES:
10
+
11
+ Generates a webapp with built in security:
12
+ * Authentification
13
+ * Access rights based on declared groups and roles.
14
+ * Access rights based on runtime rules.
15
+
16
+ Security provided by this demonstration is fully customisable.
17
+
18
+ == SYNOPSIS:
19
+ === INSTALLATION:
20
+ 1) download and install a ruby distribution (>=1.8.6)
21
+ ( http://rubyforge.org/frs/?group_id=167&release_id=17128 )
22
+ 2) update ruby plateform
23
+ $ set HTTP_PROXY=http://yourproxy:yourport (in case you need one)
24
+ $ gem update --system
25
+ 3) install ontomde
26
+ $ set HTTP_PROXY=http://yourproxy:yourport (in case you need one)
27
+ $ gem install ontomde
28
+
29
+ === RUN DEMONSTRATION:
30
+
31
+ unpack webapp ressources:
32
+ $ 1-unpack.bat (or .sh under cygwin or linux)
33
+
34
+ generate source code from UML model in mda/src/main/model
35
+ $ 2-generate.bat
36
+
37
+ Start webapp with security disabled (to setup an admin users)
38
+ $ 3-start-webapp-nosecurity.bat
39
+
40
+ Start webapp with security enabled
41
+ $ 4-start-webapp.bat
42
+
43
+ === Create your own uml model
44
+ This is modeler dependent. Please refer to the section that applies:
45
+
46
+ ====CREATE YOUR OWN UML MODEL (Objecteering users)
47
+ 1) download and install export plugin for objecteering on ontomde.rubyforge.org
48
+ 2) create a ontomde workproduct at the root of your project
49
+ 3) select src/main/model/model.emx.nt as target for your workproduct.
50
+ 4) run generate on your workproduct.
51
+ (this will update model.emx.nt file)
52
+ 5) generate & compile project using initial method.
53
+
54
+ ====CREATE YOUR OWN UML MODEL (Sparx system, XMI)
55
+ --> This featured is planned for Q2-2008
56
+ 1) export your project as self-containted XMI export file
57
+
58
+ == LICENSE:
59
+
60
+ Copyright (C) 2008 Orange-labs
61
+ 38 rue General Leclerc
62
+ 92130 ISSY LES MOULINEAUX, France
63
+
64
+ This program is free software: you can redistribute it and/or modify
65
+ it under the terms of the GNU Affero General Public License as
66
+ published by the Free Software Foundation, either version 3 of the
67
+ License, or (at your option) any later version.
68
+
69
+ This program is distributed in the hope that it will be useful,
70
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
71
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
72
+ GNU Affero General Public License for more details.
73
+
74
+ You should have received a copy of the GNU Affero General Public License
75
+ along with this program. If not, see http://www.gnu.org/licenses/.
76
+
77
+
78
+
79
+
@@ -0,0 +1,22 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'ontomde-hoe'
5
+ require '../ontomde-core/lib/ontomde-core/version.rb'
6
+
7
+
8
+ OntomdeHoe.new('ontomde-demo-acegi', Ontomde::Core::VERSION) do |p|
9
+ p.need_zip=true
10
+ p.rubyforge_name = 'ontomde'
11
+ p.author = 'Stephane (Pierre) Carrie / Khalil Slimi'
12
+ p.email = 'stephanepierre.carrie@orange-ftgroup.com'
13
+ p.summary = 'OntoMDE for ACEGI demonstration'
14
+ p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
15
+ p.url="http://ontomde.rubyforge.org"
16
+ p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
17
+ p.extra_deps=[ ['ontomde',"= #{Ontomde::Core::VERSION}"] ]
18
+ p.spec_extras[:required_ruby_version]='>=1.8.6'
19
+ p.spec_extras[:required_rubygems_version]='>=1.0.0'
20
+ end
21
+
22
+ # vim: syntax=Ruby
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+
4
+ require 'ontomde-core/demoInstaller.rb'
5
+ include DemoInstaller
6
+
7
+ # install demo by infering demo name
8
+ # and demo location from script name and location.
9
+ installDefaultDemo(__FILE__)
10
+
11
+
@@ -0,0 +1,6 @@
1
+ @echo off
2
+
3
+ cd projectbase
4
+ call mvn %* install
5
+ cd ..
6
+
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ cd projectbase
4
+ mvn $* install
5
+
@@ -0,0 +1,6 @@
1
+ @echo off
2
+
3
+
4
+ cd webapp
5
+ call mvn dependency:unpack
6
+ cd ..
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ cd webapp
4
+ mvn $* dependency:unpack
5
+
@@ -0,0 +1,4 @@
1
+ REM generate and compile application
2
+ @echo off
3
+ mvn clean install
4
+
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+ # generate and compile application
3
+
4
+ mvn $* clean install
5
+
@@ -0,0 +1,4 @@
1
+ @echo off
2
+
3
+ cd webapp
4
+ mvn jetty:run-exploded -Dwebapp.security.mode=disable
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ cd webapp
4
+ mvn jetty:run-exploded -Dwebapp.security.mode=disable
@@ -0,0 +1,7 @@
1
+ @echo off
2
+
3
+ REM setup variable if your model contains graphviz graphs
4
+ REM set GRAPHVIZ_HOME='C:\opt\Graphviz'
5
+
6
+ cd webapp
7
+ mvn jetty:run-exploded
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+
3
+ cd webapp
4
+ mvn jetty:run-exploded
@@ -0,0 +1,5 @@
1
+ @echo off
2
+ REM generate descriptors for eclipse
3
+ REM You will need to set M2_REPO classpath variable in eclipse
4
+ REM after installing MAVEN PLUGIN
5
+ mvn eclipse:eclipse
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ # generate descriptors for eclipse
4
+ # You will need to set M2_REPO classpath variable in eclipse
5
+ # after installing MAVEN PLUGIN
6
+ mvn eclipse:eclipse
@@ -0,0 +1,74 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5
+ <parent>
6
+ <artifactId>projectbase</artifactId>
7
+ <groupId>ontomde.sample</groupId>
8
+ <version>1.0-SNAPSHOT</version>
9
+ <relativePath>../projectbase</relativePath>
10
+ </parent>
11
+ <modelVersion>4.0.0</modelVersion>
12
+ <artifactId>domain</artifactId>
13
+ <packaging>jar</packaging>
14
+ <name>domain</name>
15
+ <build>
16
+ <defaultGoal>package</defaultGoal>
17
+ <plugins>
18
+ <plugin>
19
+ <groupId>org.codehaus.mojo</groupId>
20
+ <artifactId>aspectj-maven-plugin</artifactId>
21
+ <executions>
22
+ <execution>
23
+ <goals>
24
+ <goal>compile</goal>
25
+ <goal>test-compile</goal>
26
+ </goals>
27
+ </execution>
28
+ </executions>
29
+ <configuration>
30
+ <complianceLevel>1.5</complianceLevel>
31
+ <aspectLibraries>
32
+ <aspectLibrary>
33
+ <groupId>net.sourceforge.ontomde</groupId>
34
+ <artifactId>ontomde-security</artifactId>
35
+ </aspectLibrary>
36
+ </aspectLibraries>
37
+ </configuration>
38
+ </plugin>
39
+ </plugins>
40
+ </build>
41
+ <dependencies>
42
+
43
+ <dependency>
44
+ <groupId>net.sourceforge.ontomde</groupId>
45
+ <artifactId>ontomde-jpa</artifactId>
46
+ <version>${ontomde.lib.version}</version>
47
+ </dependency>
48
+ <dependency>
49
+ <groupId>net.sourceforge.ontomde</groupId>
50
+ <artifactId>ontomde-security</artifactId>
51
+ <version>${ontomde.lib.version}</version>
52
+ </dependency>
53
+
54
+ <dependency>
55
+ <groupId>net.sourceforge.ontomde</groupId>
56
+ <artifactId>ontomde-bpm-client</artifactId>
57
+ <version>${ontomde.lib.version}</version>
58
+ </dependency>
59
+
60
+ <dependency>
61
+ <groupId>javax.persistence</groupId>
62
+ <artifactId>persistence-api</artifactId>
63
+ <version>1.0</version>
64
+ </dependency>
65
+
66
+ <dependency>
67
+ <groupId>log4j</groupId>
68
+ <artifactId>log4j</artifactId>
69
+ <version>1.2.12</version>
70
+ </dependency>
71
+
72
+ </dependencies>
73
+ </project>
74
+
@@ -0,0 +1,649 @@
1
+ package administration;
2
+
3
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w__imports"_*/
4
+ import javax.persistence.Basic;
5
+ import javax.persistence.CascadeType;
6
+ import javax.persistence.Column;
7
+ import javax.persistence.DiscriminatorColumn;
8
+ import javax.persistence.DiscriminatorType;
9
+ import javax.persistence.DiscriminatorValue;
10
+ import javax.persistence.Entity;
11
+ import javax.persistence.FetchType;
12
+ import javax.persistence.GeneratedValue;
13
+ import javax.persistence.Id;
14
+ import javax.persistence.JoinColumn;
15
+ import javax.persistence.JoinTable;
16
+ import javax.persistence.Lob;
17
+ import javax.persistence.ManyToMany;
18
+ import javax.persistence.ManyToOne;
19
+ import javax.persistence.OneToMany;
20
+ import javax.persistence.OneToOne;
21
+ import javax.persistence.Table;
22
+ import javax.persistence.Temporal;
23
+ import javax.persistence.TemporalType;
24
+ import javax.persistence.Version;
25
+
26
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w__imports"_*/
27
+ /**
28
+ * @see <a href="../umldoc/_o7p2Xsg1Edy3YZbvY96G9w-content.html">UML documentation.</a>
29
+ */
30
+
31
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w__annotations"_*/
32
+ @Entity
33
+ @Table (name="ApplicationUser")
34
+ @DiscriminatorColumn(discriminatorType = DiscriminatorType.INTEGER)
35
+ @DiscriminatorValue(value = "40" )
36
+
37
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w__annotations"_*/
38
+ public class ApplicationUser
39
+ implements java.io.Serializable,xmda.jpa.XmdaEntity<Long>{
40
+
41
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w__custom_code"_*/
42
+ // ***********************************************
43
+ // This area is provided to insert special code
44
+ // that cannot be handled by generator.
45
+ // Please, don't use custom method to avoid
46
+ // keeping source models up to date.
47
+ // ***********************************************
48
+
49
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w__custom_code"_*/
50
+
51
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw__annotations"_*/
52
+ @ManyToMany (cascade=CascadeType.ALL)/*TPL:107*/
53
+ @JoinColumn(name="administratedControllers_fk") /*TPL:103*/
54
+
55
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw__annotations"_*/
56
+ private java.util.Set<demo1GSMNetwork.BaseStationController> administratedControllers= new java.util.HashSet<demo1GSMNetwork.BaseStationController>();
57
+
58
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w__annotations"_*/
59
+ @Basic /*TPL:114*/
60
+
61
+ /*XMDA_END_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w__annotations"_*/
62
+ private java.lang.String email;
63
+
64
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id__annotations"_*/
65
+ @Id
66
+ @GeneratedValue
67
+
68
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id__annotations"_*/
69
+ private Long id;
70
+
71
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w__annotations"_*/
72
+ @Basic /*TPL:114*/
73
+
74
+ /*XMDA_END_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w__annotations"_*/
75
+ private java.lang.String login;
76
+
77
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_version__annotations"_*/
78
+ @Version
79
+ @SuppressWarnings("unused")
80
+
81
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_version__annotations"_*/
82
+ private long objectVersion;
83
+
84
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w__annotations"_*/
85
+ @ManyToOne (cascade=CascadeType.ALL) /*TPL:113*/
86
+ @JoinColumn(name="owner_fk") /*TPL:103*/
87
+
88
+ /*XMDA_END_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w__annotations"_*/
89
+ private administration.SecurityPanel owner;
90
+
91
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w__annotations"_*/
92
+ @Basic /*TPL:114*/
93
+
94
+ /*XMDA_END_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w__annotations"_*/
95
+ private java.lang.String password;
96
+
97
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_serialVersionUID__annotations"_*/
98
+
99
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_serialVersionUID__annotations"_*/
100
+ private static final transient long serialVersionUID= 1L;
101
+
102
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w__annotations"_*/
103
+ @ManyToMany (cascade=CascadeType.ALL)/*TPL:107*/
104
+ @JoinColumn(name="userGroup_fk") /*TPL:103*/
105
+
106
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w__annotations"_*/
107
+ private java.util.Set<administration.BusinessGroup> userGroup= new java.util.HashSet<administration.BusinessGroup>();
108
+
109
+
110
+
111
+
112
+
113
+ /**
114
+ * @param iadministratedControllers self-explanatory
115
+ */
116
+
117
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_add__annotations"_*/
118
+
119
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_add__annotations"_*/
120
+ public void addAdministratedControllers(final demo1GSMNetwork.BaseStationController iadministratedControllers){
121
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_add__0"_*/
122
+ /* TPL:0011 */
123
+ if(iadministratedControllers==null) { return; }
124
+ if(this.administratedControllers.add(iadministratedControllers)) {
125
+ iadministratedControllers.addAdministrators(this);
126
+ }
127
+
128
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_add__0"_*/
129
+ }
130
+
131
+ /**
132
+ * @param iuserGroup self-explanatory
133
+ */
134
+
135
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_add__annotations"_*/
136
+
137
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_add__annotations"_*/
138
+ public void addUserGroup(final administration.BusinessGroup iuserGroup){
139
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_add__0"_*/
140
+ /* TPL:0011 */
141
+ if(iuserGroup==null) { return; }
142
+ if(this.userGroup.add(iuserGroup)) {
143
+ iuserGroup.addUserList(this);
144
+ }
145
+
146
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_add__0"_*/
147
+ }
148
+
149
+ /**
150
+ * @param primaryKey self-explanatory
151
+ * @return self-explanatory
152
+ */
153
+
154
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_finderop__annotations"_*/
155
+
156
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_finderop__annotations"_*/
157
+ public static administration.ApplicationUser find(final long primaryKey){
158
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_finderop__0"_*/
159
+ return (administration.ApplicationUser)getEntityManager().find( administration.ApplicationUser.class, primaryKey);
160
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_finderop__0"_*/
161
+ }
162
+
163
+ /**
164
+ * @return self-explanatory
165
+ * @param nullCast self-explanatory
166
+ */
167
+
168
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_findAll__annotations"_*/
169
+ @SuppressWarnings("unchecked")
170
+
171
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_findAll__annotations"_*/
172
+ public static java.util.List<administration.ApplicationUser> findAll(final administration.ApplicationUser nullCast){
173
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_findAll__0"_*/
174
+ return (java.util.List<administration.ApplicationUser>) getEntityManager().createQuery( "select Object(c) from ApplicationUser as c").getResultList();
175
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_findAll__0"_*/
176
+ }
177
+
178
+ /**
179
+ * This property is part of a bi-navigable association {@link demo1GSMNetwork.BaseStationController#getAdministrators}<br/>
180
+ * @return self-explanatory
181
+ */
182
+
183
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_get__annotations"_*/
184
+
185
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_get__annotations"_*/
186
+ public java.util.Set<demo1GSMNetwork.BaseStationController> getAdministratedControllers(){
187
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_get__0"_*/
188
+
189
+ if(administratedControllers!=null){ /* TPL:0013 */
190
+ return administratedControllers;
191
+ } else {
192
+ return new java.util.HashSet<demo1GSMNetwork.BaseStationController>();
193
+ }
194
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_get__0"_*/
195
+ }
196
+
197
+ /**
198
+ * @return self-explanatory
199
+ */
200
+
201
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_sug__annotations"_*/
202
+
203
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_sug__annotations"_*/
204
+ public java.util.List<demo1GSMNetwork.BaseStationController> getAdministratedControllersSug(){
205
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_sug__0"_*/
206
+
207
+ /* TPL:0001jpa_many false */
208
+ java.util.List<demo1GSMNetwork.BaseStationController> ret=demo1GSMNetwork.BaseStationController.findAll((demo1GSMNetwork.BaseStationController)null);
209
+
210
+ demo1GSMNetwork.BaseStationController item=null;
211
+ java.util.Iterator<?> iter=getAdministratedControllers().iterator();
212
+ while(iter.hasNext()){
213
+ item=(demo1GSMNetwork.BaseStationController) iter.next();
214
+ if(!ret.contains(item)) {
215
+ ret.add(item);
216
+ }
217
+ }
218
+ return ret;
219
+
220
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_sug__0"_*/
221
+ }
222
+
223
+ /**
224
+ * @return self-explanatory
225
+ * @param user self-explanatory
226
+ */
227
+
228
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_getComputedAccessControlGrant__annotations"_*/
229
+
230
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_getComputedAccessControlGrant__annotations"_*/
231
+ public java.util.Set<xmda.security.GlobalComputedAccessControlCriteria> getComputedAccessControlGrant(final org.acegisecurity.userdetails.UserDetails user){
232
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_getComputedAccessControlGrant__0"_*/
233
+ //return empty list (every static role are denied)
234
+ return new java.util.HashSet<xmda.security.GlobalComputedAccessControlCriteria>();
235
+
236
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_getComputedAccessControlGrant__0"_*/
237
+ }
238
+
239
+ /**
240
+ * @return self-explanatory
241
+ */
242
+
243
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w_get__annotations"_*/
244
+
245
+ /*XMDA_END_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w_get__annotations"_*/
246
+ public java.lang.String getEmail(){
247
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w_get__0"_*/
248
+ /* TPL:0012 */ return email;
249
+ /*XMDA_END_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w_get__0"_*/
250
+ }
251
+
252
+ /**
253
+ * @return self-explanatory
254
+ */
255
+
256
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9wgetEntityManager__annotations"_*/
257
+
258
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9wgetEntityManager__annotations"_*/
259
+ public static javax.persistence.EntityManager getEntityManager(){
260
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9wgetEntityManager__0"_*/
261
+ return xmda.jpa.DbContext.getEntityManager();
262
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9wgetEntityManager__0"_*/
263
+ }
264
+
265
+ /**
266
+ * @return self-explanatory
267
+ */
268
+
269
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__4uHI4O-MEdyOubPwncMOqg_get__annotations"_*/
270
+
271
+ /*XMDA_END_uri="ukb__4uHI4O-MEdyOubPwncMOqg_get__annotations"_*/
272
+ public java.lang.String getGraphView(){
273
+ /*XMDA_BEGIN_reverse="yes"_uri="ukb__4uHI4O-MEdyOubPwncMOqg_get__0"_*/
274
+ try {
275
+ StringBuffer ret = new StringBuffer();
276
+ ret.append("digraph access{\n");
277
+ ret.append("graph [ rankdir=LR ]\n");
278
+ ret.append("u_"+getId() + "[label=\"" + (getLogin()==null ? "":getLogin()) + "\",shape=trapezium,style=filled,color=\"#FF6600\"]\n");
279
+ java.util.Set<SecurityRole> usedRoles=new java.util.HashSet<SecurityRole>();
280
+ for (BusinessGroup bg : this.getUserGroup()) {
281
+ ret.append("u_"+getId()+"->g_"+bg.getId()+"\n");
282
+ ret.append("g_"+bg.getId()+"[label=\""+bg.getGroupName()+"\",shape=box]\n");
283
+ for(SecurityRole sr : bg.getGroupRole()) {
284
+ ret.append("g_"+bg.getId()+"->"+"r_"+sr.getId()+"\n");
285
+ usedRoles.add(sr);
286
+ }
287
+ }
288
+ for(SecurityRole sr : usedRoles) {
289
+ ret.append("r_"+sr.getId()+"[label=\""+sr.getRoleName()+"\",shape=box,color=\"#FF6600\"]\n");
290
+ }
291
+
292
+ ret.append("}\n");
293
+ return ret.toString();
294
+ }catch (Exception e) {
295
+ e.printStackTrace();
296
+ System.out.println(e);
297
+ }
298
+ return "digraph {\n errorNode [label=\"internal error\"]\n}\n";
299
+ /*XMDA_END_uri="ukb__4uHI4O-MEdyOubPwncMOqg_get__0"_*/
300
+ }
301
+
302
+ /**
303
+ * @return self-explanatory
304
+ */
305
+
306
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id_get__annotations"_*/
307
+
308
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id_get__annotations"_*/
309
+ public Long getId(){
310
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id_get__0"_*/
311
+ if(id == null) { return Long.valueOf(0);} else {return id;}
312
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id_get__0"_*/
313
+ }
314
+
315
+ /**
316
+ * @return self-explanatory
317
+ */
318
+
319
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w_get__annotations"_*/
320
+
321
+ /*XMDA_END_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w_get__annotations"_*/
322
+ public java.lang.String getLogin(){
323
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w_get__0"_*/
324
+ /* TPL:0012 */ return login;
325
+ /*XMDA_END_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w_get__0"_*/
326
+ }
327
+
328
+ /**
329
+ * This property is part of a bi-navigable association {@link administration.SecurityPanel#getGestionUser}<br/>
330
+ * @return self-explanatory
331
+ */
332
+
333
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_get__annotations"_*/
334
+
335
+ /*XMDA_END_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_get__annotations"_*/
336
+ public administration.SecurityPanel getOwner(){
337
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_get__0"_*/
338
+ /* TPL:0012 */ return owner;
339
+ /*XMDA_END_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_get__0"_*/
340
+ }
341
+
342
+ /**
343
+ * @return self-explanatory
344
+ */
345
+
346
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_sug__annotations"_*/
347
+
348
+ /*XMDA_END_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_sug__annotations"_*/
349
+ public java.util.List<administration.SecurityPanel> getOwnerSug(){
350
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_sug__0"_*/
351
+
352
+ /* TPL:0001jpa_one true */
353
+ java.util.List<administration.SecurityPanel> ret=administration.SecurityPanel.findAll((administration.SecurityPanel)null);
354
+ administration.SecurityPanel elt=getOwner();
355
+ if(elt!=null && !ret.contains(elt)) {
356
+ ret.add(elt);
357
+ }
358
+ return ret;
359
+
360
+ /*XMDA_END_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_sug__0"_*/
361
+ }
362
+
363
+ /**
364
+ * @return self-explanatory
365
+ */
366
+
367
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w_get__annotations"_*/
368
+
369
+ /*XMDA_END_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w_get__annotations"_*/
370
+ public java.lang.String getPassword(){
371
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w_get__0"_*/
372
+ /* TPL:0012 */ return password;
373
+ /*XMDA_END_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w_get__0"_*/
374
+ }
375
+
376
+ /**
377
+ * This property is part of a bi-navigable association {@link administration.BusinessGroup#getUserList}<br/>
378
+ * @return self-explanatory
379
+ */
380
+
381
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_get__annotations"_*/
382
+
383
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_get__annotations"_*/
384
+ public java.util.Set<administration.BusinessGroup> getUserGroup(){
385
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_get__0"_*/
386
+
387
+ if(userGroup!=null){ /* TPL:0013 */
388
+ return userGroup;
389
+ } else {
390
+ return new java.util.HashSet<administration.BusinessGroup>();
391
+ }
392
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_get__0"_*/
393
+ }
394
+
395
+ /**
396
+ * @return self-explanatory
397
+ */
398
+
399
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_sug__annotations"_*/
400
+
401
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_sug__annotations"_*/
402
+ public java.util.List<administration.BusinessGroup> getUserGroupSug(){
403
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_sug__0"_*/
404
+
405
+ /* TPL:0001jpa_many false */
406
+ java.util.List<administration.BusinessGroup> ret=administration.BusinessGroup.findAll((administration.BusinessGroup)null);
407
+
408
+ administration.BusinessGroup item=null;
409
+ java.util.Iterator<?> iter=getUserGroup().iterator();
410
+ while(iter.hasNext()){
411
+ item=(administration.BusinessGroup) iter.next();
412
+ if(!ret.contains(item)) {
413
+ ret.add(item);
414
+ }
415
+ }
416
+ return ret;
417
+
418
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_sug__0"_*/
419
+ }
420
+
421
+ /**
422
+ * @return self-explanatory
423
+ */
424
+
425
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_merge__annotations"_*/
426
+
427
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_merge__annotations"_*/
428
+ public administration.ApplicationUser merge(){
429
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_merge__0"_*/
430
+ return (administration.ApplicationUser)getEntityManager().merge(this);
431
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_merge__0"_*/
432
+ }
433
+
434
+ /**
435
+ */
436
+
437
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_persist__annotations"_*/
438
+
439
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_persist__annotations"_*/
440
+ public void persist(){
441
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_persist__0"_*/
442
+ getEntityManager().persist(this);
443
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_persist__0"_*/
444
+ }
445
+
446
+ /**
447
+ */
448
+
449
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_remove__annotations"_*/
450
+
451
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_remove__annotations"_*/
452
+ public void remove(){
453
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_remove__0"_*/
454
+ getEntityManager().remove(this);
455
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_remove__0"_*/
456
+ }
457
+
458
+ /**
459
+ * @param iadministratedControllers self-explanatory
460
+ */
461
+
462
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_remove__annotations"_*/
463
+
464
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_remove__annotations"_*/
465
+ public void removeAdministratedControllers(final demo1GSMNetwork.BaseStationController iadministratedControllers){
466
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_remove__0"_*/
467
+ /* TPL:0005 */
468
+ if(this.administratedControllers.remove(iadministratedControllers)) {
469
+ iadministratedControllers.removeAdministrators(this);
470
+ }
471
+
472
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_remove__0"_*/
473
+ }
474
+
475
+ /**
476
+ * @param iuserGroup self-explanatory
477
+ */
478
+
479
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_remove__annotations"_*/
480
+
481
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_remove__annotations"_*/
482
+ public void removeUserGroup(final administration.BusinessGroup iuserGroup){
483
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_remove__0"_*/
484
+ /* TPL:0005 */
485
+ if(this.userGroup.remove(iuserGroup)) {
486
+ iuserGroup.removeUserList(this);
487
+ }
488
+
489
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_remove__0"_*/
490
+ }
491
+
492
+ /**
493
+ * @param iadministratedControllers self-explanatory
494
+ * @see administration.ApplicationUser#getAdministratedControllers
495
+ */
496
+
497
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_set__annotations"_*/
498
+
499
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_set__annotations"_*/
500
+ public void setAdministratedControllers(final java.util.Set<demo1GSMNetwork.BaseStationController> iadministratedControllers){
501
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_set__0"_*/
502
+ /* TPL:0017 */
503
+ java.util.Set<demo1GSMNetwork.BaseStationController> toBeRemoved=new java.util.HashSet<demo1GSMNetwork.BaseStationController>();
504
+ for(demo1GSMNetwork.BaseStationController item:administratedControllers) {
505
+ if(iadministratedControllers!=null && iadministratedControllers.contains(item)) { continue;}
506
+ toBeRemoved.add(item);
507
+ }
508
+ for(demo1GSMNetwork.BaseStationController item:toBeRemoved) {
509
+ this.removeAdministratedControllers(item);
510
+ }
511
+ if(iadministratedControllers==null) { return ; }
512
+ for(demo1GSMNetwork.BaseStationController item:iadministratedControllers) {
513
+ this.addAdministratedControllers(item);
514
+ }
515
+
516
+ /*XMDA_END_uri="ukb__Glp7oO6JEdyp6cGW4pi6rw_set__0"_*/
517
+ }
518
+
519
+ /**
520
+ * @param iemail self-explanatory
521
+ * @see administration.ApplicationUser#getEmail
522
+ */
523
+
524
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w_set__annotations"_*/
525
+
526
+ /*XMDA_END_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w_set__annotations"_*/
527
+ public void setEmail(final java.lang.String iemail){
528
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w_set__0"_*/
529
+ this.email=iemail; /* TPL:0014d*/
530
+ /*XMDA_END_uri="ukb__o7p2Y8g1Edy3YZbvY96G9w_set__0"_*/
531
+ }
532
+
533
+ /**
534
+ * @param igraphView self-explanatory
535
+ * @see administration.ApplicationUser#getGraphView
536
+ */
537
+
538
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__4uHI4O-MEdyOubPwncMOqg_set__annotations"_*/
539
+
540
+ /*XMDA_END_uri="ukb__4uHI4O-MEdyOubPwncMOqg_set__annotations"_*/
541
+ public void setGraphView(final java.lang.String igraphView){
542
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__4uHI4O-MEdyOubPwncMOqg_set__0"_*/
543
+
544
+ //TODO: replace this test code by real implementation
545
+ //log.error("test method called");
546
+
547
+ /*XMDA_END_uri="ukb__4uHI4O-MEdyOubPwncMOqg_set__0"_*/
548
+ }
549
+
550
+ /**
551
+ * @param iid self-explanatory
552
+ * @see administration.ApplicationUser#getId
553
+ */
554
+
555
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id_set__annotations"_*/
556
+
557
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id_set__annotations"_*/
558
+ public void setId(final Long iid){
559
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id_set__0"_*/
560
+ this.id=iid; /* TPL:0014d*/
561
+ /*XMDA_END_uri="ukb__o7p2Xsg1Edy3YZbvY96G9w_auto_id_set__0"_*/
562
+ }
563
+
564
+ /**
565
+ * @param ilogin self-explanatory
566
+ * @see administration.ApplicationUser#getLogin
567
+ */
568
+
569
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w_set__annotations"_*/
570
+
571
+ /*XMDA_END_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w_set__annotations"_*/
572
+ public void setLogin(final java.lang.String ilogin){
573
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w_set__0"_*/
574
+ this.login=ilogin; /* TPL:0014d*/
575
+ /*XMDA_END_uri="ukb__o7p2Ycg1Edy3YZbvY96G9w_set__0"_*/
576
+ }
577
+
578
+ /**
579
+ * @param iowner self-explanatory
580
+ * @see administration.ApplicationUser#getOwner
581
+ */
582
+
583
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_set__annotations"_*/
584
+
585
+ /*XMDA_END_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_set__annotations"_*/
586
+ public void setOwner(final administration.SecurityPanel iowner){
587
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_set__0"_*/
588
+ /* TPL:0016 */
589
+ if(owner!=null && owner.equals(iowner)) { return ;}
590
+ administration.SecurityPanel previous=owner;
591
+
592
+ owner=null;
593
+ if(previous!=null) { previous.removeGestionUser(this); }
594
+
595
+ this.owner=iowner;
596
+ if(iowner!=null) { iowner.addGestionUser(this); }
597
+
598
+ /*XMDA_END_uri="ukb__o7p2Zcg1Edy3YZbvY96G9w_set__0"_*/
599
+ }
600
+
601
+ /**
602
+ * @param ipassword self-explanatory
603
+ * @see administration.ApplicationUser#getPassword
604
+ */
605
+
606
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w_set__annotations"_*/
607
+
608
+ /*XMDA_END_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w_set__annotations"_*/
609
+ public void setPassword(final java.lang.String ipassword){
610
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w_set__0"_*/
611
+ this.password=ipassword; /* TPL:0014d*/
612
+ /*XMDA_END_uri="ukb__o7p2Ysg1Edy3YZbvY96G9w_set__0"_*/
613
+ }
614
+
615
+ /**
616
+ * @param iuserGroup self-explanatory
617
+ * @see administration.ApplicationUser#getUserGroup
618
+ */
619
+
620
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_set__annotations"_*/
621
+
622
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_set__annotations"_*/
623
+ public void setUserGroup(final java.util.Set<administration.BusinessGroup> iuserGroup){
624
+ /*XMDA_BEGIN_reverse="no"_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_set__0"_*/
625
+ /* TPL:0017 */
626
+ java.util.Set<administration.BusinessGroup> toBeRemoved=new java.util.HashSet<administration.BusinessGroup>();
627
+ for(administration.BusinessGroup item:userGroup) {
628
+ if(iuserGroup!=null && iuserGroup.contains(item)) { continue;}
629
+ toBeRemoved.add(item);
630
+ }
631
+ for(administration.BusinessGroup item:toBeRemoved) {
632
+ this.removeUserGroup(item);
633
+ }
634
+ if(iuserGroup==null) { return ; }
635
+ for(administration.BusinessGroup item:iuserGroup) {
636
+ this.addUserGroup(item);
637
+ }
638
+
639
+ /*XMDA_END_uri="ukb__o7p2ZMg1Edy3YZbvY96G9w_set__0"_*/
640
+ }
641
+ }
642
+ //**********************************************************************
643
+ //** This file is in REVERSE MODE. Text between tags will be saved
644
+ //** upon next generation if reverse="yes"
645
+ //** Element between tags are not stored in model, so this file should
646
+ //** manage in a version management tool.
647
+ //**********************************************************************
648
+ //** Generated with ontoMDE (ORANGE-FT/RD/BIZZ/CIL/SAM 2006-2007)
649
+ //**********************************************************************