Skip to content
This repository was archived by the owner on May 11, 2018. It is now read-only.

Commit 314ce09

Browse files
committed
Add "Expression" variants for priority and useFor attributes on identity store annotations.
1 parent 9aa0f7a commit 314ce09

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

src/main/java/javax/security/enterprise/identitystore/DatabaseIdentityStoreDefinition.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,27 @@
129129
*/
130130
int priority() default 70;
131131

132+
/**
133+
* Allow priority to be specified as an EL expression.
134+
* If set, overrides any value set with priority.
135+
*
136+
* @return the priority EL expression
137+
*/
138+
String priorityExpression();
139+
132140
/**
133141
* Determines what the identity store is used for
134142
*
135143
* @return the type the identity store is used for
136144
*/
137145
ValidationType[] useFor() default {VALIDATE, PROVIDE_GROUPS};
138146

147+
/**
148+
* Allow useFor to be specified as an EL expression.
149+
* If set, overrides any value set with useFor.
150+
*
151+
* @return the useFor EL expression
152+
*/
153+
String useForExpression();
154+
139155
}

src/main/java/javax/security/enterprise/identitystore/LdapIdentityStoreDefinition.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,27 @@
262262
*/
263263
int priority() default 80;
264264

265+
/**
266+
* Allow priority to be specified as an EL expression.
267+
* If set, overrides any value set with priority.
268+
*
269+
* @return the priority EL expression
270+
*/
271+
String priorityExpression();
272+
265273
/**
266274
* Determines what the identity store is used for
267275
*
268276
* @return the type the identity store is used for
269277
*/
270278
ValidationType[] useFor() default {VALIDATE, PROVIDE_GROUPS};
271279

280+
/**
281+
* Allow useFor to be specified as an EL expression.
282+
* If set, overrides any value set with useFor.
283+
*
284+
* @return the useFor EL expression
285+
*/
286+
String useForExpression();
287+
272288
}

0 commit comments

Comments
 (0)