public class Profile extends GenericService implements MutableRepositoryItem, ProfileRepositoryItem, ApplicationLogging, AdminableService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
Profile()
Constructs an instanceof Profile
|
Modifier and Type | Method and Description |
---|---|
void |
addLogListener(LogListener pListener)
Adds a listener to the list of log listeners
|
protected javax.servlet.Servlet |
createAdminServlet()
Creates and returns a new Servlet that will administer this
service.
|
javax.servlet.Servlet |
getAdminServlet()
Returns the Servlet that will handle admin requests directed at this
service.
|
java.util.Collection<java.lang.String> |
getContextMemberships()
Repository items can be associated with arbitrary contexts.
|
RepositoryItem |
getDataSource()
Returns property DataSource
|
RepositoryItemDescriptor |
getItemDescriptor()
Returns the RepositoryItemDescriptor property, which describes
the known properties for the item
|
java.lang.String |
getItemDisplayName()
The name of this item which can be used in a UI.
|
int |
getLogListenerCount()
Returns the number of log listeners
|
ProfileTools |
getProfileTools()
Returns property ProfileTools
|
java.lang.Object |
getPropertyValue(java.lang.String pPropertyName)
Returns the property of the given name
|
Repository |
getRepository()
Returns the Repository which contains this item
|
java.lang.String |
getRepositoryId()
Returns the unique profile id
|
boolean |
isLoggingDebug()
This method returns whether or not an debug log event should be
broadcast.
|
boolean |
isLoggingError()
This method returns whether or not an error log event should be
broadcast.
|
boolean |
isLoggingInfo()
This method returns whether or not an info log event should be
broadcast.
|
boolean |
isLoggingWarning()
This method returns whether or not an warning log event should be
broadcast.
|
boolean |
isTransient()
Returns true if the profile is backed by
an "anonymous" non-persistent profile
which cannot be reloaded on subsequent
sessions.
|
void |
logDebug(java.lang.String pMessage)
Logs an debug event with the specified message
|
void |
logDebug(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an debug event with the specified message and Throwable
|
void |
logDebug(java.lang.Throwable pThrowable)
Logs an debug event with the specified Throwable
|
void |
logError(java.lang.String pMessage)
Logs an error event with the specified message
|
void |
logError(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an error event with the specified message and Throwable
|
void |
logError(java.lang.Throwable pThrowable)
Logs an error event with the specified Throwable
|
void |
logInfo(java.lang.String pMessage)
Logs an info event with the specified message
|
void |
logInfo(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an info event with the specified message and Throwable
|
void |
logInfo(java.lang.Throwable pThrowable)
Logs an info event with the specified Throwable
|
void |
logWarning(java.lang.String pMessage)
Logs an warning event with the specified message
|
void |
logWarning(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an warning event with the specified message and Throwable
|
void |
logWarning(java.lang.Throwable pThrowable)
Logs an warning event with the specified Throwable
|
void |
removeLogListener(LogListener pListener)
Removes a listener from the list of log listeners
|
void |
sendLogEvent(LogEvent pLogEvent)
Sends a LogEvent to all of the listeners
|
void |
setDataSource(RepositoryItem pDataSource)
Sets property DataSource
|
void |
setDataSourceLocal(RepositoryItem pDataSource)
Sets property DataSource
|
void |
setLoggingDebug(boolean pLogging)
Sets whether or not error log events should be logged.
|
void |
setLoggingError(boolean pLogging)
Sets whether or not error log events should be logged.
|
void |
setLoggingInfo(boolean pLogging)
Sets whether or not info log events should be logged.
|
void |
setLoggingWarning(boolean pLogging)
Sets whether or not warning log events should be logged.
|
void |
setProfileTools(ProfileTools pProfileTools)
Sets property ProfileTools
|
void |
setPropertyValue(java.lang.String pPropertyName,
java.lang.Object pPropertyValue)
Sets the property of the given name, to the specified value
|
java.lang.String |
toString()
Returns the String representation of this profile
|
doStartService, doStopService, getAbsoluteName, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingTrace, isRunning, logTrace, logTrace, logTrace, nameContextElementBound, nameContextElementUnbound, reResolveThis, resolveName, resolveName, resolveName, resolveName, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingTrace, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public boolean isTransient()
isTransient
in interface RepositoryItem
public java.util.Collection<java.lang.String> getContextMemberships() throws RepositoryException
RepositoryItem
getContextMemberships
in interface RepositoryItem
RepositoryException
public void setDataSource(RepositoryItem pDataSource)
public void setDataSourceLocal(RepositoryItem pDataSource)
public RepositoryItem getDataSource()
public void setProfileTools(ProfileTools pProfileTools)
public ProfileTools getProfileTools()
public java.lang.String getRepositoryId()
getRepositoryId
in interface RepositoryItem
public java.lang.String getItemDisplayName()
getItemDisplayName
in interface DisplayableItem
public java.lang.Object getPropertyValue(java.lang.String pPropertyName)
getPropertyValue
in interface RepositoryItem
public void setPropertyValue(java.lang.String pPropertyName, java.lang.Object pPropertyValue)
setPropertyValue
in interface MutableRepositoryItem
public Repository getRepository()
getRepository
in interface RepositoryItem
public RepositoryItemDescriptor getItemDescriptor() throws RepositoryException
getItemDescriptor
in interface RepositoryItem
RepositoryException
public java.lang.String toString()
toString
in class java.lang.Object
public javax.servlet.Servlet getAdminServlet()
getAdminServlet
in interface AdminableService
getAdminServlet
in class GenericService
createAdminServlet()
protected javax.servlet.Servlet createAdminServlet()
createAdminServlet
in class GenericService
public void addLogListener(LogListener pListener)
addLogListener
in interface atg.nucleus.logging.ApplicationLoggingSender
addLogListener
in class GenericService
public void removeLogListener(LogListener pListener)
removeLogListener
in interface atg.nucleus.logging.ApplicationLoggingSender
removeLogListener
in class GenericService
public int getLogListenerCount()
getLogListenerCount
in interface atg.nucleus.logging.ApplicationLoggingSender
getLogListenerCount
in class GenericService
public void sendLogEvent(LogEvent pLogEvent)
sendLogEvent
in class GenericService
public boolean isLoggingInfo()
isLoggingInfo
in interface atg.core.logging.Logging
isLoggingInfo
in interface ApplicationLogging
isLoggingInfo
in class GenericService
public void setLoggingInfo(boolean pLogging)
setLoggingInfo
in interface atg.core.logging.Logging
setLoggingInfo
in interface ApplicationLogging
setLoggingInfo
in class GenericService
public boolean isLoggingWarning()
isLoggingWarning
in interface atg.core.logging.Logging
isLoggingWarning
in interface ApplicationLogging
isLoggingWarning
in class GenericService
public void setLoggingWarning(boolean pLogging)
setLoggingWarning
in interface atg.core.logging.Logging
setLoggingWarning
in interface ApplicationLogging
setLoggingWarning
in class GenericService
public boolean isLoggingError()
isLoggingError
in interface atg.core.logging.Logging
isLoggingError
in interface ApplicationLogging
isLoggingError
in class GenericService
public void setLoggingError(boolean pLogging)
setLoggingError
in interface atg.core.logging.Logging
setLoggingError
in interface ApplicationLogging
setLoggingError
in class GenericService
public boolean isLoggingDebug()
isLoggingDebug
in interface atg.core.logging.Logging
isLoggingDebug
in interface ApplicationLogging
isLoggingDebug
in class GenericService
public void setLoggingDebug(boolean pLogging)
setLoggingDebug
in interface atg.core.logging.Logging
setLoggingDebug
in interface ApplicationLogging
setLoggingDebug
in class GenericService
public void logInfo(java.lang.String pMessage)
logInfo
in interface atg.core.logging.Logging
logInfo
in interface ApplicationLogging
logInfo
in class GenericService
public void logInfo(java.lang.Throwable pThrowable)
logInfo
in interface atg.core.logging.Logging
logInfo
in interface ApplicationLogging
logInfo
in class GenericService
public void logInfo(java.lang.String pMessage, java.lang.Throwable pThrowable)
logInfo
in interface atg.core.logging.Logging
logInfo
in interface ApplicationLogging
logInfo
in class GenericService
public void logWarning(java.lang.String pMessage)
logWarning
in interface atg.core.logging.Logging
logWarning
in interface ApplicationLogging
logWarning
in class GenericService
public void logWarning(java.lang.Throwable pThrowable)
logWarning
in interface atg.core.logging.Logging
logWarning
in interface ApplicationLogging
logWarning
in class GenericService
public void logWarning(java.lang.String pMessage, java.lang.Throwable pThrowable)
logWarning
in interface atg.core.logging.Logging
logWarning
in interface ApplicationLogging
logWarning
in class GenericService
public void logError(java.lang.String pMessage)
logError
in interface atg.core.logging.Logging
logError
in interface ApplicationLogging
logError
in class GenericService
public void logError(java.lang.Throwable pThrowable)
logError
in interface atg.core.logging.Logging
logError
in interface ApplicationLogging
logError
in class GenericService
public void logError(java.lang.String pMessage, java.lang.Throwable pThrowable)
logError
in interface atg.core.logging.Logging
logError
in interface ApplicationLogging
logError
in class GenericService
public void logDebug(java.lang.String pMessage)
logDebug
in interface atg.core.logging.Logging
logDebug
in interface ApplicationLogging
logDebug
in class GenericService
public void logDebug(java.lang.Throwable pThrowable)
logDebug
in interface atg.core.logging.Logging
logDebug
in interface ApplicationLogging
logDebug
in class GenericService
public void logDebug(java.lang.String pMessage, java.lang.Throwable pThrowable)
logDebug
in interface atg.core.logging.Logging
logDebug
in interface ApplicationLogging
logDebug
in class GenericService