public abstract class GeneratedCatalog extends GenericItem
Catalog.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVECATALOGVERSION
Qualifier of the
Catalog.activeCatalogVersion attribute |
static String |
BUYER
Qualifier of the
Catalog.buyer attribute |
protected static BidirectionalOneToManyHandler<GeneratedCatalog> |
BUYERHANDLER
BidirectionalOneToManyHandler for handling 1:n BUYER's relation attributes from 'one' side. |
static String |
CATALOGVERSIONS
Qualifier of the
Catalog.catalogVersions attribute |
protected static OneToManyHandler<CatalogVersion> |
CATALOGVERSIONSHANDLER
OneToManyHandler for handling 1:n CATALOGVERSIONS's relation attributes from 'many' side. |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DEFAULTCATALOG
Qualifier of the
Catalog.defaultCatalog attribute |
static String |
ID
Qualifier of the
Catalog.id attribute |
static String |
NAME
Qualifier of the
Catalog.name attribute |
static String |
PREVIEWURLTEMPLATE
Qualifier of the
Catalog.previewURLTemplate attribute |
static String |
SUPPLIER
Qualifier of the
Catalog.supplier attribute |
protected static BidirectionalOneToManyHandler<GeneratedCatalog> |
SUPPLIERHANDLER
BidirectionalOneToManyHandler for handling 1:n SUPPLIER's relation attributes from 'one' side. |
static String |
URLPATTERNS
Qualifier of the
Catalog.urlPatterns attribute |
LANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
GeneratedCatalog() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCatalogVersions(CatalogVersion value)
Generated method - Adds
value to catalogVersions. |
void |
addToCatalogVersions(SessionContext ctx,
CatalogVersion value)
Generated method - Adds
value to catalogVersions. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
CatalogVersion |
getActiveCatalogVersion()
Generated method - Getter of the
Catalog.activeCatalogVersion attribute. |
CatalogVersion |
getActiveCatalogVersion(SessionContext ctx)
Generated method - Getter of the
Catalog.activeCatalogVersion attribute. |
Map<Language,String> |
getAllName()
Generated method - Getter of the
Catalog.name attribute. |
Map<Language,String> |
getAllName(SessionContext ctx)
Generated method - Getter of the
Catalog.name attribute. |
Company |
getBuyer()
Generated method - Getter of the
Catalog.buyer attribute. |
Company |
getBuyer(SessionContext ctx)
Generated method - Getter of the
Catalog.buyer attribute. |
Set<CatalogVersion> |
getCatalogVersions()
Generated method - Getter of the
Catalog.catalogVersions attribute. |
Set<CatalogVersion> |
getCatalogVersions(SessionContext ctx)
Generated method - Getter of the
Catalog.catalogVersions attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getId()
Generated method - Getter of the
Catalog.id attribute. |
String |
getId(SessionContext ctx)
Generated method - Getter of the
Catalog.id attribute. |
String |
getName()
Generated method - Getter of the
Catalog.name attribute. |
String |
getName(SessionContext ctx)
Generated method - Getter of the
Catalog.name attribute. |
String |
getPreviewURLTemplate()
Generated method - Getter of the
Catalog.previewURLTemplate attribute. |
String |
getPreviewURLTemplate(SessionContext ctx)
Generated method - Getter of the
Catalog.previewURLTemplate attribute. |
Company |
getSupplier()
Generated method - Getter of the
Catalog.supplier attribute. |
Company |
getSupplier(SessionContext ctx)
Generated method - Getter of the
Catalog.supplier attribute. |
Collection<String> |
getUrlPatterns()
Generated method - Getter of the
Catalog.urlPatterns attribute. |
Collection<String> |
getUrlPatterns(SessionContext ctx)
Generated method - Getter of the
Catalog.urlPatterns attribute. |
Boolean |
isDefaultCatalog()
Generated method - Getter of the
Catalog.defaultCatalog attribute. |
Boolean |
isDefaultCatalog(SessionContext ctx)
Generated method - Getter of the
Catalog.defaultCatalog attribute. |
boolean |
isDefaultCatalogAsPrimitive()
Generated method - Getter of the
Catalog.defaultCatalog attribute. |
boolean |
isDefaultCatalogAsPrimitive(SessionContext ctx)
Generated method - Getter of the
Catalog.defaultCatalog attribute. |
void |
removeFromCatalogVersions(CatalogVersion value)
Generated method - Removes
value from catalogVersions. |
void |
removeFromCatalogVersions(SessionContext ctx,
CatalogVersion value)
Generated method - Removes
value from catalogVersions. |
void |
setActiveCatalogVersion(CatalogVersion value)
Generated method - Setter of the
Catalog.activeCatalogVersion attribute. |
void |
setActiveCatalogVersion(SessionContext ctx,
CatalogVersion value)
Generated method - Setter of the
Catalog.activeCatalogVersion attribute. |
void |
setAllName(Map<Language,String> value)
Generated method - Setter of the
Catalog.name attribute. |
void |
setAllName(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
Catalog.name attribute. |
void |
setBuyer(Company value)
Generated method - Setter of the
Catalog.buyer attribute. |
void |
setBuyer(SessionContext ctx,
Company value)
Generated method - Setter of the
Catalog.buyer attribute. |
void |
setCatalogVersions(SessionContext ctx,
Set<CatalogVersion> value)
Generated method - Setter of the
Catalog.catalogVersions attribute. |
void |
setCatalogVersions(Set<CatalogVersion> value)
Generated method - Setter of the
Catalog.catalogVersions attribute. |
void |
setDefaultCatalog(boolean value)
Generated method - Setter of the
Catalog.defaultCatalog attribute. |
void |
setDefaultCatalog(Boolean value)
Generated method - Setter of the
Catalog.defaultCatalog attribute. |
void |
setDefaultCatalog(SessionContext ctx,
boolean value)
Generated method - Setter of the
Catalog.defaultCatalog attribute. |
void |
setDefaultCatalog(SessionContext ctx,
Boolean value)
Generated method - Setter of the
Catalog.defaultCatalog attribute. |
void |
setId(SessionContext ctx,
String value)
Generated method - Setter of the
Catalog.id attribute. |
void |
setId(String value)
Generated method - Setter of the
Catalog.id attribute. |
void |
setName(SessionContext ctx,
String value)
Generated method - Setter of the
Catalog.name attribute. |
void |
setName(String value)
Generated method - Setter of the
Catalog.name attribute. |
void |
setPreviewURLTemplate(SessionContext ctx,
String value)
Generated method - Setter of the
Catalog.previewURLTemplate attribute. |
void |
setPreviewURLTemplate(String value)
Generated method - Setter of the
Catalog.previewURLTemplate attribute. |
void |
setSupplier(Company value)
Generated method - Setter of the
Catalog.supplier attribute. |
void |
setSupplier(SessionContext ctx,
Company value)
Generated method - Setter of the
Catalog.supplier attribute. |
void |
setUrlPatterns(Collection<String> value)
Generated method - Setter of the
Catalog.urlPatterns attribute. |
void |
setUrlPatterns(SessionContext ctx,
Collection<String> value)
Generated method - Setter of the
Catalog.urlPatterns attribute. |
getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacegetImplementation, setTenantpublic static final String ID
Catalog.id attributepublic static final String NAME
Catalog.name attributepublic static final String ACTIVECATALOGVERSION
Catalog.activeCatalogVersion attributepublic static final String DEFAULTCATALOG
Catalog.defaultCatalog attributepublic static final String PREVIEWURLTEMPLATE
Catalog.previewURLTemplate attributepublic static final String URLPATTERNS
Catalog.urlPatterns attributepublic static final String CATALOGVERSIONS
Catalog.catalogVersions attributepublic static final String SUPPLIER
Catalog.supplier attributepublic static final String BUYER
Catalog.buyer attributeprotected static final OneToManyHandler<CatalogVersion> CATALOGVERSIONSHANDLER
OneToManyHandler for handling 1:n CATALOGVERSIONS's relation attributes from 'many' side.protected static final BidirectionalOneToManyHandler<GeneratedCatalog> SUPPLIERHANDLER
BidirectionalOneToManyHandler for handling 1:n SUPPLIER's relation attributes from 'one' side.protected static final BidirectionalOneToManyHandler<GeneratedCatalog> BUYERHANDLER
BidirectionalOneToManyHandler for handling 1:n BUYER's relation attributes from 'one' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic CatalogVersion getActiveCatalogVersion(SessionContext ctx)
Catalog.activeCatalogVersion attribute.public CatalogVersion getActiveCatalogVersion()
Catalog.activeCatalogVersion attribute.public void setActiveCatalogVersion(SessionContext ctx, CatalogVersion value)
Catalog.activeCatalogVersion attribute.value - the activeCatalogVersion - active CatalogVersionpublic void setActiveCatalogVersion(CatalogVersion value)
Catalog.activeCatalogVersion attribute.value - the activeCatalogVersion - active CatalogVersionpublic Company getBuyer(SessionContext ctx)
Catalog.buyer attribute.public Company getBuyer()
Catalog.buyer attribute.public void setBuyer(SessionContext ctx, Company value)
Catalog.buyer attribute.value - the buyerpublic void setBuyer(Company value)
Catalog.buyer attribute.value - the buyerpublic Set<CatalogVersion> getCatalogVersions(SessionContext ctx)
Catalog.catalogVersions attribute.public Set<CatalogVersion> getCatalogVersions()
Catalog.catalogVersions attribute.public void setCatalogVersions(SessionContext ctx, Set<CatalogVersion> value)
Catalog.catalogVersions attribute.value - the catalogVersionspublic void setCatalogVersions(Set<CatalogVersion> value)
Catalog.catalogVersions attribute.value - the catalogVersionspublic void addToCatalogVersions(SessionContext ctx, CatalogVersion value)
value to catalogVersions.value - the item to add to catalogVersionspublic void addToCatalogVersions(CatalogVersion value)
value to catalogVersions.value - the item to add to catalogVersionspublic void removeFromCatalogVersions(SessionContext ctx, CatalogVersion value)
value from catalogVersions.value - the item to remove from catalogVersionspublic void removeFromCatalogVersions(CatalogVersion value)
value from catalogVersions.value - the item to remove from catalogVersionsprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.newInstance(Map).
In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
Sn example:
public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
// here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
super.getNonInitialAttributes( ctx, allAttributes );
// remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
createItem in class GenericItemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic Boolean isDefaultCatalog(SessionContext ctx)
Catalog.defaultCatalog attribute.public Boolean isDefaultCatalog()
Catalog.defaultCatalog attribute.public boolean isDefaultCatalogAsPrimitive(SessionContext ctx)
Catalog.defaultCatalog attribute.public boolean isDefaultCatalogAsPrimitive()
Catalog.defaultCatalog attribute.public void setDefaultCatalog(SessionContext ctx, Boolean value)
Catalog.defaultCatalog attribute.value - the defaultCatalog - Default catalogpublic void setDefaultCatalog(Boolean value)
Catalog.defaultCatalog attribute.value - the defaultCatalog - Default catalogpublic void setDefaultCatalog(SessionContext ctx, boolean value)
Catalog.defaultCatalog attribute.value - the defaultCatalog - Default catalogpublic void setDefaultCatalog(boolean value)
Catalog.defaultCatalog attribute.value - the defaultCatalog - Default catalogpublic String getId(SessionContext ctx)
Catalog.id attribute.public String getId()
Catalog.id attribute.public void setId(SessionContext ctx, String value)
Catalog.id attribute.value - the id - IDpublic void setId(String value)
Catalog.id attribute.value - the id - IDpublic String getName(SessionContext ctx)
Catalog.name attribute.public String getName()
Catalog.name attribute.public Map<Language,String> getAllName(SessionContext ctx)
Catalog.name attribute.public Map<Language,String> getAllName()
Catalog.name attribute.public void setName(SessionContext ctx, String value)
Catalog.name attribute.value - the name - Namepublic void setName(String value)
Catalog.name attribute.value - the name - Namepublic void setAllName(SessionContext ctx, Map<Language,String> value)
Catalog.name attribute.value - the name - Namepublic void setAllName(Map<Language,String> value)
Catalog.name attribute.value - the name - Namepublic String getPreviewURLTemplate(SessionContext ctx)
Catalog.previewURLTemplate attribute.public String getPreviewURLTemplate()
Catalog.previewURLTemplate attribute.public void setPreviewURLTemplate(SessionContext ctx, String value)
Catalog.previewURLTemplate attribute.value - the previewURLTemplatepublic void setPreviewURLTemplate(String value)
Catalog.previewURLTemplate attribute.value - the previewURLTemplatepublic Company getSupplier(SessionContext ctx)
Catalog.supplier attribute.public Company getSupplier()
Catalog.supplier attribute.public void setSupplier(SessionContext ctx, Company value)
Catalog.supplier attribute.value - the supplierpublic void setSupplier(Company value)
Catalog.supplier attribute.value - the supplierpublic Collection<String> getUrlPatterns(SessionContext ctx)
Catalog.urlPatterns attribute.public Collection<String> getUrlPatterns()
Catalog.urlPatterns attribute.public void setUrlPatterns(SessionContext ctx, Collection<String> value)
Catalog.urlPatterns attribute.value - the urlPatterns - Collection of URL patternspublic void setUrlPatterns(Collection<String> value)
Catalog.urlPatterns attribute.value - the urlPatterns - Collection of URL patternsCopyright © 2017 SAP SE. All Rights Reserved.