public abstract class AbstractDeveloperHelperService extends Object implements org.sakaiproject.entitybroker.DeveloperHelperService
| Modifier and Type | Field and Description |
|---|---|
protected String |
CURRENT_USER_MARKER |
org.sakaiproject.entitybroker.EntityBroker |
entityBroker |
org.sakaiproject.entitybroker.EntityBrokerManager |
entityBrokerManager |
org.sakaiproject.entitybroker.providers.EntityPropertiesService |
entityProperties |
protected WeakReference<org.sakaiproject.entitybroker.providers.EntityRESTProvider> |
entityRESTProviderWeak |
static String |
GROUP_BASE
The site reference base
|
org.sakaiproject.entitybroker.entityprovider.extension.RequestStorage |
requestStorage |
static String |
URL_ENCODING
Encoding method to use when URL encoding
|
static String |
USER_BASE
The user reference base
|
| Constructor and Description |
|---|
AbstractDeveloperHelperService()
EMPTY - do not use
|
AbstractDeveloperHelperService(org.sakaiproject.entitybroker.EntityBroker entityBroker,
org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager)
MINIMAL
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
cloneBean(T bean,
int maxDepth,
String[] propertiesToSkip) |
<T> T |
convert(Object object,
Class<T> type) |
void |
copyBean(Object orig,
Object dest,
int maxDepth,
String[] fieldNamesToSkip,
boolean ignoreNulls) |
Map<String,Object> |
decodeData(String data,
String format) |
String |
encodeData(Object data,
String format,
String name,
Map<String,Object> properties) |
boolean |
entityExists(String reference) |
Object |
fetchEntity(String reference) |
void |
fireEvent(String eventName,
String reference) |
Locale |
getCurrentLocale() |
String |
getCurrentLocationReference() |
String |
getCurrentUserReference() |
org.sakaiproject.entitybroker.providers.EntityRESTProvider |
getEntityRESTProvider() |
String |
getEntityURL(String reference,
String viewKey,
String extension) |
String |
getLocationIdFromRef(String locationReference) |
String |
getLocationReferenceURL(String locationReference) |
String |
getMessage(String prefix,
String messageKey) |
String |
getStartingLocationReference() |
String |
getToolIdFromToolRef(String toolReference) |
String |
getUserHomeLocationReference(String userReference) |
String |
getUserHomeLocationURL(String userReference) |
String |
getUserIdFromRef(String userReference) |
String |
getUserRefFromUserId(String userId) |
boolean |
isEntityRequestInternal(String reference)
Checks to see if a request is internal and therefore can bypass some or all security
|
List<String> |
populate(Object object,
Map<String,Object> properties) |
void |
setEntityBroker(org.sakaiproject.entitybroker.EntityBroker entityBroker) |
void |
setEntityBrokerManager(org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager) |
void |
setEntityProperties(org.sakaiproject.entitybroker.providers.EntityPropertiesService entityProperties)
Set this to include an optional properties handler
|
void |
setEntityRESTProvider(org.sakaiproject.entitybroker.providers.EntityRESTProvider entityRESTProvider)
Set this to include an optional encoding/decoding handler
|
void |
setRequestStorage(org.sakaiproject.entitybroker.entityprovider.extension.RequestStorage requestStorage) |
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<org.sakaiproject.entitybroker.providers.EntityRESTProvider> entityRESTProviderWeak
public static String URL_ENCODING
public static String GROUP_BASE
public static String USER_BASE
protected final String CURRENT_USER_MARKER
public org.sakaiproject.entitybroker.EntityBroker entityBroker
public org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager
public org.sakaiproject.entitybroker.entityprovider.extension.RequestStorage requestStorage
public org.sakaiproject.entitybroker.providers.EntityPropertiesService entityProperties
public AbstractDeveloperHelperService()
public AbstractDeveloperHelperService(org.sakaiproject.entitybroker.EntityBroker entityBroker,
org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager)
entityBroker - the main EntityBroker serviceentityBrokerManager - the main EB manager servicepublic org.sakaiproject.entitybroker.providers.EntityRESTProvider getEntityRESTProvider()
public void setEntityRESTProvider(org.sakaiproject.entitybroker.providers.EntityRESTProvider entityRESTProvider)
entityRESTProvider - the encoding manager servicepublic Map<String,Object> decodeData(String data, String format)
decodeData in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String encodeData(Object data, String format, String name, Map<String,Object> properties)
encodeData in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic void setEntityBroker(org.sakaiproject.entitybroker.EntityBroker entityBroker)
public void setEntityBrokerManager(org.sakaiproject.entitybroker.EntityBrokerManager entityBrokerManager)
public void setRequestStorage(org.sakaiproject.entitybroker.entityprovider.extension.RequestStorage requestStorage)
public void setEntityProperties(org.sakaiproject.entitybroker.providers.EntityPropertiesService entityProperties)
entityProperties - public boolean entityExists(String reference)
entityExists in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic Object fetchEntity(String reference)
fetchEntity in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic void fireEvent(String eventName, String reference)
fireEvent in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getEntityURL(String reference, String viewKey, String extension)
getEntityURL in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic Locale getCurrentLocale()
getCurrentLocale in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getUserIdFromRef(String userReference)
getUserIdFromRef in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getUserRefFromUserId(String userId)
getUserRefFromUserId in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getCurrentUserReference()
getCurrentUserReference in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getLocationIdFromRef(String locationReference)
getLocationIdFromRef in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getCurrentLocationReference()
getCurrentLocationReference in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getStartingLocationReference()
getStartingLocationReference in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getUserHomeLocationReference(String userReference)
getUserHomeLocationReference in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getToolIdFromToolRef(String toolReference)
getToolIdFromToolRef in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getUserHomeLocationURL(String userReference)
getUserHomeLocationURL in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic String getLocationReferenceURL(String locationReference)
getLocationReferenceURL in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic boolean isEntityRequestInternal(String reference)
isEntityRequestInternal in interface org.sakaiproject.entitybroker.DeveloperHelperServicereference - an entity reference stringpublic <T> T cloneBean(T bean,
int maxDepth,
String[] propertiesToSkip)
cloneBean in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic void copyBean(Object orig, Object dest, int maxDepth, String[] fieldNamesToSkip, boolean ignoreNulls)
copyBean in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic List<String> populate(Object object, Map<String,Object> properties)
populate in interface org.sakaiproject.entitybroker.DeveloperHelperServicepublic <T> T convert(Object object, Class<T> type)
convert in interface org.sakaiproject.entitybroker.DeveloperHelperServiceCopyright © 2007-2014 CARET, University of Cambridge. All Rights Reserved.