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 java.lang.String |
ACTIVECATALOGVERSION
Qualifier of the
Catalog.activeCatalogVersion attribute |
static java.lang.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 java.lang.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 java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
DEFAULTCATALOG
Qualifier of the
Catalog.defaultCatalog attribute |
static java.lang.String |
ID
Qualifier of the
Catalog.id attribute |
static java.lang.String |
NAME
Qualifier of the
Catalog.name attribute |
static java.lang.String |
PREVIEWURLTEMPLATE
Qualifier of the
Catalog.previewURLTemplate attribute |
static java.lang.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 java.lang.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. |
java.util.Map<Language,java.lang.String> |
getAllName()
Generated method - Getter of the
Catalog.name attribute. |
java.util.Map<Language,java.lang.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. |
java.util.Set<CatalogVersion> |
getCatalogVersions()
Generated method - Getter of the
Catalog.catalogVersions attribute. |
java.util.Set<CatalogVersion> |
getCatalogVersions(SessionContext ctx)
Generated method - Getter of the
Catalog.catalogVersions attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.String |
getId()
Generated method - Getter of the
Catalog.id attribute. |
java.lang.String |
getId(SessionContext ctx)
Generated method - Getter of the
Catalog.id attribute. |
java.lang.String |
getName()
Generated method - Getter of the
Catalog.name attribute. |
java.lang.String |
getName(SessionContext ctx)
Generated method - Getter of the
Catalog.name attribute. |
java.lang.String |
getPreviewURLTemplate()
Generated method - Getter of the
Catalog.previewURLTemplate attribute. |
java.lang.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. |
java.util.Collection<java.lang.String> |
getUrlPatterns()
Generated method - Getter of the
Catalog.urlPatterns attribute. |
java.util.Collection<java.lang.String> |
getUrlPatterns(SessionContext ctx)
Generated method - Getter of the
Catalog.urlPatterns attribute. |
java.lang.Boolean |
isDefaultCatalog()
Generated method - Getter of the
Catalog.defaultCatalog attribute. |
java.lang.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(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of the
Catalog.name attribute. |
void |
setAllName(SessionContext ctx,
java.util.Map<Language,java.lang.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,
java.util.Set<CatalogVersion> value)
Generated method - Setter of the
Catalog.catalogVersions attribute. |
void |
setCatalogVersions(java.util.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(java.lang.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,
java.lang.Boolean value)
Generated method - Setter of the
Catalog.defaultCatalog attribute. |
void |
setId(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Catalog.id attribute. |
void |
setId(java.lang.String value)
Generated method - Setter of the
Catalog.id attribute. |
void |
setName(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Catalog.name attribute. |
void |
setName(java.lang.String value)
Generated method - Setter of the
Catalog.name attribute. |
void |
setPreviewURLTemplate(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Catalog.previewURLTemplate attribute. |
void |
setPreviewURLTemplate(java.lang.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(java.util.Collection<java.lang.String> value)
Generated method - Setter of the
Catalog.urlPatterns attribute. |
void |
setUrlPatterns(SessionContext ctx,
java.util.Collection<java.lang.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, getImplementation, 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, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, 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, writeReplacesetTenantpublic static final java.lang.String ID
Catalog.id attributepublic static final java.lang.String NAME
Catalog.name attributepublic static final java.lang.String ACTIVECATALOGVERSION
Catalog.activeCatalogVersion attributepublic static final java.lang.String DEFAULTCATALOG
Catalog.defaultCatalog attributepublic static final java.lang.String PREVIEWURLTEMPLATE
Catalog.previewURLTemplate attributepublic static final java.lang.String URLPATTERNS
Catalog.urlPatterns attributepublic static final java.lang.String CATALOGVERSIONS
Catalog.catalogVersions attributepublic static final java.lang.String SUPPLIER
Catalog.supplier attributepublic static final java.lang.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 java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected java.util.Map<java.lang.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 java.util.Set<CatalogVersion> getCatalogVersions(SessionContext ctx)
Catalog.catalogVersions attribute.public java.util.Set<CatalogVersion> getCatalogVersions()
Catalog.catalogVersions attribute.public void setCatalogVersions(SessionContext ctx, java.util.Set<CatalogVersion> value)
Catalog.catalogVersions attribute.value - the catalogVersionspublic void setCatalogVersions(java.util.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 java.lang.Boolean isDefaultCatalog(SessionContext ctx)
Catalog.defaultCatalog attribute.public java.lang.Boolean isDefaultCatalog()
Catalog.defaultCatalog attribute.public boolean isDefaultCatalogAsPrimitive(SessionContext ctx)
Catalog.defaultCatalog attribute.public boolean isDefaultCatalogAsPrimitive()
Catalog.defaultCatalog attribute.public void setDefaultCatalog(SessionContext ctx, java.lang.Boolean value)
Catalog.defaultCatalog attribute.value - the defaultCatalog - Default catalogpublic void setDefaultCatalog(java.lang.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 java.lang.String getId(SessionContext ctx)
Catalog.id attribute.public java.lang.String getId()
Catalog.id attribute.public void setId(SessionContext ctx, java.lang.String value)
Catalog.id attribute.value - the id - IDpublic void setId(java.lang.String value)
Catalog.id attribute.value - the id - IDpublic java.lang.String getName(SessionContext ctx)
Catalog.name attribute.public java.lang.String getName()
Catalog.name attribute.public java.util.Map<Language,java.lang.String> getAllName(SessionContext ctx)
Catalog.name attribute.public java.util.Map<Language,java.lang.String> getAllName()
Catalog.name attribute.public void setName(SessionContext ctx, java.lang.String value)
Catalog.name attribute.value - the name - Namepublic void setName(java.lang.String value)
Catalog.name attribute.value - the name - Namepublic void setAllName(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
Catalog.name attribute.value - the name - Namepublic void setAllName(java.util.Map<Language,java.lang.String> value)
Catalog.name attribute.value - the name - Namepublic java.lang.String getPreviewURLTemplate(SessionContext ctx)
Catalog.previewURLTemplate attribute.public java.lang.String getPreviewURLTemplate()
Catalog.previewURLTemplate attribute.public void setPreviewURLTemplate(SessionContext ctx, java.lang.String value)
Catalog.previewURLTemplate attribute.value - the previewURLTemplatepublic void setPreviewURLTemplate(java.lang.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 java.util.Collection<java.lang.String> getUrlPatterns(SessionContext ctx)
Catalog.urlPatterns attribute.public java.util.Collection<java.lang.String> getUrlPatterns()
Catalog.urlPatterns attribute.public void setUrlPatterns(SessionContext ctx, java.util.Collection<java.lang.String> value)
Catalog.urlPatterns attribute.value - the urlPatterns - Collection of URL patternspublic void setUrlPatterns(java.util.Collection<java.lang.String> value)
Catalog.urlPatterns attribute.value - the urlPatterns - Collection of URL patternsCopyright © 2018 SAP SE. All Rights Reserved.