Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making REST resources sharable between server and radio code base.
Moving necessary classes into one of the shared modules (this leads to changing a lot of files due to changed package names). Moving server's RestResource base class to shared module. Moving InputTypesResource as first shared REST resource to shared module. Adding dummy UserService implementation to radio module.
- Loading branch information
1 parent
0d538b9
commit 10aa654
Showing
120 changed files
with
294 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
graylog2-radio/src/main/java/org/graylog2/radio/users/NullUserServiceImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,80 @@ | |||
package org.graylog2.radio.users; | |||
|
|||
import org.graylog2.plugin.database.Persisted; | |||
import org.graylog2.plugin.database.ValidationException; | |||
import org.graylog2.plugin.database.users.User; | |||
import org.graylog2.plugin.database.validators.ValidationResult; | |||
import org.graylog2.plugin.database.validators.Validator; | |||
import org.graylog2.shared.security.ldap.LdapEntry; | |||
import org.graylog2.shared.security.ldap.LdapSettings; | |||
import org.graylog2.shared.users.UserService; | |||
|
|||
import java.util.List; | |||
import java.util.Map; | |||
|
|||
public class NullUserServiceImpl implements UserService { | |||
@Override | |||
public User load(String username) { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public User create() { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public List<User> loadAll() { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public User syncFromLdapEntry(LdapEntry userEntry, LdapSettings ldapSettings, String username) { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public void updateFromLdap(User user, LdapEntry userEntry, LdapSettings ldapSettings, String username) { | |||
|
|||
} | |||
|
|||
@Override | |||
public User getAdminUser() { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public <T extends Persisted> int destroy(T model) { | |||
return 0; | |||
} | |||
|
|||
@Override | |||
public <T extends Persisted> int destroyAll(Class<T> modelClass) { | |||
return 0; | |||
} | |||
|
|||
@Override | |||
public <T extends Persisted> String save(T model) throws ValidationException { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public <T extends Persisted> String saveWithoutValidation(T model) { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public <T extends Persisted> Map<String, List<ValidationResult>> validate(T model, Map<String, Object> fields) { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public <T extends Persisted> Map<String, List<ValidationResult>> validate(T model) { | |||
return null; | |||
} | |||
|
|||
@Override | |||
public Map<String, List<ValidationResult>> validate(Map<String, Validator> validators, Map<String, Object> fields) { | |||
return null; | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.