org.okiproject.serviceimpl.mit.roles
Class Qualifier

java.lang.Object
  |
  +--org.okiproject.serviceimpl.mit.roles.Qualifier
All Implemented Interfaces:
org.okiproject.serviceapi.roles.Qualifier, java.io.Serializable

public class Qualifier
extends java.lang.Object
implements org.okiproject.serviceapi.roles.Qualifier

Copyright (c) 2001 Massachusetts Institute of Technology

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

$Source: /cvs/oki/org/okiproject/serviceimpl/mit/doc/roles/org/okiproject/serviceimpl/mit/roles/Qualifier.html,v $

See Also:
Serialized Form

Constructor Summary
Qualifier(org.okiproject.serviceapi.roles.RolesFactory rolesFactory, java.lang.Object id, java.lang.String code, java.lang.String description, org.okiproject.serviceapi.roles.QualifierType qualifierType)
           
Qualifier(org.okiproject.serviceapi.roles.RolesFactory rolesFactory, java.util.Properties properties)
           
Qualifier(org.okiproject.serviceapi.roles.RolesFactory rolesFactory, java.lang.String code, java.lang.String description, org.okiproject.serviceapi.roles.QualifierType qualifierType)
           
 
Method Summary
 void addLink(org.okiproject.serviceapi.roles.Qualifier parent)
          Adds a parent-child relationship between two existing qualifiers in the Roles DB.
static org.okiproject.serviceapi.roles.Qualifier create(RolesFactory rolesFactory, org.okiproject.serviceapi.roles.QualifierType qualifierType, java.lang.String qualifierCode, java.lang.String qualifierDescription, org.okiproject.serviceapi.roles.Qualifier parent)
           
 void delete()
           
 void deleteLink()
          Deletes a parent-child relationship between two existing qualifiers in the Roles DB.
 java.lang.String getCode()
           
 java.lang.String getDescription()
           
 java.lang.Boolean getHasChild()
           
 java.lang.Object getId()
           
 java.util.Properties getProperties()
           
 org.okiproject.serviceapi.roles.QualifierType getQualifierType()
           
 RolesFactory getRolesFactory()
           
static Qualifier getRootQualifier(RolesFactory rolesFactory, org.okiproject.serviceapi.roles.QualifierType qualifierType)
           
 java.lang.Boolean isFoundInRoles()
           
 void moveLink(org.okiproject.serviceapi.roles.Qualifier oldParent, org.okiproject.serviceapi.roles.Qualifier newParent)
          For an existing qualifier, moves the parent link from one existing qualifier to another.
 void refresh()
           
 void setCode(java.lang.String code)
           
 void setId(java.lang.Object id)
           
 void setQualifierType(org.okiproject.serviceapi.roles.QualifierType qualifierType)
           
 void update(java.lang.String newQualifierCode, java.lang.String newDescription)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Qualifier

public Qualifier(org.okiproject.serviceapi.roles.RolesFactory rolesFactory,
                 java.util.Properties properties)

Qualifier

public Qualifier(org.okiproject.serviceapi.roles.RolesFactory rolesFactory,
                 java.lang.String code,
                 java.lang.String description,
                 org.okiproject.serviceapi.roles.QualifierType qualifierType)

Qualifier

public Qualifier(org.okiproject.serviceapi.roles.RolesFactory rolesFactory,
                 java.lang.Object id,
                 java.lang.String code,
                 java.lang.String description,
                 org.okiproject.serviceapi.roles.QualifierType qualifierType)
Method Detail

getRolesFactory

public RolesFactory getRolesFactory()

getProperties

public java.util.Properties getProperties()
Specified by:
getProperties in interface org.okiproject.serviceapi.roles.Qualifier

getId

public java.lang.Object getId()
Specified by:
getId in interface org.okiproject.serviceapi.roles.Qualifier

setId

public void setId(java.lang.Object id)
Specified by:
setId in interface org.okiproject.serviceapi.roles.Qualifier

getCode

public java.lang.String getCode()
Specified by:
getCode in interface org.okiproject.serviceapi.roles.Qualifier

setCode

public void setCode(java.lang.String code)
Specified by:
setCode in interface org.okiproject.serviceapi.roles.Qualifier

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface org.okiproject.serviceapi.roles.Qualifier

getQualifierType

public org.okiproject.serviceapi.roles.QualifierType getQualifierType()
Specified by:
getQualifierType in interface org.okiproject.serviceapi.roles.Qualifier

setQualifierType

public void setQualifierType(org.okiproject.serviceapi.roles.QualifierType qualifierType)
Specified by:
setQualifierType in interface org.okiproject.serviceapi.roles.Qualifier

getHasChild

public java.lang.Boolean getHasChild()
Specified by:
getHasChild in interface org.okiproject.serviceapi.roles.Qualifier

isFoundInRoles

public java.lang.Boolean isFoundInRoles()
                                 throws java.lang.Exception

refresh

public void refresh()
             throws java.lang.Exception

delete

public void delete()
            throws java.lang.Exception

update

public void update(java.lang.String newQualifierCode,
                   java.lang.String newDescription)
            throws java.lang.Exception

addLink

public void addLink(org.okiproject.serviceapi.roles.Qualifier parent)
             throws java.lang.Exception
Description copied from interface: org.okiproject.serviceapi.roles.Qualifier
Adds a parent-child relationship between two existing qualifiers in the Roles DB.
Specified by:
addLink in interface org.okiproject.serviceapi.roles.Qualifier

deleteLink

public void deleteLink()
                throws java.lang.Exception
Description copied from interface: org.okiproject.serviceapi.roles.Qualifier
Deletes a parent-child relationship between two existing qualifiers in the Roles DB.
Specified by:
deleteLink in interface org.okiproject.serviceapi.roles.Qualifier

moveLink

public void moveLink(org.okiproject.serviceapi.roles.Qualifier oldParent,
                     org.okiproject.serviceapi.roles.Qualifier newParent)
              throws java.lang.Exception
Description copied from interface: org.okiproject.serviceapi.roles.Qualifier
For an existing qualifier, moves the parent link from one existing qualifier to another.
Specified by:
moveLink in interface org.okiproject.serviceapi.roles.Qualifier

create

public static org.okiproject.serviceapi.roles.Qualifier create(RolesFactory rolesFactory,
                                                               org.okiproject.serviceapi.roles.QualifierType qualifierType,
                                                               java.lang.String qualifierCode,
                                                               java.lang.String qualifierDescription,
                                                               org.okiproject.serviceapi.roles.Qualifier parent)
                                                        throws java.lang.Exception

getRootQualifier

public static Qualifier getRootQualifier(RolesFactory rolesFactory,
                                         org.okiproject.serviceapi.roles.QualifierType qualifierType)
                                  throws java.lang.Exception