Package java.util

Examples of java.util.ArrayList.addAll()


                roleTags.addAll(Arrays.asList(methods[i].getTagsByName(TagLibrary.EJB_PERMISSION)));
            }

            if (isEntityBean(javaClass)) {
                // get roles from finders
                roleTags.addAll(Arrays.asList(javaClass.getTagsByName(TagLibrary.EJB_FINDER)));

                // and from pk field ( if any )
                roleTags.addAll(Arrays.asList(javaClass.getTagsByName(TagLibrary.EJB_PK)));
            }
View Full Code Here


            if (isEntityBean(javaClass)) {
                // get roles from finders
                roleTags.addAll(Arrays.asList(javaClass.getTagsByName(TagLibrary.EJB_FINDER)));

                // and from pk field ( if any )
                roleTags.addAll(Arrays.asList(javaClass.getTagsByName(TagLibrary.EJB_PK)));
            }

            // and from extra security roles
            roleTags.addAll(Arrays.asList(javaClass.getTagsByName(TagLibrary.EJB_SECURITY_ROLES)));
        }
View Full Code Here

                // and from pk field ( if any )
                roleTags.addAll(Arrays.asList(javaClass.getTagsByName(TagLibrary.EJB_PK)));
            }

            // and from extra security roles
            roleTags.addAll(Arrays.asList(javaClass.getTagsByName(TagLibrary.EJB_SECURITY_ROLES)));
        }

        Collection roles = new TreeSet();

        for (Iterator iter = roleTags.iterator(); iter.hasNext();) {
View Full Code Here

                    "Couldn't resolve role-names for method permission" +
                    (version.greaterOrEquals(EjbVersion.EJB_2_0) ? " or unchecked is false" : ""));
            }

            // Lets expand by permission for interface type
            retLst.addAll(MethodPermission.unroll(permType, permTag.getRoleNames()));
        }

        // Now let's dig into method level ejb.permission tags
        JavaMethod[] methods = javaClass.getMethods();
        JavaMethod method;
View Full Code Here

                        "Couldn't resolve role-names for method permission" +
                        (version.greaterOrEquals(EjbVersion.EJB_2_0) ? " or unchecked is false" : ""));
                }

                // Lets expand by permission for interface type
                retLst.addAll(MethodPermission.unroll(permType, externalizeMethodName(method), permTag.getRoleNames()));
            }
        }

        if (isEntityBean(javaClass)) {
            tags = javaClass.getTagsByName(TagLibrary.EJB_FINDER);
View Full Code Here

                if (canContinue) {
                    // Lets expand by permission for interface type
                    // Method signature should maybe be unrolled by permType, but it's not really relevant
                    // the return type, soo..
                    retLst.addAll(MethodPermission.unroll(permType, getFinderMethodBySignature(finderTag.getSignature()),
                            finderTag.getRoleNames()));
                }
            }

            EjbPkTag pkTag = (EjbPkTag) javaClass.getTagByName(TagLibrary.EJB_PK);
View Full Code Here

                    }

                    // Lets expand by permission for interface type
                    // Method signature should maybe be unrolled by permType, but it's not really relevant
                    // the return type, soo..
                    retLst.addAll(MethodPermission.unroll(permType,
                            getFinderMethodBySignature("void findByPrimaryKey()"), pkTag.getRoleNames()));
                }
            }
        }
View Full Code Here

                    throw getErrorWithTagLocation(transTag,
                        "Couldn't resolve a compatible interface type reference. Maybe bean/view-type/version doesn't support it!");
                }
                // Lets expand by permission for interface type
                // Only one entry should be present
                retLst.addAll(ContainerTransaction.unroll(permType, transTag.getType()));
            } else {
                // No permission was set
                retLst.add(new ContainerTransaction(transTag.getType()));
            }
View Full Code Here

                    throw getErrorWithTagLocation(transTag,
                        "Couldn't resolve a compatible interface type reference. Maybe bean/view-type/version doesn't support it!");
                }

                // Lets expand by permission for interface type
                retLst.addAll(ContainerTransaction.unroll(permType, externalizeMethodName(method), transTag.getType()));
            }
        }

        if (isEntityBean(javaClass)) {
            tags = javaClass.getTagsByName(TagLibrary.EJB_FINDER);
View Full Code Here

                }

                // Lets expand by permission for interface type
                // Method signature should maybe be unrolled by permType, but it's not really relevant
                // the return type, soo..
                retLst.addAll(ContainerTransaction.unroll(permType,
                        getFinderMethodBySignature(finderTag.getSignature()), finderTag.getTransactionType()));
            }
        }

        return retLst;
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.