public abstract class AbstractDeveloperHelperService extends Object implements DeveloperHelperService
| Modifier and Type | Field and Description |
|---|---|
protected String |
CURRENT_USER_MARKER |
EntityBroker |
entityBroker |
EntityBrokerManager |
entityBrokerManager |
EntityPropertiesService |
entityProperties |
protected WeakReference<EntityRESTProvider> |
entityRESTProviderWeak |
static String |
GROUP_BASE
The site reference base
|
RequestStorage |
requestStorage |
static String |
URL_ENCODING
Encoding method to use when URL encoding
|
static String |
USER_BASE
The user reference base
|
ADMIN_USER_ID, ADMIN_USER_REF, SETTING_AUTO_DDL, SETTING_PORTAL_URL, SETTING_SERVER_ID, SETTING_SERVER_NAME, SETTING_SERVER_URL| Constructor and Description |
|---|
AbstractDeveloperHelperService()
EMPTY - do not use
|
AbstractDeveloperHelperService(EntityBroker entityBroker,
EntityBrokerManager entityBrokerManager)
MINIMAL
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationSetting, getCurrentLocationId, getCurrentToolReference, getCurrentUserId, getEntityReferencesForUserAndPermission, getPortalURL, getServerURL, getToolData, getToolViewURL, getUserReferencesForEntityReference, getUserRefFromUserEid, isUserAdmin, isUserAllowedInEntityReference, registerPermission, restoreCurrentUser, setCurrentUserprotected WeakReference<EntityRESTProvider> entityRESTProviderWeak
public static String URL_ENCODING
public static String GROUP_BASE
public static String USER_BASE
protected final String CURRENT_USER_MARKER
public EntityBroker entityBroker
public EntityBrokerManager entityBrokerManager
public RequestStorage requestStorage
public EntityPropertiesService entityProperties
public AbstractDeveloperHelperService()
public AbstractDeveloperHelperService(EntityBroker entityBroker, EntityBrokerManager entityBrokerManager)
entityBroker - the main EntityBroker serviceentityBrokerManager - the main EB manager servicepublic EntityRESTProvider getEntityRESTProvider()
public void setEntityRESTProvider(EntityRESTProvider entityRESTProvider)
entityRESTProvider - the encoding manager servicepublic Map<String,Object> decodeData(String data, String format)
decodeData in interface DeveloperHelperServicepublic String encodeData(Object data, String format, String name, Map<String,Object> properties)
encodeData in interface DeveloperHelperServicepublic void setEntityBroker(EntityBroker entityBroker)
public void setEntityBrokerManager(EntityBrokerManager entityBrokerManager)
public void setRequestStorage(RequestStorage requestStorage)
public void setEntityProperties(EntityPropertiesService entityProperties)
entityProperties - public boolean entityExists(String reference)
entityExists in interface DeveloperHelperServicepublic Object fetchEntity(String reference)
fetchEntity in interface DeveloperHelperServicepublic void fireEvent(String eventName, String reference)
fireEvent in interface DeveloperHelperServicepublic String getEntityURL(String reference, String viewKey, String extension)
getEntityURL in interface DeveloperHelperServicepublic Locale getCurrentLocale()
getCurrentLocale in interface DeveloperHelperServicepublic String getUserIdFromRef(String userReference)
getUserIdFromRef in interface DeveloperHelperServicepublic String getUserRefFromUserId(String userId)
getUserRefFromUserId in interface DeveloperHelperServicepublic String getCurrentUserReference()
getCurrentUserReference in interface DeveloperHelperServicepublic String getLocationIdFromRef(String locationReference)
getLocationIdFromRef in interface DeveloperHelperServicepublic String getCurrentLocationReference()
getCurrentLocationReference in interface DeveloperHelperServicepublic String getStartingLocationReference()
getStartingLocationReference in interface DeveloperHelperServicepublic String getUserHomeLocationReference(String userReference)
getUserHomeLocationReference in interface DeveloperHelperServicepublic String getToolIdFromToolRef(String toolReference)
getToolIdFromToolRef in interface DeveloperHelperServicepublic String getUserHomeLocationURL(String userReference)
getUserHomeLocationURL in interface DeveloperHelperServicepublic String getLocationReferenceURL(String locationReference)
getLocationReferenceURL in interface DeveloperHelperServicepublic boolean isEntityRequestInternal(String reference)
isEntityRequestInternal in interface DeveloperHelperServicereference - an entity reference stringpublic <T> T cloneBean(T bean,
int maxDepth,
String[] propertiesToSkip)
cloneBean in interface DeveloperHelperServicepublic void copyBean(Object orig, Object dest, int maxDepth, String[] fieldNamesToSkip, boolean ignoreNulls)
copyBean in interface DeveloperHelperServicepublic List<String> populate(Object object, Map<String,Object> properties)
populate in interface DeveloperHelperServicepublic <T> T convert(Object object, Class<T> type)
convert in interface DeveloperHelperServicepublic String getMessage(String prefix, String messageKey)
getMessage in interface DeveloperHelperServiceCopyright © 2007–2018 CARET, University of Cambridge. All rights reserved.