Examples of Subject


Examples of aitgame.diploma.Subject

        g.setFont(new Font("Dialog", Font.BOLD, 10));      
        int i = 0;
        Iterator<Subject> subjects = gradeManager.getSubjects();
        while(subjects.hasNext()){
         
          Subject sub = subjects.next();
          g.drawString(sub.getSubjectName(), 265, 245+i*12);
          g.drawString(sub.getSubjectGrade(), 505, 245+i*12);
          g.drawString("" + sub.getSubjectPoints(), 565, 245+i*12);
          g.drawString(sub.getSubjectDate(), 625, 245+i*12);
          i++;
        }
       
  }
View Full Code Here

Examples of br.unicamp.ic.example.subject.Subject

import br.unicamp.ic.example.observer.Observer2;
import br.unicamp.ic.example.subject.Subject;

public class Main {
  public static void main(String args[]) {
    Subject s = new Subject();
    Observer1 o1 = new Observer1(s);
    Observer2 o2 = new Observer2(s);
   
    s.change_state();
  }
View Full Code Here

Examples of com.cardence.lawshelf.cfr.jaxb.SUBJECT

  @SuppressWarnings("restriction")
  private String getSectionTitleTextFromSection() {
    for (Object obj : section.getSUBJECTOrAUTHOrAPPRO()) {
      if (obj instanceof SUBJECT) {
        final SUBJECT subject = (SUBJECT) obj;
        CfrContentContainer content = new CfrContentContainer();
        content.addContentList(subject.getContent());
        return content.getContentText();
      }
    }
    for (Object obj : section.getSUBJECTOrAUTHOrAPPRO()) {
      if (obj instanceof JAXBElement) {
View Full Code Here

Examples of com.exigen.ie.constrainer.Subject

    private int     _event_mask;

    public void undoable(Undoable u)
    {
      super.undoable(u);
      Subject subject = (Subject) u;
      _event_mask = subject.publisherMask();
    }
View Full Code Here

Examples of com.ibs.academic.models.Subject

    private Subject item;
    private DAOSubject daoSubject;

    @PostConstruct
    public void init() {
        item = new Subject();
        daoSubject = DAOSubject.getInstance();
        list = daoSubject.find().asList();

    }
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.Subject

    if (clientID == null)
      throw new IllegalArgumentException("The client ID must not be null");

    iss = new Issuer(clientID.getValue());

    sub = new Subject(clientID.getValue());

   
    if (aud == null)
      throw new IllegalArgumentException("The audience must not be null");
View Full Code Here

Examples of com.secondstack.training.spring.extjs.domain.Subject

    @RequestMapping(params = {"id"}, method = RequestMethod.GET)
    @ResponseBody
    public Subject findById(@RequestParam("id") Integer id) {
        logger.debug("Received rest request to get data subject");
        Subject subject = subjectService.findById(id);
        return subject;
    }
View Full Code Here

Examples of com.sissi.protocol.message.Subject

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JID group = super.build(protocol.getTo());
    String subject = room.build(group).pull(Dictionary.FIELD_SUBJECT, String.class);
    if (subject != null) {
      context.write(new Message().noneThread().subject(new Subject(subject)).setType(MessageType.GROUPCHAT).setFrom(group.resource(super.ourRelation(context.jid(), group).name())));
    }
    return true;
  }
View Full Code Here

Examples of com.sun.xacml.ctx.Subject

        for (Attribute attr : role.getAttributes()) {
            subjectAttributes.add(attr);
        }

        Subject subject = new Subject(subjectAttributes);
        subjects.add(subject);

    }
View Full Code Here

Examples of com.sun.xml.wss.saml.Subject

        String role = null;
       
        try{
            Assertion assertion = AssertionUtil.fromElement(assertionEle);

            Subject subject = null;
            NameID nameID = null;

            // SAML 2.0
            try {
                subject = assertion.getSubject();
            } catch (Exception ex){
                subject = null;
            }

            if (subject != null){
                nameID = subject.getNameId();
            }

            List<Object> statements = assertion.getStatements();
            for (Object s : statements){
                if (s instanceof AttributeStatement){
                    List<Attribute> samlAttrs = ((AttributeStatement)s).getAttributes();
                    for (Attribute samlAttr : samlAttrs){
                        String attrName = samlAttr.getName();
                        String attrValue = ((Element)samlAttr.getAttributes().iterator().next()).getFirstChild().getNodeValue();

                        if (attrName.equals("ActAs")){
                            actAs = attrValue;
                        } else if (attrName.equals("Role")){
                            role = attrValue;
                        }
                    }

                    // for SAML 1.0, 1.1
                    if (subject == null){
                        subject = ((AttributeStatement)s).getSubject();
                    }
                } else if (s instanceof AuthenticationStatement){
                    subject = ((AuthenticationStatement)s).getSubject();
                }
            }

            // Get the user identifier in the Subject:
            if (nameID != null){
                //SAML 2.0 case
                name = nameID.getValue();
            }else{
                // SAML 1.0, 1.1. case
                NameIdentifier nameIdentifier = subject.getNameIdentifier();
                if (nameIdentifier != null){
                    name = nameIdentifier.getValue();
                }
            }
        }catch (Exception ex){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.