public class RepositoryItemSlot extends Slot implements atg.targeting.RepositoryTargeter, atg.scenario.targeting.SlotConstants, java.io.Serializable
Slot.SlotEntry
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
ACTIVE_GENERATION, DEFAULT_PRIORITY, DESTRUCTIVE_RETRIEVAL, PASSIVE_GENERATION, PRIORITY_RANDOM_ORDERING, PRIORITY_SEQUENTIAL_ORDERING, ROTATING_RETRIEVAL, STATIC_RETRIEVAL
SERVICE_INFO_KEY
MY_RESOURCE_NAME, PROFILE_SLOT_TYPE, PROPERTY_ID, PROPERTY_SLOT_ITEMS, PROPERTY_SLOT_NAME, PROPERTY_SLOT_OFFSET, PROPERTY_SLOT_PRIORITIES, PROPERTY_SLOT_PROFILE
NO_MAX_NUMBER, NO_START_INDEX
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
RepositoryItemSlot() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object pItem)
Add an item to this slot with a default priority.
|
void |
add(java.lang.Object pItem,
int pPriority)
Add an item to this slot.
|
void |
addAll(java.util.Collection pItems)
Add multiple items to this slot with a default priority.
|
void |
addAll(java.util.Collection pItems,
int pPriority)
Add an item to this slot.
|
void |
clear()
Clear all items from the slot.
|
void |
doStartService()
This is called after a Service has been created, placed into the
naming hierarchy, and initialized with its configured property
values.
|
java.lang.String |
getItemDescriptorName() |
boolean |
getPersistent()
Returns flag indicating if this RepositoryItemSlot is persistent or not.
|
protected java.lang.Object[] |
getRange(int pStartIndex,
int pMaxNumber)
Return a list of objects to be rendered.
|
Repository |
getRepository() |
java.lang.String |
getRepositoryName() |
java.lang.String |
getRepositoryPath() |
atg.repository.nucleus.RepositoryRegistryService |
getRepositoryRegistryService()
Returns property RepositoryRegistryService
|
RepositoryView |
getRepositoryView() |
javax.transaction.TransactionManager |
getTransactionManager()
Returns the TransactionManager used to persist RepositoryItemSlots.
|
java.lang.Class |
getValueType()
Returns the type of values contained by the slot - namely, the
RepositoryItem class.
|
void |
initSlotFromRepositoryItem(RepositoryItem pItem)
Initialize this persistent RepositoryItemSlot from the RepositoryItem
of type 'profileSlot' contained in the profile Repository.
|
protected boolean |
isProfileRealmsEnabled()
test to see if profile realms are enabled
|
void |
remove(java.lang.Object pItem)
Remove an item from this slot.
|
void |
removeAll(java.util.Collection pItems)
Remove a collection of items from this slot.
|
void |
setItemDescriptorName(java.lang.String pItemDescriptorName)
Set the name of the item descriptor from which to select items
|
void |
setPersistent(boolean pPersistent)
Set the flag indicating whether or not to store this component
in the Repository.
|
void |
setRepositoryName(java.lang.String pRepositoryName)
Set the repository name from which to select items
|
void |
setRepositoryPath(java.lang.String pRepositoryPath)
Set the nucleus path of the repository from which to select items
|
void |
setRepositoryRegistryService(atg.repository.nucleus.RepositoryRegistryService pRepositoryRegistryService)
Sets property RepositoryRegistryService
|
void |
setTransactionManager(javax.transaction.TransactionManager pTM)
Set the TransactionManager member variable used to persist
RepositoryItemSlots.
|
void |
updateSlotProfile()
Updates the Profile which owns this slot.
|
getAllowDuplicates, getCurrentItems, getEntryCount, getGeneration, getMaxRenderSize, getMessageSourcePath, getOrdering, getRetrieval, setAllowDuplicates, setGeneration, setMaxRenderSize, setMessageSourcePath, setOrdering, setRetrieval, setValueType, sortItems, target, target, target, toString, trimConsumedItems
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, 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
public void doStartService()
GenericService
doStartService
in class GenericService
public Repository getRepository()
getRepository
in interface atg.targeting.RepositoryTargeter
public RepositoryView getRepositoryView()
getRepositoryView
in interface atg.targeting.RepositoryTargeter
public void setRepositoryRegistryService(atg.repository.nucleus.RepositoryRegistryService pRepositoryRegistryService)
public atg.repository.nucleus.RepositoryRegistryService getRepositoryRegistryService()
public void setRepositoryName(java.lang.String pRepositoryName)
public java.lang.String getRepositoryName()
public void setRepositoryPath(java.lang.String pRepositoryPath)
public java.lang.String getRepositoryPath()
public void setItemDescriptorName(java.lang.String pItemDescriptorName)
public java.lang.String getItemDescriptorName()
public void setPersistent(boolean pPersistent)
public boolean getPersistent()
public void setTransactionManager(javax.transaction.TransactionManager pTM)
TransactionManager
public javax.transaction.TransactionManager getTransactionManager()
TransactionManager
public java.lang.Class getValueType()
getValueType
in class Slot
public void add(java.lang.Object pItem)
public void add(java.lang.Object pItem, int pPriority)
public void addAll(java.util.Collection pItems)
public void addAll(java.util.Collection pItems, int pPriority)
public void remove(java.lang.Object pItem)
public void removeAll(java.util.Collection pItems)
public void clear()
protected java.lang.Object[] getRange(int pStartIndex, int pMaxNumber)
public void initSlotFromRepositoryItem(RepositoryItem pItem)
pItems
- the item used to initialize this RepositoryItemSlot.public void updateSlotProfile()
protected boolean isProfileRealmsEnabled()