stuff
This commit is contained in:
parent
ab2932f75e
commit
1f8b2d4c7b
3 changed files with 29 additions and 3 deletions
|
@ -197,5 +197,30 @@
|
|||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<configuration>
|
||||
<doclet>com.lunatech.doclets.jax.jaxrs.JAXRSDoclet</doclet>
|
||||
<docletArtifacts>
|
||||
<docletArtifact>
|
||||
<groupId>com.lunatech.jax-doclets</groupId>
|
||||
<artifactId>doclets</artifactId>
|
||||
<version>0.10.0</version>
|
||||
</docletArtifact>
|
||||
</docletArtifacts>
|
||||
</configuration>
|
||||
<reports>
|
||||
<report>javadoc</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
</project>
|
||||
|
|
|
@ -80,7 +80,7 @@ public class AdminRoot {
|
|||
).build();
|
||||
}
|
||||
|
||||
@Path("index.html")
|
||||
@Path("index.{hack:html}")
|
||||
@GET
|
||||
public Response masterRealmAdminConsoleRedirectHtml() {
|
||||
return masterRealmAdminConsoleRedirect();
|
||||
|
|
|
@ -74,7 +74,7 @@ public class RealmsAdminResource {
|
|||
@GET
|
||||
@NoCache
|
||||
@Produces("application/json")
|
||||
public List<RealmRepresentation> getRealms() {
|
||||
public List<RealmRepresentation> getRealms() {
|
||||
RealmManager realmManager = new RealmManager(session);
|
||||
List<RealmRepresentation> reps = new ArrayList<RealmRepresentation>();
|
||||
if (auth.getRealm().equals(realmManager.getKeycloakAdminstrationRealm())) {
|
||||
|
@ -90,6 +90,7 @@ public class RealmsAdminResource {
|
|||
return reps;
|
||||
}
|
||||
|
||||
|
||||
protected void addRealmRep(List<RealmRepresentation> reps, RealmModel realm, ApplicationModel realmManagementApplication) {
|
||||
if (auth.hasAppRole(realmManagementApplication, AdminRoles.MANAGE_REALM)) {
|
||||
reps.add(ModelToRepresentation.toRepresentation(realm));
|
||||
|
|
Loading…
Reference in a new issue