pt.digitalis.dif.dem.annotations.parameter
Annotation Type Persist


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Persist

This annotation defines the kind of persistence that a parameter can have.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt, Pedro Viegas pviegas@digitalis.pt
See Also:
IParameter
Created on:
2007/05/11

Optional Element Summary
 boolean allowAnonymous
          Only for USER scoped persistence.
 String groupVisibility
          Defines the group of users that can access the parameter.
 boolean repository
          The persistence option.
 ParameterScope scope
          The parameter lifetime scope.
 

scope

public abstract ParameterScope scope
The parameter lifetime scope.

Default:
pt.digitalis.dif.dem.objects.parameters.ParameterScope.REQUEST

repository

public abstract boolean repository
The persistence option. If true the parameter persists between JVM restarts.

Default:
false

allowAnonymous

public abstract boolean allowAnonymous
Only for USER scoped persistence. Anonymous access means an unauthenticated user. We have a session but not a user logged in session. If true allows anonymous access issuing a warn and returning null. If false, forces the launch of an exception on a anonymous access to a USER parameter

Default:
false

groupVisibility

public abstract String groupVisibility
Defines the group of users that can access the parameter.

Default:
"CGID:Default Group Visibilty"


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.