|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.edir.SasTrackedObject | +--com.sas.edir.NonExEntity
This interface represents a non-existent entry in the Enterprise Directory. It may seem odd that we'd want to represent something that doesn't exist, but it's possible to have Map entries that point to DN's that have been deleted, so it's useful to have a placeholder for those things so the user can be alerted in a nice way that they have a problem, rather than either ignoring it so the broken link stays around forever, or throwing an exception.
Fields inherited from interface com.sas.edir.Entity |
PROPERTY_CHANGED, SUBPROPERTY_CHANGED |
Constructor Summary | |
NonExEntity(EnterpriseDirectory edir,
java.lang.String context)
Create a new non-existent entity object. |
|
NonExEntity(EnterpriseDirectory edir,
java.lang.String context,
java.io.PrintStream debugStream)
Create a new non-existent entity object. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener to the listener list. |
void |
edirUpdateStore()
Dummy method to satisfy the Caching interface. |
java.lang.String |
getContext()
Returns the context of this entity in the enterprise directory. |
java.lang.String |
getCreateTime()
Get operational attribute with creation time stamp. |
java.lang.String |
getCreatorsName()
Get operational attribute with Creator's DN |
java.lang.String |
getDescription()
Returns this entities' description. |
EnterpriseDirectory |
getEnterpriseDirectory()
Returns the enterprise directory service. |
java.lang.String |
getGuid()
Returns null |
java.lang.String |
getModifiersName()
Get operational attribute with Modifier's DN |
java.lang.String |
getModifyTime()
Get operational attribute with last modified time stamp. |
java.lang.String |
getName()
Returns this entities' name. |
java.lang.String |
getObjectclass()
Returns the objectClass of this entity. |
long |
getTimeToLive()
Dummy method to satisfy the Caching interface. |
boolean |
isExpired()
Dummy method to satisfy the Caching interface. |
boolean |
refreshCache()
Dummy method to satisfy the Caching interface. |
boolean |
refreshCachedObjects(EnterpriseDirectoryAttributes attributes)
Dummy method to satisfy the Caching interface. |
void |
releaseCache()
Dummy method to satisfy the Caching interface. |
void |
removeModificationItems()
This method does nothing |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener from the listener list. |
void |
setDescription(java.lang.String description)
Sets this entities' description. |
void |
setDirty()
Dummy method to satisfy the Caching interface. |
void |
setGuid(java.lang.String guid)
Sets this entities' guid. |
void |
setName(java.lang.String name)
Sets this entities' name. |
void |
setObjectclass(java.lang.String objectClass)
Sets the LDAP object class for this entity. |
void |
setTimeToLive(long seconds)
Dummy method to satisfy the Caching interface. |
void |
setTimeToLive(java.lang.String seconds)
Dummy method to satisfy the Caching interface. |
void |
updateStore()
Dummy method to satisfy the Caching interface. |
Methods inherited from class com.sas.edir.SasTrackedObject |
getTrackingId, getUserData, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sas.edir.TrackedObject |
getTrackingId, getUserData, setUserData |
Constructor Detail |
public NonExEntity(EnterpriseDirectory edir, java.lang.String context)
edir
- The enterprise directory service.context
- The DN where this object was expected to be, but wasn't.public NonExEntity(EnterpriseDirectory edir, java.lang.String context, java.io.PrintStream debugStream)
edir
- The enterprise directory service.context
- The DN where this object was expected to be, but wasn't.debugStream
- non-nil to turn on debugging.Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface Entity
listener
- The property change listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface Entity
listener
- The property change listener.public java.lang.String getContext()
getContext
in interface Entity
public java.lang.String getDescription()
getDescription
in interface Entity
public void setDescription(java.lang.String description)
This change is not persisted to the enterprise directory until updateStore is called.
setDescription
in interface Entity
description
- The description.public EnterpriseDirectory getEnterpriseDirectory()
getEnterpriseDirectory
in interface Entity
public java.lang.String getGuid()
getGuid
in interface Entity
public java.lang.String getName()
getName
in interface Entity
public void setName(java.lang.String name)
This change is not persisted to the enterprise directory until updateStore is called.
setName
in interface Entity
name
- The name.public java.lang.String getObjectclass()
getObjectclass
in interface Entity
public void setObjectclass(java.lang.String objectClass)
setObjectclass
in interface Entity
objectClass
- the object Class for this entitypublic boolean refreshCache()
refreshCache
in interface Caching
com.sas.edir.Caching
public boolean refreshCachedObjects(EnterpriseDirectoryAttributes attributes)
refreshCachedObjects
in interface Caching
com.sas.edir.Caching
attributes
- The attributes for the entity.public void updateStore()
updateStore
in interface Caching
com.sas.edir.Caching
NamingException
- Thrown for enterprise directory failure.public void edirUpdateStore()
edirUpdateStore
in interface Caching
com.sas.edir.Caching
EnterpriseDirectoryException
- Thrown for enterprise directory failure.public void releaseCache()
releaseCache
in interface Caching
public void setDirty()
setDirty
in interface Caching
public boolean isExpired()
isExpired
in interface Caching
public long getTimeToLive()
getTimeToLive
in interface Caching
com.sas.edir.Caching
public void setTimeToLive(long seconds)
setTimeToLive
in interface Caching
com.sas.edir.Caching
seconds
- The number of seconds this object's data should be
considered valid.public void setTimeToLive(java.lang.String seconds)
setTimeToLive
in interface Caching
com.sas.edir.Caching
seconds
- The number of seconds this object's data should be
considered valid.public java.lang.String getCreatorsName()
getCreatorsName
in interface Entity
public java.lang.String getModifiersName()
getModifiersName
in interface Entity
public java.lang.String getCreateTime()
getCreateTime
in interface Entity
public java.lang.String getModifyTime()
getModifyTime
in interface Entity
public void removeModificationItems()
removeModificationItems
in interface Entity
public void setGuid(java.lang.String guid)
This change is not persisted to the enterprise directory until updateStore is called.
setGuid
in interface Entity
guid
- The guid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |