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
import edu.kit.scc.webreg.entity.UserEntity;
import edu.kit.scc.webreg.entity.RegistryEntity;
import edu.kit.scc.webreg.drools.UnauthorizedUser;
global org.slf4j.Logger logger;
/*
rule "Downtime rule"
when
$user : UserEntity()
not ( $registry : RegistryEntity( ) )
then
logger.info( "syncshare-downtime denied registration to {}", $user.getEppn() );
insert( new UnauthorizedUser($user, "syncshare-downtime") );
end
*/
rule "Email is set"
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