org.apache.jetspeed.om.security.ldap
Class LDAPPermission
java.lang.Object
org.apache.jetspeed.om.security.ldap.BaseLDAPObject
org.apache.jetspeed.om.security.ldap.LDAPPermission
- All Implemented Interfaces:
- javax.naming.Context, javax.naming.directory.DirContext, Permission
- public class LDAPPermission
- extends BaseLDAPObject
- implements Permission
- Version:
- $Id: LDAPPermission.java,v 1.5 2004/02/23 03:12:13 jford Exp $
- Author:
- Ender KILICOGLU, Sami Leino
Fields inherited from interface javax.naming.directory.DirContext |
ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE |
Fields inherited from interface javax.naming.Context |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
Method Summary |
java.lang.String |
getId()
Get the id of the Permission |
java.lang.String |
getName()
Get the name of the Permission |
boolean |
isNew()
|
void |
setId(java.lang.String id)
Set the id of the Permission |
void |
setName(java.lang.String permissionName)
Set the name of the Permission |
void |
update(boolean create)
|
Methods inherited from class org.apache.jetspeed.om.security.ldap.BaseLDAPObject |
addToEnvironment, bind, bind, bind, bind, close, composeName, composeName, createId, createSubcontext, createSubcontext, createSubcontext, createSubcontext, deserializePerm, destroySubcontext, destroySubcontext, fastgetutil, formatDate, getAttributes, getAttributes, getAttributes, getAttributes, getEnvironment, getldapurl, getNameInNamespace, getNameParser, getNameParser, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, getupdated, getutil, getutil, getutil, getutil, isOK, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, parseDate, parseDate, rebind, rebind, rebind, rebind, removeFromEnvironment, removeutil, rename, rename, search, search, search, search, search, search, search, search, serializePerm, setLdapUrl, setObjectClass, setObjectClasses, setutil, setutil, setutil, setutil, toString, unbind, unbind |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OBJECT_CLASS
protected static final java.lang.String OBJECT_CLASS
- See Also:
- Constant Field Values
ORGANIZATIONAL_UNIT
protected static final java.lang.String ORGANIZATIONAL_UNIT
- See Also:
- Constant Field Values
ATTR_PERMISSION_NAME
protected static final java.lang.String ATTR_PERMISSION_NAME
- See Also:
- Constant Field Values
ATTR_PERMISSION_ID
protected static final java.lang.String ATTR_PERMISSION_ID
- See Also:
- Constant Field Values
name
protected java.lang.String name
id
protected java.lang.String id
isNew
protected boolean isNew
LDAPPermission
public LDAPPermission()
LDAPPermission
public LDAPPermission(java.lang.String id)
LDAPPermission
public LDAPPermission(java.lang.String name,
boolean isNew)
LDAPPermission
public LDAPPermission(LDAPURL ldapurl)
update
public void update(boolean create)
throws PermissionException
- Throws:
PermissionException
getName
public java.lang.String getName()
- Get the name of the Permission
- Specified by:
getName
in interface Permission
- Overrides:
getName
in class BaseLDAPObject
- Returns:
- the name of the permission.
setName
public void setName(java.lang.String permissionName)
- Set the name of the Permission
- Specified by:
setName
in interface Permission
- Overrides:
setName
in class BaseLDAPObject
- Parameters:
permissionName
- the name of the Permission.
getId
public java.lang.String getId()
- Get the id of the Permission
- Specified by:
getId
in interface Permission
- Overrides:
getId
in class BaseLDAPObject
- Returns:
- the id of the permission.
setId
public void setId(java.lang.String id)
- Set the id of the Permission
- Specified by:
setId
in interface Permission
- Overrides:
setId
in class BaseLDAPObject
- Parameters:
id
- the new id for the permission
isNew
public boolean isNew()
- Overrides:
isNew
in class BaseLDAPObject
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.