Package org.sandev.basics.util

The util package holds commonly used code which is intended for general programming.

See:
          Description

Interface Summary
AuthFilter An AuthFilter is a plain java class implementing data visibility logic for use by UI nodes and Authorizer nodes.
Authorizer The Authorizer interface identifies a node as being able to perform the special purpose functions required for secure processing.
AuthUser An interface to identify a user of the system for authorization purposes.
AuthUserLookup An interface declaring this object supports finding an AuthUser via their ID.
CommBridge A bridge between communications used internally by the application, and communications used outside the application.
IDCache Defines a reliable and efficient lookup of a persistent object instance via its unique identifier.
IDCacheCallback An interface used by a cache to get information back from the application.
IDLookup Provides general object resolution capabilities.
InfoReport An interface for recording processing errors and other info.
InstanceClassEnumerator Provide a mapping between short names of messages or interfaces, and derived or implementing classes.
NameLookup Provides general object resolution capabilities.
Resolvable Interface indicating reference fields within this object can be resolved.
SandEncryptor Simplified interface for reversable string encryption used in messaging and other applications.
SimpleMailSender A simple mail send utility interface.
TrustedInstanceLookup An interface declaring this object supports direct, full retrieval of the current message instance information.
UIFileLocator Provide file and URL access to uploaded or generated files.
UIFormAdaptor Renders/reconstructs a UIFormContext to/from a user interface.
UIFormAdaptorCallback Callback interface for UIFormAdaptor providing IDLookup, NameLookup, and dynamic form processing functions.
UIFormManager Handles the processing of a UIFormContext.
UIFormOwner Callback interface implemented by classes that use UIFormManager.
UIRenderInput An input operand used by a UIFormAdaptor to retrieve input parameters.
UIRenderOperand A relatively opaque class representing what a UIFormAdaptor needs to enable output rendering or input reconstruction.
UIRenderOutput A common base for all output operands.
UIRenderOutputDirect Used by a UIFormAdaptor to render a form for display.
UIRenderOutputStream Used by a UIFormAdaptor to render a form for display.
UIRenderOutputString Used by a UIFormAdaptor to render a form for display, where the rendered output can be accessed as a String afterwards.
 

Class Summary
AbstractFormManager Provides a root implementation of a UIFormManager delegating data manipulation tasks to extending classes.
ArrayAssociation A standard associative list represented by two equal length arrays.
ArrayUtils Simple array management utilities to fill gaps in common use.
AuthFilterBase A base class for AuthFilter implementations with some useful utility methods.
CSVTransforms Converts an array of basic types to a comma separated value String.
DateUtil Common date manipulation utilities.
EnvGrabber Legacy utility to return the value of an environment variable.
ExistingIDOrderComparator Compares two SandPersistMessages based on a prior existing ordering with new instances either less than or greater than all previous.
FileUtil Common file manipulation utilities.
FormOutput An extension of a FormItemCollection with some extra utility methods for easy output capture.
Hexifier An alternative to base64 encoding in some cases.
IDCacheBase Provides common methods for all IDCache implementations.
IntReference Holds a reference to an int.
LastAccessedComparator Compares two SandPersistMessages based on their lastAccessedTime.
MatchUtil Simple match expression evaluation.
MessageUtil General utilities useful when dealing with messages.
NamedSingletonIDCache Provides singleton instances of one or more IDCaches.
NodeLocalIDCache A simple IDCache for use by any single node.
NullEncryptor A degenerate SandEncryptor that simply returns what it was given without doing any work.
PropUtils A utility for value lookup in localized property files.
ReaderWriterLock A multiple reader single writer lock utility.
RootedFormManager An implementation of a UIFormManager used for working with a tree of non-persistent objects.
SampleEncryptor A sample encryptor implementation.
SingletonIDCache A singleton IDCache for shared object caching.
StandardFormManager An implementation of UIFormManager suitable for general use.
StringUtil Utilities for String value manipulation.
TextEncoder A utility class for encoding and decoding text, used to preserve text formatting.
UIFormContext A contract between a user interface and the system.
UserWorkLog An accumulative logger for messages to be delivered to the user while the system does work.
XMLTextProcessing Provides raw text translation services for XML.
 

Exception Summary
AuthorizationException A specialized exception for reporting authorization problems.
DuplicateReferenceException A specialized exception for reporting duplicate references.
MailException A specialized exception for mail processing problems.
SandEncryptorException A specialized exception for UIFormManagers to complain with.
UIFormAdaptorException A specialized exception for UIFormAdaptors to complain with.
UIFormManagerConsoleException An extension of the standard UIFormManagerException indicating that the given error is best handled as a single message within a console display.
UIFormManagerException A specialized exception for UIFormManagers to complain with.
 

Package org.sandev.basics.util Description

The util package holds commonly used code which is intended for general programming. Use at will.

Utilities defined here do not require anything beyond standard java. They have no impact to application porting.