Examples of BaseSecurityReference


Examples of org.apache.jetspeed.om.BaseSecurityReference

        portletEntry.setHidden(isHidden);
        //portletEntry.

        if (newSecurityParent != null && newSecurityParent.length() > 0)
        {
            SecurityReference securityRef = new BaseSecurityReference();
            securityRef.setParent(newSecurityParent);
            portletEntry.setSecurityRef(securityRef);
        }

        if (newSecurityRole != null && newSecurityRole.length() > 0)
        {
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

            if (securityChanged == true)
            {
                SecurityReference securityRef = null;
                if ((newSecurityParent.trim().length() > 0))
                {
                    securityRef = new BaseSecurityReference();
                    securityRef.setParent(newSecurityParent);
                }
                // Note: setting the portlet's config may not be a good idea -
                // it might be used as the Portlet for other PSMLDocument Entries that
                // have a different idea of security - and the caching of Portlets does
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

        if (hasChanged(securityParent, securityRef))
        {
            if (security == null)
            {
                security = new BaseSecurityReference();
            }
            security.setParent(securityRef);
            registryEntry.setSecurityRef(security);
        }
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

                        parameter.setSecurity(paramSecurity);
                    }

                    if (securityRef != null && securityRef.length() > 0)
                    {
                        BaseSecurityReference paramSecurityRef =
                            new BaseSecurityReference();
                        paramSecurityRef.setParent(securityRef);
                        parameter.setSecurityRef(paramSecurityRef);
                    }

                    regEntry.addParameter(parameter);
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

                        parameter.setTitle(title);
                        parameter.setType(type);

                        if (securityRef != null && securityRef.length() > 0)
                        {
                            BaseSecurityReference paramSecurityRef =
                                new BaseSecurityReference();
                            paramSecurityRef.setParent(securityRef);
                            parameter.setSecurityRef(paramSecurityRef);
                        }
                    }

                    Registry.addEntry(registry, regEntry);
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

            if (securityChanged == true)
            {
                SecurityReference securityRef = null;
                if ((newSecurityParent.trim().length() > 0))
                {
                    securityRef = new BaseSecurityReference();
                    securityRef.setParent( newSecurityParent);
                }
                // Note: setting the portlet's config may not be a good idea -
                // it might be used as the Portlet for other PSMLDocument Entries that
                // have a different idea of security - and the caching of Portlets does
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

        SecurityAllow allow = (SecurityAllow) it1.next();
        System.out.println("Allow group: " + allow.getGroup() + ", role: " + allow.getRole() + ", user: " + allow.getUser());       
      }
    }   
   
    SecurityReference secRef = new BaseSecurityReference();
    secRef.setParent("powerusers_all-anon_view");
    Entry adminEntry = createEntry(ADMIN_PORTLET, "ST_01.apache.admin", secRef);
       
    JetspeedUser turbineUser = (JetspeedUser) JetspeedSecurity.getUser("turbine");
    assertNotNull( "Getting turbine user", turbineUser);
    turbineUser.setHasLoggedIn(Boolean.TRUE);
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

     * @param type of entity to return default security ref for
     * @return default security reference
     */
    public SecurityReference getDefaultSecurityRef(String type)
    {
        BaseSecurityReference result = null;

        SecurityEntry entry = null;

        String defaultRef = null;
        if (type.equals(Profiler.PARAM_USER))
        {
            defaultRef = this.defaultUserSecurityRef;
        }
        else if (type.equals(Profiler.PARAM_ANON))
        {
            defaultRef = this.defaultAnonSecurityRef;
        }
        else if (type.equals(Profiler.PARAM_ROLE))
        {
            defaultRef = this.defaultRoleSecurityRef;
        }
        else if (type.equals(Profiler.PARAM_GROUP))
        {
            defaultRef = this.defaultGroupSecurityRef;
        }

        if (defaultRef != null)
        {
            entry = (SecurityEntry) Registry.getEntry(Registry.SECURITY, defaultRef);
            if (logger.isDebugEnabled())
            {
                logger.debug(
                    "JetspeedPortalToolkit: default security for type: " + type + " is " + defaultRef);
            }
            if (entry != null)
            {
                result = new BaseSecurityReference();
                result.setParent(entry.getName());
                if (logger.isDebugEnabled())
                {
                    logger.debug(
                        "JetspeedPortalToolkit: default security for type: "
                            + type
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

            Profile profile = ((JetspeedRunData) rundata).getCustomizedProfile();
            Portlets portlets = profile.getDocument().getPortletsById(set.getID());

            if ((securityRefName != null) && (securityRefName.trim().length() > 0))
            {
                securityRef = new BaseSecurityReference();
                securityRef.setParent(securityRefName);
            }
            set.getPortletConfig().setSecurityRef(securityRef);
            portlets.setSecurityRef(securityRef);
        }
View Full Code Here

Examples of org.apache.jetspeed.om.BaseSecurityReference

                    row.getValue(offset + 12).asString());
            obj.setMetaInfo(baseMetaInfo);
            String securityRef = row.getValue(offset + 13).asString();
            if ((securityRef != null) || ("".equals(securityRef)))
            {
                BaseSecurityReference paramSecurityRef =
                    new BaseSecurityReference();
                paramSecurityRef.setParent(securityRef);
                obj.setSecurityRef(paramSecurityRef);
            }
            buildPortletCategory(id, obj);
            buildPortletMedia(id, obj);
            buildPortletParameters(id, obj);
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.