/*  Copyright (c) 2000, 2002 by Oracle Corporation. All Rights Reserved. */

package oracle.portal.provider.v1.http; 
import oracle.portal.provider.v1.http.URLSecurityManager; 
import oracle.portal.utils.xml.v1.XMLUtil;

/**
 * <p>URLPortlet is an extension of DefaultPortlet which is customized for
 * PDK-URL Serivce's use. This class contains meta data information which 
 * is used to specify portlet's access control type, and the type of portlet 
 * itself.
 *
 * @see oracle.portal.provider.v1.http.DefaultPortlet
 */
public class URLPortlet extends DefaultPortlet 
{ 
    private boolean mRegistrationPortlet = false;
    private String mAccessControl = "public"; 
    
    /**
     * Get method for accessControl tag
     * @return String value of accessControl tag.
     */
    public String getAccessControl() 
    { 
        return mAccessControl; 
    } 
    
    /**
     * Set method for accessControl tag
     * @param aControl value of accessControl tag.
     */
    public void setAccessControl(String aControl) 
    { 
        mAccessControl = aControl; 
    } 
    
    /**
     * Get method for registrationPortlet tag
     * @return true/false depending on whether is portlet is of
     * registration type of not.
     *
     */
    public boolean getRegistrationPortlet() 
    { 
        return mRegistrationPortlet; 
    } 
    
    /**
     * Set method for registrationPortlet tag
     * @param regPortlet String indicating if the portlet is of registration type of not.
     *
     */
    public void setRegistrationPortlet(String regPortlet) 
    { 
        mRegistrationPortlet = XMLUtil.getBooleanValue(regPortlet); 
    } 
} 