public class HMCManager extends GeneratedHMCManager
Extension.RestrictedLanguagesProvider, Extension.RightsProviderManager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator| Modifier and Type | Field and Description |
|---|---|
static String |
HMC_STRUCTURE_DUMP_MEDIA |
static String |
HMC_STRUCTURE_MEDIA |
static String |
IS_HMC_SESSION |
DEFAULT_INITIAL_ATTRIBUTES| Constructor and Description |
|---|
HMCManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkBeforeItemRemoval(SessionContext ctx,
Item item)
Superclass method overridden to avoid calls to ejb layer.
|
void |
clearHMCStructure()
Clears the structure media and the structure dump media as well as the old style db entry.
|
void |
createEssentialData(Map params,
JspContext jspc) |
void |
createProjectData(Map params,
JspContext jspc) |
protected Media |
createStructureMedia() |
WizardBusinessItem |
createWizard(String wizardType) |
WizardBusinessItem |
createWizard(String wizardType,
Map params) |
protected Collection |
filterRemovedItems(Object attributeValue) |
Set<Language> |
getAllDialogLanguages()
Returns a Set containing all dialog (language for naming and so) languages for the current user.
|
Set<Language> |
getAllLanguages()
Returns all existing Language objects for the given JaloSession.
Note: This set will be cached and rebuild per request. |
Set<Language> |
getAllReadableLanguages()
Returns a Set containing all 'readable languages' for the current user as configured in its user profile.
|
Set<Language> |
getAllWritableLanguages()
Returns a Set containing all 'writable languages' for the current user as configured in its user profile.
|
protected Collection<ChangedItemAttributes> |
getCreatedItemAttributes(Item item,
Map<String,Object> values) |
MediaFolder |
getHMCMediaFolder()
Gets the HMC specific
MediaFolder used for storing hmc system medias. |
static HMCManager |
getInstance()
NOTE: If extension.managersuperclass is set to 'PriceFactory' (i.e.
|
protected Collection<ChangedItemAttributes> |
getModifiedItemAttributes(Item item,
Map<String,Object> previousValues,
Map<String,Object> newValues) |
Media |
getOrCreateStructureDumpMedia() |
UserProfile |
getOrCreateUserProfile()
Gets the user profile of the current user.
|
protected Collection<ChangedItemAttributes> |
getRemovedItemAttributes(Item item) |
protected Collection<SavedValues> |
getSavedValues(SessionContext ctx,
Item item,
int start,
int count) |
protected Media |
getStructureMedia() |
String |
getStructureTimestamp() |
String |
getStructureXML()
Returns the stored hmc xml structure once if it has been uploaded, otherwise
null . |
boolean |
isCreatorDisabled()
Part of
DataCreator interface. |
boolean |
isHMCSession(SessionContext ctx) |
protected boolean |
isLoggingEnabled(Item toLog) |
Boolean |
isLogHMCChanges(SessionContext ctx,
ComposedType item)
Generated method - Getter of the
ComposedType.logHMCChanges attribute. |
protected boolean |
isRemovalLoggingEnabled(Item item) |
SavedValues |
logItemCreation(Item item,
Map values)
Deprecated.
|
SavedValues |
logItemCreation(PK itemPk,
Map values)
Creates a new
SavedValues marking a item creation. |
SavedValues |
logItemModification(Item item,
Map<String,Object> values,
Map<String,Object> previousValues,
boolean detectRemovedValues)
Deprecated.
use
logItemModification(PK, Map, Map, boolean) instead |
SavedValues |
logItemModification(PK itemPk,
Map<String,Object> values,
Map<String,Object> previousValues,
boolean detectRemovedValues)
Creates a new
SavedValues marking a item modification. |
SavedValues |
logItemRemoval(Item item,
boolean saveAttributes)
Deprecated.
use
logItemRemoval(PK, boolean) instead |
SavedValues |
logItemRemoval(PK itemPk,
boolean saveAttributes)
Creates a new
SavedValues marking a item removal. |
void |
markHMCSession(JaloSession session)
Deprecated.
|
protected void |
notifyItemRemoval(SessionContext ctx,
Item item)
Superclass method overridden to avoid calls to ejb layer.
|
void |
setStructureTimestamp(String timestamp)
Changes the current hmc structure timestamp.
|
void |
unmarkHMCSession(JaloSession session)
Deprecated.
|
void |
uploadStructureXML(String xml)
Stores the given hmc xml structure.
|
createExportUserRightsWizard, createExportUserRightsWizard, createHMCHistoryEntry, createHMCHistoryEntry, createImportExportUserRightsWizard, createImportExportUserRightsWizard, createImportUserRightsWizard, createImportUserRightsWizard, createSampleWizard, createSampleWizard, createWizardBusinessItem, createWizardBusinessItem, getDefaultAttributeModes, getHmcIcon, getHmcIcon, getName, isHmcLoginDisabled, isHmcLoginDisabled, isHmcLoginDisabledAsPrimitive, isHmcLoginDisabledAsPrimitive, isLogHMCChanges, isLogHMCChangesAsPrimitive, isLogHMCChangesAsPrimitive, setHmcIcon, setHmcIcon, setHmcLoginDisabled, setHmcLoginDisabled, setHmcLoginDisabled, setHmcLoginDisabled, setLogHMCChanges, setLogHMCChanges, setLogHMCChanges, setLogHMCChangescreateSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, notifyInitializationEnd, notifyInitializationStart, onFirstSessionCreation, writeReplaceafterItemCreation, beforeItemCreation, destroy, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, unwrap, unwrap, wrappublic static final String HMC_STRUCTURE_MEDIA
public static final String HMC_STRUCTURE_DUMP_MEDIA
public static final String IS_HMC_SESSION
public static HMCManager getInstance()
public String getStructureXML()
null .public String getStructureTimestamp()
public void setStructureTimestamp(String timestamp)
timestamp - the new timestampprotected Media getStructureMedia()
protected Media createStructureMedia()
public void uploadStructureXML(String xml)
xml - public Media getOrCreateStructureDumpMedia()
@Deprecated public void markHMCSession(JaloSession session)
@Deprecated public void unmarkHMCSession(JaloSession session)
public boolean isHMCSession(SessionContext ctx)
protected void checkBeforeItemRemoval(SessionContext ctx, Item item) throws ConsistencyCheckException
checkBeforeItemRemoval in class Extensionctx - the current session contextitem - the item which should be removedConsistencyCheckException - thrown to abort removal due to consistency errorspublic Boolean isLogHMCChanges(SessionContext ctx, ComposedType item)
GeneratedHMCManagerComposedType.logHMCChanges attribute.isLogHMCChanges in class GeneratedHMCManagerprotected boolean isRemovalLoggingEnabled(Item item)
protected void notifyItemRemoval(SessionContext ctx, Item item)
notifyItemRemoval in class Extensionctx - the currency session contextitem - the item which is going to be removedpublic boolean isCreatorDisabled()
DataCreator interface. This implementation returns false.isCreatorDisabled in class Extensionfalsepublic WizardBusinessItem createWizard(String wizardType) throws JaloItemNotFoundException, JaloInvalidParameterException
public WizardBusinessItem createWizard(String wizardType, Map params) throws JaloItemNotFoundException, JaloInvalidParameterException
protected boolean isLoggingEnabled(Item toLog)
protected Collection<SavedValues> getSavedValues(SessionContext ctx, Item item, int start, int count)
@Deprecated public SavedValues logItemRemoval(Item item, boolean saveAttributes)
logItemRemoval(PK, boolean) insteadSavedValues marking a item removal.item - the removed itemsaveAttributes - TODOpublic SavedValues logItemRemoval(PK itemPk, boolean saveAttributes)
SavedValues marking a item removal.itemPk - the removed itemsaveAttributes - TODOprotected Collection filterRemovedItems(Object attributeValue)
attributeValue - public SavedValues logItemModification(PK itemPk, Map<String,Object> values, Map<String,Object> previousValues, boolean detectRemovedValues)
SavedValues marking a item modification.itemPk - the created itemvalues - its modified valuespreviousValues - its previous valuesdetectRemovedValues - TODO@Deprecated public SavedValues logItemModification(Item item, Map<String,Object> values, Map<String,Object> previousValues, boolean detectRemovedValues)
logItemModification(PK, Map, Map, boolean) insteadSavedValues marking a item modification.item - the created itemvalues - its modified valuespreviousValues - its previous valuesdetectRemovedValues - TODOprotected Collection<ChangedItemAttributes> getCreatedItemAttributes(Item item, Map<String,Object> values)
protected Collection<ChangedItemAttributes> getModifiedItemAttributes(Item item, Map<String,Object> previousValues, Map<String,Object> newValues)
protected Collection<ChangedItemAttributes> getRemovedItemAttributes(Item item)
@Deprecated public SavedValues logItemCreation(Item item, Map values)
logItemCreation(PK, Map)SavedValues marking a item creation.item - the created itemvalues - its creation valuespublic SavedValues logItemCreation(PK itemPk, Map values)
SavedValues marking a item creation.itemPk - the created item PKvalues - its creation valuespublic void createEssentialData(Map params, JspContext jspc) throws Exception
createEssentialData in class ExtensionExceptionpublic MediaFolder getHMCMediaFolder()
MediaFolder used for storing hmc system medias.public void createProjectData(Map params, JspContext jspc)
createProjectData in class Extensionpublic UserProfile getOrCreateUserProfile()
public Set<Language> getAllWritableLanguages()
public Set<Language> getAllReadableLanguages()
public Set<Language> getAllDialogLanguages()
getAllLanguages(). Note: This set will be cached and rebuildpublic Set<Language> getAllLanguages()
public void clearHMCStructure()
Copyright © 2017 SAP SE. All Rights Reserved.