to.etc.domui.annotations
Annotation Type UIRights


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface UIRights

Defines the rights that are required for a page to be usable by a user. When this annotation is present on a page the page can be accessed by a user which has the prerequisite rights. If the user is not currently known (meaning he has not logged in yet) this causes the page logic to throw a NotLoggedInException, which in turn should force a login to occur.

Author:
Frits Jalvingh Created on Apr 15, 2009

Optional Element Summary
 java.lang.String dataPath
          If these rights depend on the data being edited, this must contain a property path expression on the annotated class leading to the data item to use for the check.
 java.lang.String[] value
          The rights that the user must have to access the page.
 

value

public abstract java.lang.String[] value
The rights that the user must have to access the page. If multiple entries are set it means ALL rights specified must be present to allow access.

Returns:
Default:
{}

dataPath

public abstract java.lang.String dataPath
If these rights depend on the data being edited, this must contain a property path expression on the annotated class leading to the data item to use for the check.

Returns:
Default:
""