public class FeatureManager extends AbstractFeatureManager implements DBManEventListenerI, FeatureManagerI
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log |
FK_ALARM, FK_ALL, FK_CHART, FK_DMS, FK_ERP, FK_FULLTEXTSEARCH, FK_GRAILS, FK_GRATUITOUS_LOCAL_CONNECTIONS, FK_LAGER, FK_MAX_CLIENTS, FK_NOTIFICATION, FK_OCR, FK_PIVOT, FK_PROD, FK_RDS, FK_SERVERSTART, FK_TICKET, FK_VK, FK_ZERF| Constructor and Description |
|---|
FeatureManager()
No args constructor (only) for the unit tests.
|
FeatureManager(BOLoaderI _bol,
DBManEventProviderI _ep,
java.lang.String _ownerDesc,
java.lang.String _projekt,
java.lang.String _instanz,
java.lang.Long _nodeID) |
FeatureManager(BOLoaderI _bol,
DBManEventProviderI _ep,
java.lang.String _ownerDesc,
java.lang.String _projekt,
java.lang.String _instanz,
java.lang.Long _nodeID,
Benutzer _benutzer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeatureListener(FeatureListenerI _fl)
Allows to register a FeatureListenerI e.g. for classes that need to update
caches or such when a Feature becomes or ceases to be available.
|
void |
close() |
void |
close(boolean calledFromFinalize) |
static char[] |
decodePW()
Password is encoded for a very minor protection against reverse
engineering, this method decodes it.
|
Benutzer |
getBenutzer()
Returns Benutzer(name) of the current user or null if not called in a
"logged in" context.
|
java.lang.String |
getInstanz()
Returns instance name for the current MyTISM instance.
|
LicenseI |
getLicense(java.lang.String _feature)
Returns the currently active License for feature _feature or null if no
such license is available.
|
LicenseI |
getLicense(java.lang.String _feature,
boolean _fallbackToInactive) |
java.lang.Long |
getNodeID()
Returns NodeID of the current MyTISM instance.
|
java.lang.String |
getProjekt()
Returns project name for the current MyTISM instance.
|
void |
importLicense(java.io.File fileUserString,
DBManLocalI dbm)
Imports a license from the given
File. |
void |
importLicense(java.lang.String strUserString,
DBManLocalI dbm)
Imports a license from the given
String. |
boolean |
isAvailable(java.lang.String _feature)
Silently checks if feature with name _feature is available and returns true
if it is, false otherwise.
|
boolean |
isAvailableWithNoise(java.lang.String _feature)
Checks if feature with name _feature is available and returns true or false
respectively but first also calls makeNoise() if feature is not available.
|
boolean |
knowsLicense(LicenseI _license)
Returns true if the given license is already known to this FeatureManagerI,
false otherwise.
|
void |
makeNoise(java.lang.String _feature)
Display message, output to log or otherwise signal that the feature with
name _feature is not available.
|
void |
processDBManEvent(DBManEvent _event)
Invoked when a subscribed DBManEvent occurs.
|
void |
removeFeatureListener(FeatureListenerI _fl)
Removes the given FeatureListenerI from the notification list.
|
void |
setBenutzer(Benutzer $30) |
void |
setInstanz(java.lang.String $28) |
void |
setNodeID(java.lang.Long $29) |
void |
setProjekt(java.lang.String $27) |
addFeatureDefinition, addFeatureDefinition, addFeatureDefinition, decrypt, getFeatureDefinition, getFeatureDefinitions, initFeatureDefinitions, isValidFeature, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitdecryptpublic FeatureManager()
public FeatureManager(BOLoaderI _bol, DBManEventProviderI _ep, java.lang.String _ownerDesc, java.lang.String _projekt, java.lang.String _instanz, java.lang.Long _nodeID)
public FeatureManager(BOLoaderI _bol, DBManEventProviderI _ep, java.lang.String _ownerDesc, java.lang.String _projekt, java.lang.String _instanz, java.lang.Long _nodeID, Benutzer _benutzer)
public static char[] decodePW()
public void close()
close in interface FeatureManagerIpublic void close(boolean calledFromFinalize)
public void processDBManEvent(DBManEvent _event)
DBManEventListenerIDBManBOChangeEvent for events triggered after modification on BOs.processDBManEvent in interface DBManEventListenerIpublic boolean isAvailableWithNoise(java.lang.String _feature)
FeatureManagerIisAvailableWithNoise in interface FeatureManagerIpublic boolean isAvailable(java.lang.String _feature)
FeatureManagerIisAvailable in interface FeatureManagerIpublic void makeNoise(java.lang.String _feature)
FeatureManagerImakeNoise in interface FeatureManagerIpublic LicenseI getLicense(java.lang.String _feature)
FeatureManagerIgetLicense in interface FeatureManagerIpublic LicenseI getLicense(java.lang.String _feature, boolean _fallbackToInactive)
getLicense in interface FeatureManagerIpublic boolean knowsLicense(LicenseI _license)
FeatureManagerIknowsLicense in interface FeatureManagerIpublic void importLicense(java.io.File fileUserString,
DBManLocalI dbm)
throws LicenseException
File. Convenience method for use
by DBMan when loading some special licenses from file at server start.LicenseExceptionpublic void importLicense(java.lang.String strUserString,
DBManLocalI dbm)
throws LicenseException
String. Convenience method for use
by DBMan when loading some special licenses from file at server start.LicenseExceptionpublic void addFeatureListener(FeatureListenerI _fl)
FeatureManagerIaddFeatureListener in interface FeatureManagerIpublic void removeFeatureListener(FeatureListenerI _fl)
FeatureManagerIremoveFeatureListener in interface FeatureManagerIpublic java.lang.String getProjekt()
FeatureManagerIgetProjekt in interface FeatureManagerIpublic void setProjekt(java.lang.String $27)
public java.lang.String getInstanz()
FeatureManagerIgetInstanz in interface FeatureManagerIpublic void setInstanz(java.lang.String $28)
public java.lang.Long getNodeID()
FeatureManagerIgetNodeID in interface FeatureManagerIpublic void setNodeID(java.lang.Long $29)
public Benutzer getBenutzer()
FeatureManagerIgetBenutzer in interface FeatureManagerIpublic void setBenutzer(Benutzer $30)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.