29
29
import com .stratelia .webactiv .beans .admin .OrganizationController ;
30
30
import com .stratelia .webactiv .beans .admin .ProfileInst ;
31
31
import com .stratelia .webactiv .beans .admin .UserDetail ;
32
-
33
32
import java .util .ArrayList ;
34
33
import java .util .Collections ;
35
34
import java .util .HashSet ;
@@ -43,9 +42,11 @@ public class SelectionUsersGroups implements SelectionExtraParams {
43
42
44
43
String domainId = null ;
45
44
String componentId = null ;
45
+ String objectId = null ;
46
46
List <String > profileIds = null ;
47
47
List <String > profileNames = null ;
48
48
49
+ @ Deprecated
49
50
public String [] getProfileIds () {
50
51
if (profileIds != null ) {
51
52
return profileIds .toArray (new String [profileIds .size ()]);
@@ -80,24 +81,66 @@ public void setProfileNames(List<String> profileNames) {
80
81
}
81
82
}
82
83
84
+ /**
85
+ * Sets the identifier of the roles the users must play.
86
+ * @param profileIds the unique identifier of the user roles.
87
+ * @deprecated Use instead either both the setObjectId() and setProfileNames() methods to set the roles
88
+ * for a given object in the component instance or the setProfileNames() method to set the roles
89
+ * for the whole component instance.
90
+ */
91
+ @ Deprecated
83
92
public void setProfileIds (List <String > profileIds ) {
84
93
this .profileIds = profileIds ;
85
94
}
86
95
96
+ /**
97
+ * Add the identifier of the role the users must play.
98
+ * @param profileId the unique identifier of a user role.
99
+ * @deprecated Use instead either both the setObjectId() and setProfileNames() methods to set the roles
100
+ * for a given object in the component instance or the setProfileNames() method to set the roles
101
+ * for the whole component instance.
102
+ */
103
+ @ Deprecated
87
104
public void addProfileId (String profileId ) {
88
105
if (profileIds == null ) {
89
106
profileIds = new ArrayList <String >();
90
107
}
91
108
profileIds .add (profileId );
92
109
}
93
110
111
+ /**
112
+ * Adds the identifiers of the roles the users must play.
113
+ * @param profileIds the user role identifiers.
114
+ * @deprecated Use instead either both the setObjectId() and setProfileNames() methods to set the roles
115
+ * for a given object in the component instance or the setProfileNames() method to set the roles
116
+ * for the whole component instance.
117
+ */
118
+ @ Deprecated
94
119
public void addProfileIds (List <String > profileIds ) {
95
120
if (this .profileIds == null ) {
96
121
this .profileIds = new ArrayList <String >();
97
122
}
98
123
profileIds .addAll (profileIds );
99
124
}
100
125
126
+ /**
127
+ * Gets the identifier of the object in the component instance for which the users must have
128
+ * enough right to access.
129
+ * @return the unique identifier of the object, made up of its type followed by its identifier.
130
+ */
131
+ public String getObjectId () {
132
+ return objectId ;
133
+ }
134
+
135
+ /**
136
+ * Sets the object in the component instance for which the users must have enough right to access.
137
+ * @param objectId the unique identifier of the object in Silverpeas. It must be made up of its
138
+ * type followed by its identifier.
139
+ */
140
+ public void setObjectId (String objectId ) {
141
+ this .objectId = objectId ;
142
+ }
143
+
101
144
public String getComponentId () {
102
145
return componentId ;
103
146
}
@@ -114,6 +157,7 @@ public void setDomainId(String domainId) {
114
157
this .domainId = domainId ;
115
158
}
116
159
160
+ @ Override
117
161
public String getParameter (String name ) {
118
162
return null ;
119
163
}
0 commit comments