[ 
https://issues.apache.org/jira/browse/ISIS-3196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andi Huber closed ISIS-3196.
----------------------------
    Resolution: Not A Bug

this property is hidden for any non entities; if it was not hidden before, 
that's like because there was a bug and not vice versa ...

{code:java}

public class Object_objectIdentifier {

    @Inject private BookmarkService bookmarkService;
    @Inject private MetaModelService metaModelService;

    private final Object holder;

    public static class ActionDomainEvent
    extends 
org.apache.isis.applib.IsisModuleApplib.ActionDomainEvent<Object_objectIdentifier>
 {}

    @Action(
            domainEvent = Object_objectIdentifier.ActionDomainEvent.class   // 
this is a workaround to allow the mixin to be subscribed to (ISIS-2650)
    )
    @MemberSupport public String prop() {
        val bookmark = bookmarkService.bookmarkForElseFail(this.holder);
        return bookmark.getIdentifier();
    }

    @MemberSupport public boolean hideProp() {
        val bookmark = bookmarkService.bookmarkForElseFail(this.holder);
        return !metaModelService.sortOf(bookmark, 
MetaModelService.Mode.RELAXED).isEntity();
    }
}
{code}


> [NOT A BUG] RO - HTTP 404 when invoking /properties/objectIdentifier
> --------------------------------------------------------------------
>
>                 Key: ISIS-3196
>                 URL: https://issues.apache.org/jira/browse/ISIS-3196
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Viewer RO
>    Affects Versions: 2.0.0-M7
>            Reporter: Jörg Rade
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-M8
>
>
> Within 'Demo'  for: 
> {code}
> http://localhost:9090/restful/objects/isis.applib.DomainObjectList/PAR-LCAAAAAAAAACFkMFOwzAMhu99iih3knFDU5uJy6QhEIeNBwip1WVKnFJ7g709jspgggM5Ob9_f7_ldvWRkzrBRLFgp2_NQivAUPqIQ6dfduubO62IPfY-FYROn4H0yjVtisRKZpGWoeRO75nHpbWRIhk_-rAHU6bBkhTZW7Hkgto1Sl7LkRO4hXrwJ68ePQ5qy5MEElBr5-Zs9IFlred3lOb6LaDrIRc_jqYv2fB5BDIHYSRBmAqrrF2VnwCPrf0zfk3d9I7m1ItRlGvD_TQcMyCTuxh-lNkHCeq3Jv633VfU95bbS_RvxkwurwcITFYObeulXfMJyMCkw6kBAAA=/properties/objectIdentifier
> {code}
> I get:
> {code}
> "{\"httpStatusCode\":404,\"message\":\"Hidden\",\"detail\":null}"
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to