org.okiproject.serviceimpl.mit.roles
Class Authorization

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

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

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/Authorization.html,v $

See Also:
Serialized Form

Method Summary
static org.okiproject.serviceapi.roles.Authorization create(RolesFactory rolesFactory, org.okiproject.serviceapi.common.Person person, org.okiproject.serviceapi.roles.Function function, org.okiproject.serviceapi.roles.Qualifier qualifier, org.okiproject.serviceapi.roles.GrantPrivilege grant, java.lang.Boolean doFunction)
           
static org.okiproject.serviceapi.roles.Authorization create(RolesFactory rolesFactory, org.okiproject.serviceapi.common.Person person, org.okiproject.serviceapi.roles.Function function, org.okiproject.serviceapi.roles.Qualifier qualifier, org.okiproject.serviceapi.roles.GrantPrivilege grant, java.lang.Boolean doFunction, java.sql.Timestamp effectiveDate, java.sql.Timestamp expirationDate)
           
 void delete()
           
 org.okiproject.serviceapi.roles.GrantPrivilege getCanForUserGrant()
           
 java.lang.Boolean getDoFunction()
           
 java.sql.Timestamp getEffectiveDate()
           
 java.sql.Timestamp getExpirationDate()
           
 org.okiproject.serviceapi.roles.Function getFunction()
           
 org.okiproject.serviceapi.roles.GrantPrivilege getGrant()
           
 java.lang.Object getId()
           
 java.lang.String getModifiedBy()
           
 java.sql.Timestamp getModifiedDate()
           
 org.okiproject.serviceapi.common.Person getPerson()
           
 java.util.Properties getProperties()
           
 org.okiproject.serviceapi.roles.Qualifier getQualifier()
           
 RolesFactory getRolesFactory()
           
 java.lang.Boolean isActiveNow()
           
static java.lang.Boolean isAuthorized(RolesFactory rolesFactory, org.okiproject.serviceapi.common.Person person, Function function, Qualifier qualifier)
           
 void update(org.okiproject.serviceapi.common.Person person, org.okiproject.serviceapi.roles.Function function, org.okiproject.serviceapi.roles.Qualifier qualifier, org.okiproject.serviceapi.roles.GrantPrivilege grant, java.lang.Boolean doFunction, java.sql.Timestamp effectiveDate, java.sql.Timestamp expirationDate)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRolesFactory

public RolesFactory getRolesFactory()

getProperties

public java.util.Properties getProperties()

getId

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

getPerson

public org.okiproject.serviceapi.common.Person getPerson()
Specified by:
getPerson in interface org.okiproject.serviceapi.roles.Authorization

getFunction

public org.okiproject.serviceapi.roles.Function getFunction()
Specified by:
getFunction in interface org.okiproject.serviceapi.roles.Authorization

getQualifier

public org.okiproject.serviceapi.roles.Qualifier getQualifier()
Specified by:
getQualifier in interface org.okiproject.serviceapi.roles.Authorization

getGrant

public org.okiproject.serviceapi.roles.GrantPrivilege getGrant()
Specified by:
getGrant in interface org.okiproject.serviceapi.roles.Authorization

getCanForUserGrant

public org.okiproject.serviceapi.roles.GrantPrivilege getCanForUserGrant()
Specified by:
getCanForUserGrant in interface org.okiproject.serviceapi.roles.Authorization

getDoFunction

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

getEffectiveDate

public java.sql.Timestamp getEffectiveDate()
Specified by:
getEffectiveDate in interface org.okiproject.serviceapi.roles.Authorization

getExpirationDate

public java.sql.Timestamp getExpirationDate()
Specified by:
getExpirationDate in interface org.okiproject.serviceapi.roles.Authorization

isActiveNow

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

getModifiedBy

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

getModifiedDate

public java.sql.Timestamp getModifiedDate()
Specified by:
getModifiedDate in interface org.okiproject.serviceapi.roles.Authorization

delete

public void delete()
            throws java.lang.Exception

update

public void update(org.okiproject.serviceapi.common.Person person,
                   org.okiproject.serviceapi.roles.Function function,
                   org.okiproject.serviceapi.roles.Qualifier qualifier,
                   org.okiproject.serviceapi.roles.GrantPrivilege grant,
                   java.lang.Boolean doFunction,
                   java.sql.Timestamp effectiveDate,
                   java.sql.Timestamp expirationDate)
            throws java.lang.Exception

create

public static org.okiproject.serviceapi.roles.Authorization create(RolesFactory rolesFactory,
                                                                   org.okiproject.serviceapi.common.Person person,
                                                                   org.okiproject.serviceapi.roles.Function function,
                                                                   org.okiproject.serviceapi.roles.Qualifier qualifier,
                                                                   org.okiproject.serviceapi.roles.GrantPrivilege grant,
                                                                   java.lang.Boolean doFunction)
                                                            throws java.lang.Exception

create

public static org.okiproject.serviceapi.roles.Authorization create(RolesFactory rolesFactory,
                                                                   org.okiproject.serviceapi.common.Person person,
                                                                   org.okiproject.serviceapi.roles.Function function,
                                                                   org.okiproject.serviceapi.roles.Qualifier qualifier,
                                                                   org.okiproject.serviceapi.roles.GrantPrivilege grant,
                                                                   java.lang.Boolean doFunction,
                                                                   java.sql.Timestamp effectiveDate,
                                                                   java.sql.Timestamp expirationDate)
                                                            throws java.lang.Exception

isAuthorized

public static java.lang.Boolean isAuthorized(RolesFactory rolesFactory,
                                             org.okiproject.serviceapi.common.Person person,
                                             Function function,
                                             Qualifier qualifier)
                                      throws java.lang.Exception