1 package org.apache.slide.projector.processor.security; 2 3 import java.util.Map ; 4 5 import org.apache.slide.projector.Context; 6 import org.apache.slide.projector.Processor; 7 import org.apache.slide.projector.Projector; 8 import org.apache.slide.projector.Result; 9 import org.apache.slide.projector.descriptor.ParameterDescriptor; 10 import org.apache.slide.projector.descriptor.ResultDescriptor; 11 import org.apache.slide.projector.descriptor.StateDescriptor; 12 13 16 17 public class Logout implements Processor { 18 private final static ParameterDescriptor[] parameterDescriptors = new ParameterDescriptor[0]; 19 private final static ResultDescriptor resultDescirptor = new ResultDescriptor(new StateDescriptor[] { 20 StateDescriptor.OK_DESCRIPTOR 21 }); 22 23 public Result process(Map parameter, Context context) throws Exception { 24 context.setCredentials(Projector.getCredentials()); 25 return Result.OK; 26 } 27 28 public ParameterDescriptor[] getParameterDescriptors() { 29 return parameterDescriptors; 30 } 31 32 public ResultDescriptor getResultDescriptor() { 33 return resultDescirptor; 34 } 35 } | Popular Tags |