Class LocalProfilesProvider
java.lang.Object
pro.gravit.launchserver.auth.profiles.ProfilesProvider
pro.gravit.launchserver.auth.profiles.LocalProfilesProvider
- All Implemented Interfaces:
Reconfigurable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class pro.gravit.launchserver.auth.profiles.ProfilesProvider
ProfilesProvider.CompletedProfile, ProfilesProvider.ProfileAction, ProfilesProvider.UncompletedProfile, ProfilesProvider.UpdateFlag -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanFields inherited from class pro.gravit.launchserver.auth.profiles.ProfilesProvider
providers, server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String name, String description, ProfilesProvider.CompletedProfile reference) voidvoiddownload(ProfilesProvider.CompletedProfile profile, Map<String, Path> files, boolean assets) static voidexecute(pro.gravit.launcher.core.hasher.HashedDir dir, Path updatesDirPath, List<ProfilesProvider.ProfileAction> actions) static voidexecute(pro.gravit.launcher.core.hasher.HashedDir dir, Path updatesDirPath, ProfilesProvider.ProfileAction action) Gets a list of commands available for this object.getProfiles(Client client) pro.gravit.launcher.core.hasher.HashedDirpro.gravit.launcher.core.hasher.HashedDirgetUpdatesDir(String updateName) voidinit(LaunchServer server) pushUpdate(ProfilesProvider.UncompletedProfile profile, String tag, pro.gravit.launcher.base.profiles.ClientProfile clientProfile, List<ProfilesProvider.ProfileAction> assetActions, List<ProfilesProvider.ProfileAction> clientActions, List<ProfilesProvider.UpdateFlag> flags) voidvoidvoidsync(Collection<String> dirs) Methods inherited from class pro.gravit.launchserver.auth.profiles.ProfilesProvider
close, get, registerProvidersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.gravit.launchserver.Reconfigurable
defaultCommandsMap
-
Field Details
-
profilesDir
-
cacheFile
-
updatesDir
-
cacheUpdates
public boolean cacheUpdates
-
-
Constructor Details
-
LocalProfilesProvider
public LocalProfilesProvider()
-
-
Method Details
-
create
public ProfilesProvider.UncompletedProfile create(String name, String description, ProfilesProvider.CompletedProfile reference) - Specified by:
createin classProfilesProvider
-
delete
- Specified by:
deletein classProfilesProvider
-
getProfiles
- Specified by:
getProfilesin classProfilesProvider
-
pushUpdate
public ProfilesProvider.CompletedProfile pushUpdate(ProfilesProvider.UncompletedProfile profile, String tag, pro.gravit.launcher.base.profiles.ClientProfile clientProfile, List<ProfilesProvider.ProfileAction> assetActions, List<ProfilesProvider.ProfileAction> clientActions, List<ProfilesProvider.UpdateFlag> flags) throws IOException - Specified by:
pushUpdatein classProfilesProvider- Throws:
IOException
-
download
public void download(ProfilesProvider.CompletedProfile profile, Map<String, Path> files, boolean assets) throws IOException- Specified by:
downloadin classProfilesProvider- Throws:
IOException
-
getUnconnectedDirectory
- Specified by:
getUnconnectedDirectoryin classProfilesProvider
-
get
- Specified by:
getin classProfilesProvider
-
get
- Specified by:
getin classProfilesProvider
-
readProfilesDir
- Throws:
IOException
-
readUpdatesDir
- Throws:
IOException
-
sync
- Throws:
IOException
-
getUpdatesDir
-
init
- Overrides:
initin classProfilesProvider
-
execute
public static void execute(pro.gravit.launcher.core.hasher.HashedDir dir, Path updatesDirPath, List<ProfilesProvider.ProfileAction> actions) throws IOException - Throws:
IOException
-
execute
public static void execute(pro.gravit.launcher.core.hasher.HashedDir dir, Path updatesDirPath, ProfilesProvider.ProfileAction action) throws IOException - Throws:
IOException
-
getCommands
Description copied from interface:ReconfigurableGets a list of commands available for this object.- Specified by:
getCommandsin interfaceReconfigurable- Returns:
- Key - Command Name Value is a command object
-