Thanks. If I had methods, will this also apply to them ie I have a method
like "Process" that appears on the menu when the entity is shown. Can I use
the same approach to disable it?


On Tue, Oct 15, 2013 at 5:10 PM, Dan Haywood
<[email protected]>wrote:

> something like:
>
> public class SomeClass {
>
>     private String createdBy;
>     ...
>
>     public String disabled(Identifier.Type type) {
>         return createdBy.equals(container.getUserName())? null: "Only the
> creator can modify this object";
>     }
> }
>
> HTH
> Dan
>
>
>
> On 15 October 2013 17:01, james agada <[email protected]> wrote:
>
> > I want to allow only the creator of a record to be the one able to do it.
> > Any ideas?
> >
>

Reply via email to