|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.scenario.targeting.Slot
atg.scenario.targeting.RepositoryItemSlot
public class RepositoryItemSlot
A RepositoryItemSlot is a Slot which contains only entries for RepositoryItems, and which declares the repository name and item type of the items that it can contain.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class atg.scenario.targeting.Slot |
|---|
Slot.SlotEntry |
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
|
| Fields inherited from class atg.scenario.targeting.Slot |
|---|
ACTIVE_GENERATION, DEFAULT_PRIORITY, DESTRUCTIVE_RETRIEVAL, PASSIVE_GENERATION, PRIORITY_RANDOM_ORDERING, PRIORITY_SEQUENTIAL_ORDERING, ROTATING_RETRIEVAL, STATIC_RETRIEVAL |
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| Fields inherited from interface atg.scenario.targeting.SlotConstants |
|---|
MY_RESOURCE_NAME, PROFILE_SLOT_TYPE, PROPERTY_ID, PROPERTY_SLOT_ITEMS, PROPERTY_SLOT_NAME, PROPERTY_SLOT_OFFSET, PROPERTY_SLOT_PRIORITIES, PROPERTY_SLOT_PROFILE |
| Fields inherited from interface atg.targeting.Targeter |
|---|
NO_MAX_NUMBER, NO_START_INDEX |
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
|---|
DEFAULT_LOG_TRACE_STATUS |
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
| Constructor Summary | |
|---|---|
RepositoryItemSlot()
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class atg.scenario.targeting.Slot |
|---|
getAllowDuplicates, getCurrentItems, getEntryCount, getGeneration, getMaxRenderSize, getMessageSourcePath, getOrdering, getRetrieval, setAllowDuplicates, setGeneration, setMaxRenderSize, setMessageSourcePath, setOrdering, setRetrieval, setValueType, sortItems, target, target, target, toString, trimConsumedItems |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public RepositoryItemSlot()
| Method Detail |
|---|
public void doStartService()
GenericService
doStartService in class GenericServicepublic Repository getRepository()
getRepository in interface atg.targeting.RepositoryTargeterpublic RepositoryView getRepositoryView()
getRepositoryView in interface atg.targeting.RepositoryTargeterpublic 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)
TransactionManagerpublic javax.transaction.TransactionManager getTransactionManager()
TransactionManagerpublic java.lang.Class getValueType()
getValueType in class Slotpublic void add(java.lang.Object pItem)
add in class SlotpItem - the item to be added.
public void add(java.lang.Object pItem,
int pPriority)
add in class SlotpItem - the item to be added.pPriority - a relative priority used to order the items for renderingpublic void addAll(java.util.Collection pItems)
addAll in class SlotpItems - the collection of items to be added.
public void addAll(java.util.Collection pItems,
int pPriority)
addAll in class SlotpItems - the items to be added.pPriority - a relative priority used to order the items for renderingpublic void remove(java.lang.Object pItem)
remove in class SlotpItem - the item to be removed.public void removeAll(java.util.Collection pItems)
removeAll in class SlotpItems - the items to be removed.public void clear()
clear in class Slot
protected java.lang.Object[] getRange(int pStartIndex,
int pMaxNumber)
getRange in class SlotpStartIndex - the starting index of the renderingpMaxNumber - the maximum number of objects to render
public void initSlotFromRepositoryItem(RepositoryItem pItem)
pItems - the item used to initialize this RepositoryItemSlot.public void updateSlotProfile()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||