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 |
---|---|
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.
|
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 |
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,
java.lang.Throwable pThrowable)
Logs an debug event with the specified message and Throwable
|
void |
logError(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an error event with the specified message and Throwable
|
void |
logInfo(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an info event with the specified message and Throwable
|
void |
logWarning(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Logs an warning event with the specified message and Throwable
|
void |
setDataSource(RepositoryItem pDataSource)
Sets property DataSource
|
void |
setDataSourceLocal(RepositoryItem pDataSource)
Sets property DataSource
|
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
|
addLogListener, doStartService, doStopService, getAbsoluteName, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logError, logError, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingWarning, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingWarning
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 GenericService
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 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, 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, 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, java.lang.Throwable pThrowable)
logDebug
in interface atg.core.logging.Logging
logDebug
in interface ApplicationLogging
logDebug
in class GenericService