Return-Path: X-Original-To: apmail-isis-users-archive@www.apache.org Delivered-To: apmail-isis-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB76B17903 for ; Sun, 27 Sep 2015 08:38:04 +0000 (UTC) Received: (qmail 71525 invoked by uid 500); 27 Sep 2015 08:38:04 -0000 Delivered-To: apmail-isis-users-archive@isis.apache.org Received: (qmail 71501 invoked by uid 500); 27 Sep 2015 08:38:04 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 71486 invoked by uid 99); 27 Sep 2015 08:37:59 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2015 08:37:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C02731A1727 for ; Sun, 27 Sep 2015 08:37:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.666 X-Spam-Level: **** X-Spam-Status: No, score=4.666 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, HTTP_EXCESSIVE_ESCAPES=1.516, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lkqoUyKCvtXf for ; Sun, 27 Sep 2015 08:37:48 +0000 (UTC) Received: from mail-yk0-f179.google.com (mail-yk0-f179.google.com [209.85.160.179]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 4F25420313 for ; Sun, 27 Sep 2015 08:37:47 +0000 (UTC) Received: by ykft14 with SMTP id t14so149960268ykf.0 for ; Sun, 27 Sep 2015 01:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/tSoZq+kCocqZDTryDrNJZ2wzy18Sda+PZV4jM/UX+4=; b=LZS372N3vrhP+8O4TU1FG8+B+20yA8tgbJlw9ZRUCGigzChZrs9h0AwhYY5DzfVPga mPvU43gwuNYR/41FELD7Rq8Ag868BCGEacT6ClBxX1JaYFxp7A2lQ3oq4eW5AaD5ueIT 0IYw8mUQVaOdzlmBluFIn1PlpdiwliKI07p8a5gavl7AOA+5A4Pc2T37tOTSzvqPg47q MnXMwdByyFPO7ZUwsY+QOaCAv0rmEi+c5uOlX9M8QCgKlcOvwa9IzwSHWGTp/MzJACWy 8rCUtapv8Q/Q9UtAJx+5R0X5D4dWVdxkdo9KHcD7JY2mUbJhq6wi4Zr6Q6vUgmAQxi+c Zm0A== MIME-Version: 1.0 X-Received: by 10.170.119.140 with SMTP id l134mr11760055ykb.69.1443343059620; Sun, 27 Sep 2015 01:37:39 -0700 (PDT) Received: by 10.37.208.200 with HTTP; Sun, 27 Sep 2015 01:37:39 -0700 (PDT) In-Reply-To: References: Date: Sun, 27 Sep 2015 18:37:39 +1000 Message-ID: Subject: Re: security module questions From: Stephen Cameron To: users@isis.apache.org Content-Type: multipart/alternative; boundary=001a1137ce8e5b9f570520b67e59 --001a1137ce8e5b9f570520b67e59 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable sure enough, when I gave package access to domainapp.app.services.homepage to my general user - Voila! On Sun, Sep 27, 2015 at 6:09 PM, Stephen Cameron wrote: > re " I have the home page as it appears in the security demo" > > sorry, that is not so, its the right 'welcome' page. So must be just > permissions. > > On Sun, Sep 27, 2015 at 5:13 PM, Dan Haywood > wrote: > >> Not sure. >> >> What I can tell you is that the home page is simply the result of the >> framework invoking a domain service annotated with @HomePage (or to be >> more >> precise, one that has a HomePageFacet). If one cannot be found in all of >> the services, then the index.html page (somewhere in the webapp module a= nd >> as specified in your app's subclass of IsisWebApplication) will be >> rendered. If more than one such service can be found, then the app will >> fail to boot with a metamodel validation error. >> >> My guess is that the domain service you have with an @HomePage annotatio= n >> isn't within the last of packages derived from the module package names. >> As >> a quick check, you could add the service class itself to the list return= ed >> from getModules() and see what happens. >> >> With respect to the marker classes you've added for security module, the= re >> is a class called simply SecurityModule that you could use. >> >> HTH >> >> Dan >> On 27 Sep 2015 07:42, "Stephen Cameron" >> wrote: >> >> > I see the following on the home page always, even when a new user logs >> in >> > other than isis-module-security-admin: >> > >> > Apache Isis =E2=84=A2 is a platform to let you= rapidly >> > develop domain-driven apps in Java. >> > >> > This app has been generated using Apache Isis' SimpleApp >> > < >> http://isis.apache.org/intro/getting-started/simple%61pp-archetype.html> >> > archetype, to create a purposefully minimal application that >> nevertheless >> > includes fixture data, integration tests and BDD specs. >> > >> > The app itself consists of a single domain class, SimpleObject >> > < >> > >> https://github.com/apache/isis/blob/master/example/application/simple%61= pp/dom/src/main/java/dom/simple/SimpleObject.java >> > >, >> > along with an equally simple (factory/repository) domain service, >> > SimpleObjects >> > < >> > >> https://github.com/apache/isis/blob/master/example/application/simple%61= pp/dom/src/main/java/dom/simple/SimpleObjects.java >> > >. >> > >> > >> > For more details, see the Apache Isis website >> > . >> > >> > On Sun, Sep 27, 2015 at 3:40 PM, Stephen Cameron < >> > steve.cameron.62@gmail.com >> > > wrote: >> > >> > > Hi, >> > > >> > > I am making use of the Apache Isis security module addon. I've >> configured >> > > it using the new App Manifest means, but have one issue, which is ho= w >> is >> > > the home page being created now? >> > > >> > > I have the home page as it appears in the security demo, rather than >> the >> > > one that I created in my app. Its not clear to me why Isis is >> picking up >> > > the alernative SecurityModuleApplication rather than my customised >> > > HomePageViewModel. >> > > >> > > To make it work with the AppManifest, I have the following: >> > > >> > > package domainapp.app; >> > > >> > > import java.util.Arrays; >> > > import java.util.Collections; >> > > import java.util.List; >> > > import java.util.Map; >> > > >> > > import org.apache.isis.applib.AppManifest; >> > > import org.apache.isis.applib.fixturescripts.FixtureScript; >> > > import org.isisaddons.module.security.dom.DomainAppSecurityDomModule= ; >> > > import >> org.isisaddons.module.security.seed.DomainAppSecuritySeedModule; >> > > >> > > import au.com.scds.chats.dom.DomainAppDomainModule; >> > > >> > > import domainapp.fixture.DomainAppFixtureModule; >> > > >> > > /** >> > > * Bootstrap the application. >> > > */ >> > > public class DomainAppAppManifest implements AppManifest { >> > > >> > > /** >> > > * Load all services and entities found in (the packages and >> > > subpackages within) these modules >> > > */ >> > > @Override >> > > public List> getModules() { >> > > return Arrays.asList( >> > > DomainAppDomainModule.class, // domain (entities an= d >> > > repositories) >> > > DomainAppFixtureModule.class, // fixtures >> > > DomainAppAppModule.class, // home page service >> etc >> > > DomainAppSecurityDomModule.class, //security >> > > DomainAppSecuritySeedModule.class, //seed the securi= ty >> > > admin user >> > > >> > > org.isisaddons.wicket.gmap3.cpt.service.Gmap3ServiceModule.class >> //Google >> > > Gmap Geocoding Service >> > > ); >> > > } >> > > >> > > /** >> > > * No additional services. >> > > */ >> > > @Override >> > > public List> getAdditionalServices() { >> > > //return Collections.emptyList(); >> > > return Arrays.asList( >> > > >> > > >> > >> org.isisaddons.module.security.dom.password.PasswordEncryptionServiceUsi= ngJBcrypt.class, >> > > >> > > >> > >> org.isisaddons.module.security.dom.permission.PermissionsEvaluationServi= ceAllowBeatsVeto.class >> > > ); >> > > } >> > > >> > > >> > > I've added these two 'marker' classes to my app so the security doma= in >> > > service classes will be discovered: >> > > >> > > org.isisaddons.module.security.dom.DomainAppSecurityDomModule.class >> > > org.isisaddons.module.security.seed.DomainAppSecuritySeedModule.clas= s >> > > >> > > >> > > Steve C. >> > > >> > >> > > --001a1137ce8e5b9f570520b67e59--