Package com.saperion.ngc.util
Class FolderClassCache
- java.lang.Object
-
- com.saperion.ngc.util.FolderClassCache
-
public class FolderClassCache extends java.lang.ObjectSimple cache for folder classes.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringWEB_APP_ATTRName of the webapp attribute for the FolderClassCache.
-
Constructor Summary
Constructors Constructor Description FolderClassCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClass(FolderClass folderClass)Adds a new class to the cache or overwrites an existing class.voidchangeClass(FolderClass folderClass, int eventId, java.lang.String sysRowId, int mandant)Adapt the given class.FolderClassgetClassByName(java.lang.String className)Returns the class matching the specified name or null if no such class can be found in the cache.static FolderClassCachegetInstance()
-
-
-
Field Detail
-
WEB_APP_ATTR
public static final java.lang.String WEB_APP_ATTR
Name of the webapp attribute for the FolderClassCache.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static FolderClassCache getInstance()
- Returns:
- The instance of the FolderClassCache for the current application context.
-
addClass
public void addClass(FolderClass folderClass)
Adds a new class to the cache or overwrites an existing class. Classes are identified by name.- Parameters:
folderClass- class to add/update
-
getClassByName
public FolderClass getClassByName(java.lang.String className)
Returns the class matching the specified name or null if no such class can be found in the cache.- Parameters:
className- name of the class- Returns:
- folder class
-
changeClass
public void changeClass(FolderClass folderClass, int eventId, java.lang.String sysRowId, int mandant)
Adapt the given class.- Parameters:
folderClass- New folder classeventId- Event IDsysRowId- SysRowIdmandant- Mandant
-
-