Class ProfilesProvider
java.lang.Object
pro.gravit.launchserver.auth.profiles.ProfilesProvider
- Direct Known Subclasses:
LocalProfilesProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final pro.gravit.utils.ProviderMap<ProfilesProvider> protected LaunchServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()abstract ProfilesProvider.UncompletedProfilecreate(String name, String description, ProfilesProvider.CompletedProfile basic) abstract voidabstract voiddownload(ProfilesProvider.CompletedProfile profile, Map<String, Path> files, boolean assets) abstract ProfilesProvider.CompletedProfileabstract ProfilesProvider.CompletedProfileget(ProfilesProvider.UncompletedProfile profile) abstract Set<ProfilesProvider.UncompletedProfile> getProfiles(Client client) abstract pro.gravit.launcher.core.hasher.HashedDirvoidinit(LaunchServer server) abstract ProfilesProvider.CompletedProfilepushUpdate(ProfilesProvider.UncompletedProfile profile, String tag, pro.gravit.launcher.base.profiles.ClientProfile clientProfile, List<ProfilesProvider.ProfileAction> assetActions, List<ProfilesProvider.ProfileAction> clientActions, List<ProfilesProvider.UpdateFlag> flags) static void
-
Field Details
-
providers
-
server
-
-
Constructor Details
-
ProfilesProvider
public ProfilesProvider()
-
-
Method Details
-
registerProviders
public static void registerProviders() -
init
-
create
public abstract ProfilesProvider.UncompletedProfile create(String name, String description, ProfilesProvider.CompletedProfile basic) -
delete
-
getProfiles
-
pushUpdate
public abstract 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 - Throws:
IOException
-
download
public abstract void download(ProfilesProvider.CompletedProfile profile, Map<String, Path> files, boolean assets) throws IOException- Throws:
IOException
-
getUnconnectedDirectory
-
get
-
get
-
get
-
close
public void close()
-