Skip to content

Commit

Permalink
Mock updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff committed Apr 18, 2024
1 parent c20f715 commit 65b5b80
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: Java CI with Maven

on:
push:
pull_request:

jobs:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@
/target/
.idea
*.iml
*.ipr
*.iws
.java-version
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

import org.sakaiproject.authz.api.SecurityAdvisor;
import org.sakaiproject.authz.api.SecurityService;
import org.sakaiproject.exception.IdUnusedException;
import org.sakaiproject.exception.SakaiException;
import org.sakaiproject.site.api.Site;
import org.sakaiproject.user.api.User;

/**
Expand All @@ -33,11 +30,6 @@
public class MockSecurityService implements SecurityService
{

@Override
public void changeToRoleViewOnSite( Site site, String role ) throws SakaiException
{
}

@Override
public void clearAdvisors()
{
Expand Down Expand Up @@ -68,8 +60,7 @@ public boolean isSuperUser( String userId )
}

@Override
public boolean isUserRoleSwapped() throws IdUnusedException
{
public boolean isUserRoleSwapped() {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,19 @@ public Set<String> getCommaSeparatedListAsSet(String key) {
throw new UnsupportedOperationException( "Not supported yet." );
}

@Override
public String getSmtpServer() {
return "";
}

@Override
public String getSmtpFrom() {
return "";
}

@Override
public String getSmtpPort() {
return "";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
Expand All @@ -33,6 +32,7 @@
import org.sakaiproject.exception.IdUnusedException;
import org.sakaiproject.exception.IdUsedException;
import org.sakaiproject.exception.PermissionException;
import org.sakaiproject.exception.SakaiException;
import org.sakaiproject.javax.PagingPosition;
import org.sakaiproject.site.api.AllowedJoinableAccount;
import org.sakaiproject.site.api.Group;
Expand Down Expand Up @@ -511,6 +511,11 @@ public String merge( String toSiteId, Element e, String creatorId )
return "";
}

@Override
public void activateRoleViewOnSite(String s, String s1) throws SakaiException {

}

@Override
public String merge( String siteId, Element root, String archivePath, String fromSiteId, Map<String, String> attachmentNames, Map<String, String> userIdTrans, Set<String> userListAllowImport )
{
Expand Down

0 comments on commit 65b5b80

Please sign in to comment.