Examples of members()


Examples of java.security.acl.Group.members()

                        principal = p;
                    }
                    if (p instanceof Group) {
                        Group g = Group.class.cast(p);
                        if (g.getName().equals("CallerPrincipal") && callerPrincipal == null) {
                            Enumeration<? extends Principal> e = g.members();
                            if (e.hasMoreElements())
                                callerPrincipal = e.nextElement();
                        }
                    }
                }
View Full Code Here

Examples of java.security.acl.Group.members()

                roles.add(principal.getName());
            }
            if ((principal instanceof Group) &&
                    "Roles".equals(principal.getName())) {
                Group grp = (Group) principal;
                Enumeration en = grp.members();
                while (en.hasMoreElements()) {
                    Principal roleP = (Principal) en.nextElement();
                    roles.add(roleP.getName());
                }
            }
View Full Code Here

Examples of org.apache.cocoon.components.repository.PrincipalProvider.members()

                attributes.addAttribute("", NAME_ATTR_NAME, NAME_ATTR_NAME, "CDATA", principalgroups[i].getName());

                this.contentHandler.startElement(PL_NS, PRINCIPALGROUP_ELEMENT_NAME,
                                                        PRINCIPALGROUP_ELEMENT_NAME, attributes);

                Principal[] members = principalprovider.members(this.principalcaller, principalgroups[i]);
                for(int j=0; j<members.length; j++) {
                    attributes = new AttributesImpl();
                    attributes.addAttribute("", NAME_ATTR_NAME, NAME_ATTR_NAME, "CDATA", members[j].getName());
                    if (members[j].getRole()!=null)
                        attributes.addAttribute("", ROLE_ATTR_NAME, ROLE_ATTR_NAME, "CDATA", members[j].getRole());
View Full Code Here

Examples of org.apache.wiki.auth.authorize.Group.members()

    public void testParseGroup() throws WikiSecurityException
    {
        String members = "Biff";
        Group group = m_groupMgr.parseGroup( "Group1", members, true );
        assertEquals( 1, group.members().length );
        assertTrue ( group.isMember( new WikiPrincipal( "Biff" ) ) );

        members = "Biff \n SteveAustin \n FredFlintstone";
        group = m_groupMgr.parseGroup( "Group2", members, true );
        assertEquals( 3, group.members().length );
View Full Code Here

Examples of org.eclipse.core.internal.resources.Container.members()

            // Load all .dsl files from current dir
            IPath p = (packageEditorInput).getFile().getFullPath().removeLastSegments( 1 );

            Container folder = (Container) ResourcesPlugin.getWorkspace().getRoot().findMember( p,                                                                                                false );

            IResource[] files = folder.members( false );

            List dslList = new ArrayList();
            List enumList = new ArrayList();

            for ( int i = 0; i < files.length; i++ ) {
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.members()

      state.setFqPath(resource.getFullPath());
      state.setPath(computeRelativPathFrom(resource, base).makeRelative().toString());   
      if (resource instanceof IContainer) {
        state.setType(FSDesignResourceState.TYPE_FOLDER);
        IContainer container = (IContainer) resource;
        for (IResource child : container.members()) {
          List<LocalFSDesignResourceState> childStates = buildFSDesignResourceStates(child, base);
          states.addAll(childStates);
        }
      } else if (resource instanceof IFile) {
        IFile file = (IFile) resource;
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.members()

    state.setFqPath(resource.getFullPath());   
    state.setPath(new Path(linkName).append(computeRelativPathFrom(resource, linkTarget.getFullPath()).makeRelative()).toString());   
    if (resource instanceof IContainer) {
      state.setType(FSDesignResourceState.TYPE_FOLDER);
      IContainer container = (IContainer) resource;
      for (IResource child : container.members()) {
        List<LocalFSDesignResourceState> childStates = buildDirLinkFSDesignResourceStates(linkTarget, linkName, child);
        states.addAll(childStates);
      }
    } else if (resource instanceof IFile) {
      IFile file = (IFile) resource;
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.members()

    if (!(resource instanceof IContainer)) {
      return null;
    }
    IContainer folder = (IContainer) resource;
    // Only look for META-INF folder at top-level in the given container.
    IResource[] members = folder.members();
    if (members != null) {
      for (IResource mem : members) {
        if (META_FOLDER_NAME.equals(mem.getName())
            && mem instanceof IFolder) {
          return (IFolder) mem;
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.members()

    public boolean buildStructure(final IProgressMonitor pm) throws ErlModelException {
        final IErlModel model = ErlangEngine.getInstance().getModel();
        final IContainer c = (IContainer) getResource();
        try {
            // FIXME this is general stuff -> model or model manager?
            final IResource[] members = c.members();
            for (final IResource resource : members) {
                model.create(resource);
            }
        } catch (final CoreException e) {
            throw new ErlModelException(new ErlModelStatus(
View Full Code Here

Examples of org.eclipse.core.resources.IContainer.members()

        addConfigurationChangeListeners();

        try {
            final IContainer c = (IContainer) r;
            final IResource[] elems = c.members();
            final List<IErlElement> children = new ArrayList<IErlElement>(
                    elems.length + 1);
            // ErlLogger.debug(">>adding externals");
            addExternals(children);
            // ErlLogger.debug("childcount %d", children.size());
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.