Package org.cyclos.impl.utils
-
Interface Summary Interface Description BarcodeHandler Handler to generate barcode images.BooleanPropertiesHolder<K> Holds the relation between objects and correspondingBooleanPropertiesExpirableStorage<K,V,R extends BiPredicate<K,V>> Represents a key / value store whose values expire.IdMask Interface for an id mask.InputOutputProcessingHandler Processes parameters when sending data between the server and the clientsInternetAddressListHandler HandlesInternetAddressListentitiesLinkGeneratorHandler Generates links for various URLs in CyclosLocalStorage<K,V> AnExpirableStorageto be used locally.PushNotificationHandler Handler for using push notificationsReplicatedStorage<K,V> Represents a key / value store whose values never expire.RestBeanPropertyMapping Provides a mapping between the regular model properties and properties in REST modelsRichTextHandler Contains methods to handle rich text formatting, as well as replacing image URL's with internal tags.SerializableBiPredicate<T,U> A bi-predicate that is also serializableSerializableFunction<T,R> A function that is also serializableSerializablePredicate<T> A predicate that is also serializableSerializableRunnable A runnable that is also serializableSharedStorage<K extends Serializable,V extends Serializable> AnExpirableStoragewhich, when running in a cluster, provides an unified view of the store for all cluster nodes.Storage<K,V> Represents a key / value store whose values never expire.WrappedObject Represents an object which was wrapped to another form, and can be unwrapped in the current application context -
Class Summary Class Description AbstractIdMask Base implementation for IdMaskAbstractPushNotificationHandlerImpl Base implementation forPushNotificationHandlersAbstractUserVisibilityApplier Base class for the user visibility appliers.
The idea behind such appliers is to add a bottom-line of filters to ensure only data the logged user can view is returned as a result in a search.
IMPORTANT: Please make sure all sub-classes are in sync according to the business rules
The concrete sub-classes are:JPAUserVisibilityApplier,SQLUserVisibilityApplier,ElasticUserVisibilityApplier
Obtained from:DBQuery.visibility(org.cyclos.entities.users.QUser),NativeQuery.visibility(com.querydsl.core.types.dsl.NumberPath, com.querydsl.core.types.dsl.NumberPath)andElasticsearchEntitySearchHandlerImpl.visibility(org.cyclos.impl.search.elasticsearch.QueryAccessor)BarcodeHandlerImpl Implementation forBarcodeHandlerBaseFactoryBeanFromProperties<T extends CustomBean> Base class for factory beans which read a class name from CyclosPropertiesBaseWithCustomValuesMap Base class for maps which wraps an object which contains custom field values.BeanAccessor BeanFormatter ABeanAccessorwhich may also get formatted propertiesBooleanProperties Stores a set of boolean flags, indexed by propertiesBooleanPropertiesHolderImpl<K> Iterablecontaining a map from K toBooleanProperties.
Each iteration is a map with all boolean properties plus the mappingBooleanPropertiesHolderImpl.keyPropertyName-> K.CipherIdMask CompressImages Compresses all images in a given directory.ConvertingBeanMap AMapinterface to a JavaBean, converting properties using aConversionHandlerCustomResourceBundleControl Custom resource bundle control used to read the .properties files as UTF-8 and don't fallback to the default LocaleCustomValuesMap A Map that converts values to the correct type, according to the given custom fieldsElasticUserVisibilityApplier EntityWithCustomValuesMap Wraps an entity which implementsEntityWithCustomValuesin a Map interface.GuavaLocalStorage<K,V> AExpirableStorageimplementation using a Guava cacheGuavaSharedStorage<K extends Serializable,V extends Serializable> ASharedStorageimplementation using aConcurrentHashMapGuavaStorage<K,V,R extends BiPredicate<K,V>> AExpirableStorageimplementation using a Guava cacheHashHelper Helper methods for hash stringsHtmlSanitizerPolicy Based on the AntiSamy EBay example.IdCipher A simple block cipher implementation for masking entity identifiersIdMaskCipher IdMaskJacksonConfiguration A Jackson configuration for an ObjectMapper that applies / removesIdMaskfor Long valuesInputOutputProcessingHandlerImpl Implementation forInputOutputProcessingHandlerInternetAddressListHandlerImpl Implementation forInternetAddressListHandlerJPAUserVisibilityApplier LinkGeneratorHandlerImpl LocaleVOConverter MapSessionStore A Pac4jSessionStoreimplementation that stores attributes in aMapModelWithCustomValuesMap Wraps a model object which implementsModelWithCustomValuesin a Map interface.NoClusterPushNotificationHandlerImpl APushNotificationHandlerused when there is no clusterNoOpIdMask AnIdMaskwhich doesn't change the input longPasswordActionHelper Helper class for password actionsPasswordHelper Helper methods for process and validate passwordsPermissionHelper Contains helper methods for permission checksPhoneNumberHelper Helper for working with PhoneNumberUtil methods, wrapping invalid region codesPushNotificationEventContext<T> The context for a push notification event.PushNotificationSubscriptionMatcher Contains data used to match a push notification subscription toPushNotificationEventContextQueryHelper Contains helper methods for querydslRequestInfoWebContext RestBeanPropertyMappingImpl Implementation forRestBeanPropertyMappingRestTemplateFactoryBean Builds and configures aRestTemplatefor the applicationRichTextHandlerImpl Implementation forRichTextHandlerSQLUserVisibilityApplier TabularPrinter Utility to format data as a table.ToStringComparator A comparator that uses the 2 object's toString to compare -
Enum Summary Enum Description LinkType Possible types of links to be generated by theLinkGeneratorHandlerRichTextHandlerImpl.URLTag -
Exception Summary Exception Description BreakException An exception used to break inner loops