Commit 9c51e329 authored by michael.simon's avatar michael.simon
Browse files

downtime example in bwsync&share

parent c3d60890
package edu.kit.scc.webreg.dools.unicluster package edu.kit.scc.webreg.dools.unicluster
import edu.kit.scc.webreg.entity.UserEntity; import edu.kit.scc.webreg.entity.UserEntity;
import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.drools.UnauthorizedUser; import edu.kit.scc.webreg.drools.UnauthorizedUser;
global org.slf4j.Logger logger; global org.slf4j.Logger logger;
rule "Downtime rule"
$user : UserEntity()
not ( $registry : RegistryEntity( ) )
then "syncshare-downtime denied registration to {}", $user.getEppn() );
insert( new UnauthorizedUser($user, "syncshare-downtime") );
rule "Email is set" rule "Email is set"
when when
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment