Hi Oscar, There's a boolean hidden() [1] method available which can be used to hide all members I but have never used that. If I need to hide services on a user level I use the Isisaddons security module [2].
There's a String validate() method available for instance validation, have it return null when valid. A String disabled() method should be available according to JIRA [3] but I pretty sure that it doesn't since I've addressed a similar ticket [4]. I use @Immutable to disable all members. HTH Cheers, Jeroen [1] http://isis.apache.org/more-advanced-topics/how-to-02-040-How-to-specify-that-none-of-an-object's-members-is-visible.html [2] https://github.com/isisaddons/isis-module-security [3] https://issues.apache.org/jira/browse/ISIS-142 [4] https://issues.apache.org/jira/browse/ISIS-454 On Sun, Dec 7, 2014 at 12:19 PM, GESCONSULTOR - Óscar Bou < [email protected]> wrote: > Hi to all. > > Is there a way to hide an object service programmatically (i.e., using a > hide() method) ? > > The only way I know is the @Hidden annotation. > > Same way, both them could be disabled (on Services it would mean all > actions would be disabled). > > And also, for objects they could be programmatically validated. > > It could be also useful for per-instance security. > > > Is it currently available? > If not, could it be a good idea to create a facet for hide(), disable(), > validate() methods ? > > > Thanks, > > Oscar > > > >
