Examples of belongsTo()


Examples of com.salas.bb.domain.IFeed.belongsTo()

            URL articleLink = article.getLink();
            if (articleLink != null && articleLink.getHost().equalsIgnoreCase(linkHost)) return false;
        }

        // Check guides
        return targetGuide == null || targetGuide.getID() == -1 || feed.belongsTo(targetGuide);
    }

    /**
     * Sets advanced filtering setup.
     *
 
View Full Code Here

Examples of com.salas.bb.domain.IFeed.belongsTo()

        IFeed feed = controller.createDirectFeed(url, true);
        if (feed != null)
        {
            IGuide selectedGuide = controller.getModel().getSelectedGuide();
            if (!feed.belongsTo(selectedGuide))
            {
                IGuide[] guides = feed.getParentGuides();
                IGuide guide = guides.length > 0 ? guides[0] : null;
                if (guide != null) controller.selectGuide(guide, false);
            }
View Full Code Here

Examples of gkarsql.utilities.GKarGraphElement.belongsTo()

    public void theMousePressed(MouseEvent e){
        dbg("Clicked:"+e.getPoint().getX()+"-"+e.getPoint().getY());
        Iterator it = elements.iterator();
        while(it.hasNext()){
            GKarGraphElement elem = (GKarGraphElement)it.next();
            if(elem.belongsTo(e.getPoint().getX(), e.getPoint().getY())){
                dbg("Clicked: "+elem.getElementName()+" at "+e.getPoint().getX()+"-"+e.getPoint().getY());
                if(elem.getElementType().equalsIgnoreCase("constraint")){
                    gkarDisplayConstraint win = new gkarDisplayConstraint();
                    win.setOracleConnection(oraConn);
                    win.setConstraint(elem.getElementName());
View Full Code Here

Examples of hudson.model.Fingerprint.BuildPtr.belongsTo()

                if (!rangeset.isEmpty()) {
                    n = Math.max(n, rangeset.listNumbersReverse().iterator().next());
                }
            } else {
                BuildPtr o = e.getOriginal();
                if (o!=null && o.belongsTo(that))
                    n = Math.max(n,o.getNumber());
            }
        }

        return n;
View Full Code Here

Examples of hudson.model.Fingerprint.BuildPtr.belongsTo()

                if (!rangeset.isEmpty()) {
                    n = Math.max(n, rangeset.listNumbersReverse().iterator().next());
                }
            } else {
                BuildPtr o = e.getOriginal();
                if (o!=null && o.belongsTo(that))
                    n = Math.max(n,o.getNumber());
            }
        }

        return n;
View Full Code Here

Examples of org.apache.lenya.ac.Identity.belongsTo()

            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

Examples of org.apache.lenya.ac.Identity.belongsTo()

            getLogger().debug("Trying to authorize identity: " + identity);
        }

        boolean authorized;

        if (identity.belongsTo(getAccreditableManager())) {
            authorized = authorizePolicy(identity, request, webappUrl);
        } else {
            getLogger().debug(
                "Identity ["
                    + identity
View Full Code Here

Examples of org.apache.lenya.ac.Identity.belongsTo()

        String webappUrl = ServletHelper.getWebappURI(request);
        Session session = request.getSession(true);
        Identity identity = (Identity) session.getAttribute(Identity.class.getName());

        Role[] roles;
        if (identity.belongsTo(this.accreditableManager)) {
            roles = this.policyManager.getGrantedRoles(this.accreditableManager, identity, webappUrl);
        } else {
            roles = new Role[0];
            getLogger().debug(
                    "No roles resolved for identity [" + identity
View Full Code Here

Examples of org.apache.lenya.ac.Identity.belongsTo()

       
        Identity defaultIdentity = new Identity(getLogger());
        defaultIdentity.addIdentifiable(defaultUser);
       
        assertTrue(testIdentity.belongsTo(testMgr));
        assertTrue(defaultIdentity.belongsTo(defaultMgr));
       
        assertTrue(testIdentity.belongsTo(defaultMgr));
        assertTrue(defaultIdentity.belongsTo(testMgr));
    }
View Full Code Here

Examples of org.apache.lenya.ac.Identity.belongsTo()

       
        assertTrue(testIdentity.belongsTo(testMgr));
        assertTrue(defaultIdentity.belongsTo(defaultMgr));
       
        assertTrue(testIdentity.belongsTo(defaultMgr));
        assertTrue(defaultIdentity.belongsTo(testMgr));
    }

}
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.