info.aduna.gee.publication.session
Class Config

java.lang.Object
  extended by info.aduna.gee.publication.net.WStorable
      extended by info.aduna.gee.publication.session.Config
All Implemented Interfaces:
EntryConstants

public class Config
extends WStorable
implements EntryConstants

The ZPad Configuration.


Field Summary
 WProperties[] acls
          Contains the ACL's of the various PL's.
 int associatesEditLevel
          The level may be turned into a scale of increasing rights later! If 1 (default), each associate may edit.
 String inheritConfigOf
          Inherit real Config contents of another (perhaps non-existing) Zpad.
 int privacyLevel
          The privacy level that applies to *everything*.
 
Fields inherited from class info.aduna.gee.publication.net.WStorable
_isStorable, _lastModified, BASE64ENCODING, GZIPCOMPRESSION, NONE, WLZ77COMPRESSION
 
Fields inherited from interface info.aduna.gee.publication.content.EntryConstants
ACLS_PREFIX, AFTER_TRANSFER, APPLET_TYPE_VALUE, ASSOCIATES_EDIT_LEVEL, BEFORE_STORAGE, BEFORE_TRANSFER, CODE_KEY, CODEBASE_KEY, CONSTRUCTION_KEY, CONTAINER_TTL_KEY, CONTAINERID_KEY, CONTAINERPROPS_KEY, DBPRIVACY_LEVEL_KEY, DESCRIPTION_KEY, EMBED_TYPE_VALUE, END_TIME_KEY, ENTRY_ID_KEY, ENTRYATTRIBS_KEY, ENTRYPARAMS_KEY, ENTRYPROPS_KEY, EXPIRES_KEY, EXTERNAL_ENTRY_KEY, HEIGHT_KEY, HTML_KEY, HTML_TYPE_VALUE, ID2IDID_KEY, IMAGE_TYPE_VALUE, IMPORT_CLASSNAME, IMPORT_DONT_FORWARD, IMPORT_IMPORTED, IMPORT_LANGUAGE, IMPORT_SERVER_NAME, IMPORT_TYPE_VALUE, INFO_EXTENSION, INHERIT_CONFIGURATION, INLINE_DESCRIPTION_IS_HTML_KEY, INLINE_DESCRIPTION_KEY, INSPIRES_KEY, JIT_DESTINATION, JIT_DESTINATION_INDEX, LINK_IN_FRAME_KEY, LINK_KEY, MANUAL_KEY, MINIMALHEIGHT_KEY, MINIMALWIDTH_KEY, NAVIGATION_KEY, OBJECT_TYPE_VALUE, OCCURRING_CLABELS_KEY, OVERRIDE_SUGGESTION_KEY, PRIVACY_LEVEL_KEY, PROVIDE_KEY, PROVIDE_PL_KEY, QUALIFIED_BASE_KEY, RE_EXPORT_KEY, RE_MANUAL_KEY, REPEAT_ID_KEY, REPEAT_TODAY_KEY, REQUIRES_NEW_PAGE, ROTATABLE_KEY, SHARED_CLABELS_KEY, SHOP_GIF_KEY, SHOP_GIF_LOCATION_KEY, SHOP_ID_KEY, SHOP_ORIGIN_KEY, SHOP_OVER_GIF_KEY, SORT_CLABELS, SORT_DESCRIPTION, SOURCE_KEY, STARTSECTION_KEY, SUBSCRIBED_COLOR_KEY, SUBSCRIBED_GIF_KEY, SUBSCRIBED_GIF_LOCATION_KEY, SUBSCRIBED_OVER_GIF_KEY, SUBSCRIBED_VISIBLE_CLABELS_KEY, SUBSCRIPTION_KEY, SUBSCRIPTION_LINK_KEY, SUGGESTION_KEY, SUMMARY_IS_HTML_KEY, SUMMARY_KEY, SUMMARY_TYPE_VALUE, TEMPLATEPREFERENCES_KEY, TEXT_KEY, TEXT_TYPE_VALUE, TIME_KEY, TMPL_DESCRIPTOR_KEY, TMPL_FOREIGN_ID_KEY, TMPL_ID_KEY, TMPL_PREFERENCES_KEY, TMPL_STUB_RECOGNIZER_KEY, TMPLD_TYPE_VALUE, TYPE_KEY, WIDTH_KEY
 
Constructor Summary
Config()
           
 
Method Summary
 Object clone()
          Create a clone (probably for editing).
 void load(InputStream in, int version)
          Reads the configuration data from the specified input.
 void store(OutputStream out)
          Writes the user information to the specified output.
 
Methods inherited from class info.aduna.gee.publication.net.WStorable
destroy, getCompression, getEncoding, getLastModified, getVersion, isStorable, setLastModified, setStorable, toSeconds
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acls

public WProperties[] acls
Contains the ACL's of the various PL's. Note: although we do not use acls[0], we kept it to have PL1 on index 1, etc.


inheritConfigOf

public String inheritConfigOf
Inherit real Config contents of another (perhaps non-existing) Zpad.


associatesEditLevel

public int associatesEditLevel
The level may be turned into a scale of increasing rights later! If 1 (default), each associate may edit. If 0, only the *real* owner may edit. If 1 & associate -> PL == 4 If 0 & associate -> PL == 3


privacyLevel

public int privacyLevel
The privacy level that applies to *everything*.

Constructor Detail

Config

public Config()
Method Detail

store

public void store(OutputStream out)
           throws IOException
Writes the user information to the specified output.

Specified by:
store in class WStorable
Parameters:
out - the OutputStream to write to.
Throws:
IOException

load

public void load(InputStream in,
                 int version)
          throws IOException
Reads the configuration data from the specified input.

Specified by:
load in class WStorable
Parameters:
in - the InputStream to read from.
version - the Configuration-version at time of storage.
Throws:
IOException

clone

public Object clone()
Create a clone (probably for editing).

Specified by:
clone in class WStorable
Returns:
a shallow clone of this Object.


Copyright © 1997-2008 Aduna. All Rights Reserved.