arrow_back history picture_as_pdf This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ~~NOTRANS~~ ~~Title: Accessible and NotAccessible~~ The **@Accessible** and **@NotAccessible** annotations are described in [[jvx:server:lco:actions_in_objects|this article]]. But sometimes it's not enough to allow or deny the general access to a method or storage. Sometimes you want to configure the access for a specific environment, e.g. it shouldn't be possible to use an action in REST environment but it should be possible to use the same method in all other environments. This environment control is built-in into JVx REST handling. **How to use the environment control?** <file java> @NotAccessible(environment = ILauncher.ENVIRONMENT_REST) public String getCustomerName() { return "John Doe"; } </file> It's also possible to use: <file java> @NotAccessible(environment = NotAccessible.ENVIRONMENT_ALL) public String getCustomerName() { return "John Doe"; } </file> or <file java> @NotAccessible(environment = ILauncher.ENVIRONMENT_DESKTOP +"," + ILauncher.ENVIRONMENT_REST) public String getCustomerName() { return "John Doe"; } </file>