Package com.netscape.cms.profile.common
Class ProfileOutput
- java.lang.Object
-
- com.netscape.cms.profile.common.ProfileOutput
-
- All Implemented Interfaces:
com.netscape.certsrv.property.IConfigTemplate
- Direct Known Subclasses:
EnrollOutput
public abstract class ProfileOutput extends java.lang.Object implements com.netscape.certsrv.property.IConfigTemplate
This interface represents a output policy which provides information on how to build the result page for the enrollment.- Version:
- $Revision$, $Date$
-
-
Constructor Summary
Constructors Constructor Description ProfileOutput()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract IConfigStore
getConfigStore()
Retrieves configuration store.abstract java.lang.String
getName(java.util.Locale locale)
Retrieves the localizable name of this policy.abstract java.lang.String
getText(java.util.Locale locale)
Retrieves the localizable description of this policy.abstract java.lang.String
getValue(java.lang.String name, java.util.Locale locale, com.netscape.certsrv.request.IRequest request)
Retrieves the value of the given value parameter by name.abstract com.netscape.certsrv.property.IDescriptor
getValueDescriptor(java.util.Locale locale, java.lang.String name)
Retrieves the descriptor of the given value parameter by name.abstract java.util.Enumeration<java.lang.String>
getValueNames()
Retrieves a list of names of the value parameter.abstract void
init(IConfigStore config)
Initializes this default policy.abstract void
populate(java.util.Map<java.lang.String,java.lang.String> ctx, com.netscape.certsrv.request.IRequest request)
Populates the request with this policy default.abstract void
setValue(java.lang.String name, java.util.Locale locale, com.netscape.certsrv.request.IRequest request, java.lang.String value)
Sets the value of the given value parameter by name.
-
-
-
Method Detail
-
init
public abstract void init(IConfigStore config) throws com.netscape.certsrv.profile.EProfileException
Initializes this default policy.- Parameters:
config
- configuration store- Throws:
com.netscape.certsrv.profile.EProfileException
- failed to initialize
-
getConfigStore
public abstract IConfigStore getConfigStore()
Retrieves configuration store.- Returns:
- configuration store
-
populate
public abstract void populate(java.util.Map<java.lang.String,java.lang.String> ctx, com.netscape.certsrv.request.IRequest request) throws com.netscape.certsrv.profile.EProfileException
Populates the request with this policy default.- Parameters:
ctx
- profile contextrequest
- request- Throws:
com.netscape.certsrv.profile.EProfileException
- failed to populate
-
getName
public abstract java.lang.String getName(java.util.Locale locale)
Retrieves the localizable name of this policy.- Parameters:
locale
- user locale- Returns:
- output policy name
-
getText
public abstract java.lang.String getText(java.util.Locale locale)
Retrieves the localizable description of this policy.- Parameters:
locale
- user locale- Returns:
- output policy description
-
getValueNames
public abstract java.util.Enumeration<java.lang.String> getValueNames()
Retrieves a list of names of the value parameter.- Returns:
- a list of property names
-
getValueDescriptor
public abstract com.netscape.certsrv.property.IDescriptor getValueDescriptor(java.util.Locale locale, java.lang.String name)
Retrieves the descriptor of the given value parameter by name.- Parameters:
locale
- user localename
- property name- Returns:
- property descriptor
-
getValue
public abstract java.lang.String getValue(java.lang.String name, java.util.Locale locale, com.netscape.certsrv.request.IRequest request) throws com.netscape.certsrv.profile.EProfileException
Retrieves the value of the given value parameter by name.- Parameters:
name
- property namelocale
- user localerequest
- request- Returns:
- property value
- Throws:
com.netscape.certsrv.profile.EProfileException
- failed to retrieve value
-
setValue
public abstract void setValue(java.lang.String name, java.util.Locale locale, com.netscape.certsrv.request.IRequest request, java.lang.String value) throws com.netscape.certsrv.property.EPropertyException
Sets the value of the given value parameter by name.- Parameters:
name
- property namelocale
- user localerequest
- requestvalue
- property value- Throws:
com.netscape.certsrv.property.EPropertyException
-
-