You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Throws ForbiddenException if {@link #canListClientScopes()} returns {@code false}.
37
+
*/
34
38
voidrequireListClientScopes();
35
39
40
+
/**
41
+
* Returns {@code true} if the caller has {@link org.keycloak.models.AdminRoles#MANAGE_CLIENTS} role.
42
+
* <p/>
43
+
* For V2 only: Also if it has permission to {@link org.keycloak.authorization.AdminPermissionsSchema#MANAGE}.
44
+
*/
36
45
booleancanManage();
37
46
47
+
/**
48
+
* Throws ForbiddenException if {@link #canManage()} returns {@code false}.
49
+
*/
38
50
voidrequireManage();
39
51
52
+
/**
53
+
* Returns {@code true} if the caller has {@link org.keycloak.models.AdminRoles#MANAGE_CLIENTS} role.
54
+
* <p/>
55
+
* For V2 only: Also if it has permission to {@link org.keycloak.authorization.AdminPermissionsSchema#MANAGE}.
56
+
*/
40
57
booleancanManageClientScopes();
41
58
59
+
/**
60
+
* Throws ForbiddenException if {@link #canManageClientScopes()} returns {@code false}.
61
+
*/
42
62
voidrequireManageClientScopes();
43
63
64
+
/**
65
+
* Returns {@code true} if the caller has at least one of the {@link org.keycloak.models.AdminRoles#MANAGE_CLIENTS} or {@link org.keycloak.models.AdminRoles#VIEW_CLIENTS} roles.
66
+
* <p/>
67
+
* For V2 only: Also if it has permission to {@link org.keycloak.authorization.AdminPermissionsSchema#VIEW}.
68
+
*/
44
69
booleancanView();
45
70
71
+
/**
72
+
* Returns {@code true} if {@link #canView()} returns {@code true}.
73
+
* <p/>
74
+
* Or if the caller has at least one of the {@link AdminRoles#QUERY_CLIENTS} or {@link AdminRoles#QUERY_USERS} roles.
75
+
*/
46
76
booleancanList();
47
77
78
+
/**
79
+
* Returns {@code true} if {@link #canView()} returns {@code true}.
80
+
*/
48
81
booleancanViewClientScopes();
49
82
83
+
/**
84
+
* Throws ForbiddenException if {@link #canList()} returns {@code false}.
85
+
*/
50
86
voidrequireList();
51
87
88
+
/**
89
+
* Returns {@code true} if {@link #canView()} returns {@code true}.
90
+
* <p/>
91
+
* Or if the caller has {@link AdminRoles#QUERY_CLIENTS} role.
92
+
*/
52
93
booleancanListClientScopes();
53
94
95
+
/**
96
+
* Returns {@code true} if {@link #canView()} returns {@code true}.
97
+
*/
54
98
voidrequireView();
55
99
100
+
/**
101
+
* Returns {@code true} if {@link #canViewClientScopes()} returns {@code true}.
102
+
*/
56
103
voidrequireViewClientScopes();
57
104
105
+
/**
106
+
* Returns {@code true} if the caller has {@link org.keycloak.models.AdminRoles#MANAGE_CLIENTS} role.
107
+
* <p/>
108
+
* Or if the caller has a permission to {@link AdminPermissionManagement#MANAGE_SCOPE} the client.
109
+
* <p/>
110
+
* For V2 only: Also if the caller has a permission to {@link org.keycloak.authorization.AdminPermissionsSchema#MANAGE} all clients.
111
+
*/
58
112
booleancanManage(ClientModelclient);
59
113
114
+
/**
115
+
* Returns {@code true} if {@link #canManage(ClientModel)} returns {@code true}.
116
+
* <p/>
117
+
* Or if the caller has a permission to {@link ClientPermissionManagement#CONFIGURE_SCOPE} the client.
118
+
* <p/>
119
+
* For V2 only: Also if the caller has a permission to {@link org.keycloak.authorization.AdminPermissionsSchema#CONFIGURE} all clients.
120
+
*/
60
121
booleancanConfigure(ClientModelclient);
61
122
123
+
/**
124
+
* Throws ForbiddenException if {@link #canConfigure(ClientModel)} returns {@code false}.
125
+
*/
62
126
voidrequireConfigure(ClientModelclient);
63
127
128
+
/**
129
+
* Throws ForbiddenException if {@link #canManage(ClientModel)} returns {@code false}.
130
+
*/
64
131
voidrequireManage(ClientModelclient);
65
132
133
+
/**
134
+
* Returns {@code true} if {@link #canView()} or {@link #canConfigure(ClientModel)} returns {@code true}.
135
+
* <p/>
136
+
* Or if the caller has a permission to {@link AdminPermissionManagement#VIEW_SCOPE} the client.
137
+
* <p/>
138
+
* For V2 only: Also if the caller has a permission to {@link org.keycloak.authorization.AdminPermissionsSchema#VIEW} all clients.
139
+
*/
66
140
booleancanView(ClientModelclient);
67
141
142
+
/**
143
+
* Throws ForbiddenException if {@link #canView(ClientModel)} returns {@code false}.
144
+
*/
68
145
voidrequireView(ClientModelclient);
69
146
147
+
/**
148
+
* Returns {@code true} if the caller has {@link org.keycloak.models.AdminRoles#MANAGE_CLIENTS} role.
149
+
* <p/>
150
+
* For V2 only: Also if it has permission to {@link org.keycloak.authorization.AdminPermissionsSchema#MANAGE}.
151
+
*/
70
152
booleancanManage(ClientScopeModelclientScope);
71
153
154
+
/**
155
+
* Throws ForbiddenException if {@link #canManage(ClientScopeModel)} returns {@code false}.
156
+
*/
72
157
voidrequireManage(ClientScopeModelclientScope);
73
158
159
+
/**
160
+
* Returns {@code true} if the caller has at least one of the {@link org.keycloak.models.AdminRoles#VIEW_CLIENTS} or {@link org.keycloak.models.AdminRoles#MANAGE_CLIENTS} roles.
161
+
* <p/>
162
+
* For V2 only: Also if it has permission to {@link org.keycloak.authorization.AdminPermissionsSchema#VIEW} or {@link org.keycloak.authorization.AdminPermissionsSchema#MANAGE}.
163
+
*/
74
164
booleancanView(ClientScopeModelclientScope);
75
165
166
+
/**
167
+
* Throws ForbiddenException if {@link #canView(ClientScopeModel)} returns {@code false}.
168
+
*/
76
169
voidrequireView(ClientScopeModelclientScope);
77
170
171
+
/**
172
+
* Returns {@code true} if the caller has a permission to {@link ClientPermissionManagement#MAP_ROLES_SCOPE} for the client.
173
+
* <p/>
174
+
* For V2 only: Also if the caller has a permission to {@link org.keycloak.authorization.AdminPermissionsSchema#MAP_ROLES} for all clients.
175
+
*/
78
176
booleancanMapRoles(ClientModelclient);
79
177
178
+
/**
179
+
* Returns {@code true} if the caller has a permission to {@link ClientPermissionManagement#MAP_ROLES_COMPOSITE_SCOPE} for the client.
180
+
* <p/>
181
+
* For V2 only: Also if the caller has a permission to {@link org.keycloak.authorization.AdminPermissionsSchema#MAP_ROLES_COMPOSITE} for all clients.
182
+
*/
80
183
booleancanMapCompositeRoles(ClientModelclient);
81
184
185
+
/**
186
+
* Returns {@code true} if the caller has a permission to {@link ClientPermissionManagement#MAP_ROLES_CLIENT_SCOPE} for the client.
187
+
* <p/>
188
+
* For V2 only: Also if the caller has a permission to {@link org.keycloak.authorization.AdminPermissionsSchema#MAP_ROLES_CLIENT_SCOPE} for all clients.
0 commit comments