[seam-commits] Seam SVN: r7804 - in trunk/src/main/org/jboss/seam/annotations/security: management and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Apr 3 03:20:56 EDT 2008


Author: shane.bryzak at 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
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at 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
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at 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
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at 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
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at 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
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at 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
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at 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
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at 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
+ */
+ at Target({METHOD,FIELD})
+ at Documented
+ at Retention(RUNTIME)
+ at Inherited
+public @interface UserRoles
+{
+
+}




More information about the seam-commits mailing list