public class TargetInstitution extends WatchController implements TargetDependingParameter, Reloadable
RollOverWatches are served within this parameter via
its WatchController properties. Whenever a target is registered to
this parameter, all the running RollOverWatches are stopped and
those whose name start with the user name of the new target registered
augmented with UserShare#SHARECURRENT are started.WatchController.ResetTaskPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
static String |
DEFNAME
The name of this parameter.
|
private String |
user
The user name of the target registered to this parameter.
|
KEY_ACCEPT, KEY_COARSE, KEY_DATEFORMAT, KEY_T0KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
TargetInstitution(Map<String,String> prop)
Constructs a new target user parameter.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get()
Gets the user name of the target currently requested.
|
String |
getFormattedFor(TargetDefinition td)
Deviates the formatting to the
protected version in
AbstractParameter. |
Object |
getForTarget(TargetDefinition target)
Returns the institution out of the target description.
|
void |
registerTarget(TargetDefinition target)
Registers this target to the target user parameter.
|
double |
rescanned(String key,
String old,
String newval)
Makes this method public, no further changes.
|
Object |
set(Object newuser)
Sets a new user name.
|
afterAll, getWatches, registerParametercreateParameter, delivers, exit, getFormatted, getFormatted, getName, getPreserveFile, getString, getString, init, overrideDefaultName, register, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormatted, getName, getStringdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiesinitreloadpublic static final String DEFNAME
private String user
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class WatchControllerpublic Object set(Object newuser)
RollOverWatches registered to this object and stops all those
starting with the old user name
and start all those whose name start with the new user name, in both
cases augmented with UserShare.CURRENT.public Object get()
public Object getForTarget(TargetDefinition target)
TargetDefinition.getInstitution(). If this call returns null,
the user name is looked up in the properties if an entry is found
matching the user name to an institution (e.g. 'Strassmeier'->'AIP').
If no match can be found, the user name is returned.getForTarget in interface TargetDependingParameterpublic String getFormattedFor(TargetDefinition td)
AbstractParameter.getFormattedFor in interface TargetDependingParameterpublic void registerTarget(TargetDefinition target)
registerTarget in interface TargetDepending