Package org.jboss.seam.annotations.security.permission

Examples of org.jboss.seam.annotations.security.permission.PermissionDiscriminator


               userProperty.setValue(instance, resolvePrincipalEntity(recipient));
            }
                      
            if (discriminatorProperty.isSet())
            {
               PermissionDiscriminator discriminator = discriminatorProperty.getAnnotation();
               discriminatorProperty.setValue(instance, recipientIsRole ? discriminator.roleValue() :
                  discriminator.userValue());
            }
           
            lookupEntityManager().persist(instance);
            return true;
         }
View Full Code Here


      return groupedPermissions;
   }
  
   private String getDiscriminatorValue(boolean isRole)
   {
      PermissionDiscriminator discriminator = discriminatorProperty.getAnnotation();
      return isRole ? discriminator.roleValue() : discriminator.userValue();     
   }
View Full Code Here

            actionProperty.setValue(instance, actionSet.toString());
            userProperty.setValue(instance, resolvePrincipalEntity(recipient));
           
            if (discriminatorProperty.isSet())
            {
               PermissionDiscriminator discriminator = discriminatorProperty.getAnnotation();
               discriminatorProperty.setValue(instance, recipientIsRole ? discriminator.roleValue() :
                  discriminator.userValue());
            }
           
            lookupEntityManager().persist(instance);
            return true;
         }
View Full Code Here

      return groupedPermissions;
   }
  
   private String getDiscriminatorValue(boolean isRole)
   {
      PermissionDiscriminator discriminator = discriminatorProperty.getAnnotation();
      return isRole ? discriminator.roleValue() : discriminator.userValue();     
   }
View Full Code Here

               userProperty.setValue(instance, resolvePrincipalEntity(recipient));
            }
                      
            if (discriminatorProperty.isSet())
            {
               PermissionDiscriminator discriminator = discriminatorProperty.getAnnotation();
               discriminatorProperty.setValue(instance, recipientIsRole ? discriminator.roleValue() :
                  discriminator.userValue());
            }
           
            lookupEntityManager().persist(instance);
            return true;
         }
View Full Code Here

      return groupedPermissions;
   }
  
   private String getDiscriminatorValue(boolean isRole)
   {
      PermissionDiscriminator discriminator = discriminatorProperty.getAnnotation();
      return isRole ? discriminator.roleValue() : discriminator.userValue();     
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.annotations.security.permission.PermissionDiscriminator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.