com.wles.util
Class RuleParser.Subject

java.lang.Object
  extended bycom.wles.util.RuleParser.QualifiedElement
      extended bycom.wles.util.RuleParser.Subject
Direct Known Subclasses:
RuleParser.ScopedSubject, RuleParser.SubjectRole
Enclosing class:
RuleParser

public abstract static class RuleParser.Subject
extends RuleParser.QualifiedElement

Base class representation of subjects (User, Group, Role). This class is abstract, see User, Group, Role


Method Summary
static SubjectBuilder.Parts deconstruct(java.lang.String qualifiedName, java.lang.String qualifier)
          Decompose the qualified subject into SubjectBuilder.Parts.
static RuleParser.Subject parse(java.lang.String subject)
          Parse the subject string and return a Subject object.
 void validate()
          Validate that the internal string is a syntatically correct subject name.
 
Methods inherited from class com.wles.util.RuleParser.QualifiedElement
equals, getName, getQualifiedName, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

deconstruct

public static SubjectBuilder.Parts deconstruct(java.lang.String qualifiedName,
                                               java.lang.String qualifier)
                                        throws RuleParser.ParsingException
Decompose the qualified subject into SubjectBuilder.Parts.

Throws:
RuleParser.ParsingException

parse

public static RuleParser.Subject parse(java.lang.String subject)
                                throws RuleParser.ParsingException
Parse the subject string and return a Subject object. The returned type will be one of User, SubjectGroup, SubjectRole

Throws:
RuleParser.ParsingException

validate

public void validate()
              throws RuleParser.ParsingException
Validate that the internal string is a syntatically correct subject name.

Specified by:
validate in class RuleParser.QualifiedElement
Throws:
RuleParser.ParsingException


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.