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

package oracle.portal.provider.v2;

import oracle.webdb.utils.BaseRealm;

/**
 * Represents the realm of a user for a hosted portal. 
 * 
 * <p>When a provider is registered, the registration may be
 * within a virtual portal operated by a hosting service.
 * Organizations that subscribe to a hosted portal are known
 * as subscribers and each subscriber has it's own user realm to hold
 * the user community. 
 *
 * <p>Note: This class ultimately implements oracle.security.jazn.realm.Realm
 * to allow future integration with other J2EE frameworks.
 */
public class PortalRealm extends BaseRealm
{
    private String mRealmName;

    /**
     * constructor
     */
    public PortalRealm(String name) 
    {
        setName(name);
    }


    /**
     *  Gets the name of the realm for a user. Usually this is the
     *  name of a company or organization.
     *  @return name of the realm
     */
    public String getName()
    {
        return mRealmName;
    }

    /**
     * sets the name of the Realm
     */
    public void setName(String name)
    {
        mRealmName = name;
    }

}

