Examples of Permissions


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

      {
         Map<String,Long> actions = new HashMap<String,Long>();
        
         boolean useMask = false;
        
         Permissions p = (Permissions) cls.getAnnotation(Permissions.class);
         if (p != null)
         {
            org.jboss.seam.annotations.security.permission.Permission[] permissions = p.value();
            if (permissions != null)
            {
               for (org.jboss.seam.annotations.security.permission.Permission permission : permissions)
               {
                  actions.put(permission.action(), permission.mask());
View Full Code Here

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

        if (!classActions.containsKey(cls)) {
            Map<String, Long> actions = new HashMap<String, Long>();

            boolean useMask = false;

            Permissions p = (Permissions) cls.getAnnotation(Permissions.class);
            if (p != null) {
                org.jboss.seam.security.annotations.permission.Permission[] permissions = p.value();
                if (permissions != null) {
                    for (org.jboss.seam.security.annotations.permission.Permission permission : permissions) {
                        actions.put(permission.action(), permission.mask());

                        if (permission.mask() != 0) {
View Full Code Here

Examples of org.jitterbit.integration.data.access.Permissions

     * @return a Permissions instance containing the defined permissions, or <tt>null</tt> if this
     *         panel is disabled.
     */
    public Permissions getPermissions() {
        if (allowFullAccessCheck.isSelected()) {
            return new Permissions(FULL_CONTROL, null);
        }
        if (denyFullAccessCheck.isSelected()) {
            return new Permissions(null, FULL_CONTROL);
        }
        EnumSet<Permission> allow = EnumSet.noneOf(Permission.class);
        EnumSet<Permission> deny = EnumSet.noneOf(Permission.class);
        for (PermissionCheckBoxes cb : permissionChecks) {
            cb.apply(allow, deny);
        }
        return new Permissions(allow, deny);
    }
View Full Code Here

Examples of tigase.server.Permissions

    } // end of else
  }

  private void setPermissions(XMPPResourceConnection conn,
    Queue<Packet> results) {
    Permissions perms = Permissions.NONE;
    if (conn != null) {
      perms = Permissions.LOCAL;
      if (conn.isAuthorized()) {
        perms = Permissions.AUTH;
        if (conn.isAnonymous()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.