Author: shane.bryzak(a)jboss.com
Date: 2008-04-03 03:20:56 -0400 (Thu, 03 Apr 2008)
New Revision: 7804
Added:
trunk/src/main/org/jboss/seam/annotations/security/management/
trunk/src/main/org/jboss/seam/annotations/security/management/RoleGroups.java
trunk/src/main/org/jboss/seam/annotations/security/management/RoleName.java
trunk/src/main/org/jboss/seam/annotations/security/management/UserEnabled.java
trunk/src/main/org/jboss/seam/annotations/security/management/UserFirstName.java
trunk/src/main/org/jboss/seam/annotations/security/management/UserLastName.java
trunk/src/main/org/jboss/seam/annotations/security/management/UserPassword.java
trunk/src/main/org/jboss/seam/annotations/security/management/UserPrincipal.java
trunk/src/main/org/jboss/seam/annotations/security/management/UserRoles.java
Log:
annotations for identity-management entities
Added: trunk/src/main/org/jboss/seam/annotations/security/management/RoleGroups.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/management/RoleGroups.java
(rev 0)
+++
trunk/src/main/org/jboss/seam/annotations/security/management/RoleGroups.java 2008-04-03
07:20:56 UTC (rev 7804)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security.management;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the group memberships for a role
+ *
+ * @author Shane Bryzak
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface RoleGroups
+{
+
+}
Added: trunk/src/main/org/jboss/seam/annotations/security/management/RoleName.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/management/RoleName.java
(rev 0)
+++ trunk/src/main/org/jboss/seam/annotations/security/management/RoleName.java 2008-04-03
07:20:56 UTC (rev 7804)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security.management;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the name of a role
+ *
+ * @author Shane Bryzak
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface RoleName
+{
+
+}
Added: trunk/src/main/org/jboss/seam/annotations/security/management/UserEnabled.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/management/UserEnabled.java
(rev 0)
+++
trunk/src/main/org/jboss/seam/annotations/security/management/UserEnabled.java 2008-04-03
07:20:56 UTC (rev 7804)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security.management;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the enabled status of a user
+ *
+ * @author Shane Bryzak
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface UserEnabled
+{
+
+}
Added: trunk/src/main/org/jboss/seam/annotations/security/management/UserFirstName.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/management/UserFirstName.java
(rev 0)
+++
trunk/src/main/org/jboss/seam/annotations/security/management/UserFirstName.java 2008-04-03
07:20:56 UTC (rev 7804)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security.management;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the first name of a user
+ *
+ * @author Shane Bryzak
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface UserFirstName
+{
+
+}
Added: trunk/src/main/org/jboss/seam/annotations/security/management/UserLastName.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/management/UserLastName.java
(rev 0)
+++
trunk/src/main/org/jboss/seam/annotations/security/management/UserLastName.java 2008-04-03
07:20:56 UTC (rev 7804)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security.management;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the last name of a user
+ *
+ * @author Shane Bryzak
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface UserLastName
+{
+
+}
Added: trunk/src/main/org/jboss/seam/annotations/security/management/UserPassword.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/management/UserPassword.java
(rev 0)
+++
trunk/src/main/org/jboss/seam/annotations/security/management/UserPassword.java 2008-04-03
07:20:56 UTC (rev 7804)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security.management;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the password for a user
+ *
+ * @author Shane Bryzak
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface UserPassword
+{
+ String hash() default "";
+}
Added: trunk/src/main/org/jboss/seam/annotations/security/management/UserPrincipal.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/management/UserPrincipal.java
(rev 0)
+++
trunk/src/main/org/jboss/seam/annotations/security/management/UserPrincipal.java 2008-04-03
07:20:56 UTC (rev 7804)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security.management;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the principal (username) for a user
+ *
+ * @author Shane Bryzak
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface UserPrincipal
+{
+
+}
Added: trunk/src/main/org/jboss/seam/annotations/security/management/UserRoles.java
===================================================================
--- trunk/src/main/org/jboss/seam/annotations/security/management/UserRoles.java
(rev 0)
+++
trunk/src/main/org/jboss/seam/annotations/security/management/UserRoles.java 2008-04-03
07:20:56 UTC (rev 7804)
@@ -0,0 +1,24 @@
+package org.jboss.seam.annotations.security.management;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Flags an entity field or method as representing the list of role memberships for a
user
+ *
+ * @author Shane Bryzak
+ */
+@Target({METHOD,FIELD})
+@Documented
+@Retention(RUNTIME)
+@Inherited
+public @interface UserRoles
+{
+
+}
Show replies by date