Class DeveloperHelperServiceMock

  • All Implemented Interfaces:
    org.sakaiproject.entitybroker.DeveloperHelperService

    public class DeveloperHelperServiceMock
    extends AbstractDeveloperHelperService
    This is the Mock for the developer helper service, allows the service to always be available even when someone has not implemented it for the system that is using EB
    Author:
    Aaron Zeckoski (azeckoski @ gmail.com)
    • Field Detail

      • defaultLocationId

        public static String defaultLocationId
      • defaultLocationRef

        public static String defaultLocationRef
      • defaultToolId

        public static String defaultToolId
      • defaultToolRef

        public static String defaultToolRef
      • defaultUserId

        public static String defaultUserId
      • defaultUserEid

        public static String defaultUserEid
      • defaultUserRef

        public static String defaultUserRef
      • currentUserRef

        public static String currentUserRef
      • lastCurrentUser

        public static String lastCurrentUser
      • defaultServerURL

        public static String defaultServerURL
      • defaultPortalURL

        public static String defaultPortalURL
      • defaultEntityRef

        public static String defaultEntityRef
      • defaultPermAllowed

        public static String defaultPermAllowed
    • Constructor Detail

      • DeveloperHelperServiceMock

        public DeveloperHelperServiceMock()
    • Method Detail

      • getConfigurationSetting

        public <T> T getConfigurationSetting​(String settingName,
                                             T defaultValue)
      • getCurrentLocationId

        public String getCurrentLocationId()
      • getCurrentToolReference

        public String getCurrentToolReference()
      • getCurrentUserId

        public String getCurrentUserId()
      • restoreCurrentUser

        public String restoreCurrentUser()
      • setCurrentUser

        public String setCurrentUser​(String userReference)
      • getPortalURL

        public String getPortalURL()
      • getServerURL

        public String getServerURL()
      • getToolData

        public org.sakaiproject.entitybroker.util.SakaiToolData getToolData​(String toolRegistrationId,
                                                                            String locationReference)
      • getUserRefFromUserEid

        public String getUserRefFromUserEid​(String userEid)
      • getEntityReferencesForUserAndPermission

        public Set<String> getEntityReferencesForUserAndPermission​(String userReference,
                                                                   String permission)
      • getUserReferencesForEntityReference

        public Set<String> getUserReferencesForEntityReference​(String reference,
                                                               String permission)
      • isUserAdmin

        public boolean isUserAdmin​(String userReference)
      • isUserAllowedInEntityReference

        public boolean isUserAllowedInEntityReference​(String userReference,
                                                      String permission,
                                                      String reference)
      • registerPermission

        public void registerPermission​(String permission)