All Downloads are FREE. Search and download functionalities are using the official Maven repository.

li.strolch.policy.ReloadPoliciesJob Maven / Gradle / Ivy

The newest version!
package li.strolch.policy;

import li.strolch.agent.api.StrolchAgent;
import li.strolch.job.JobMode;
import li.strolch.job.StrolchJob;
import li.strolch.privilege.model.PrivilegeContext;

public class ReloadPoliciesJob extends StrolchJob {

	public ReloadPoliciesJob(StrolchAgent agent, String id, String name, JobMode mode) {
		super(agent, id, name, mode);
	}

	@Override
	protected void execute(PrivilegeContext ctx) {
		PolicyHandler policyHandler = getContainer().getComponent(PolicyHandler.class);
		policyHandler.reloadPolicies();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy