Package com.sun.identity.sm
Class ServiceSchemaManagerImpl
- java.lang.Object
-
- com.sun.identity.sm.ServiceSchemaManagerImpl
-
- All Implemented Interfaces:
SMSObjectListener,EventListener
public class ServiceSchemaManagerImpl extends Object implements SMSObjectListener
The classServiceSchemaManagerImplprovides the internal implemation forServiceSchemaManager. There should be only one instance ofServiceSchemaManagerImplper service name and version. This class implements all the "read" methods and would receive notification when schema changes.
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.sm.SMSObjectListener
ADD, DELETE, MODIFY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallObjectsChanged()This callback notifies the listener that all object should be marked as "changed" or "dirty".booleanequals(Object o)protected voidfinalize()StringgetName()Returns the Service nameStringgetResourceName()The name to use in CREST representation.StringgetVersion()Returns the Service's versioninthashCode()booleanisValid()Returns if the object is still validvoidobjectChanged(String name, int type)This callback method is called by the EventService when the Directory Server triggers a PersistentSearch notificationStringprintListeners()StringtoString()StringtoXML(AMEncryption encryptObj)voidupdate()
-
-
-
Method Detail
-
isValid
public boolean isValid() throws SMSExceptionReturns if the object is still valid- Returns:
- validity of this object
- Throws:
SMSException
-
getName
public String getName()
Returns the Service name
-
getVersion
public String getVersion()
Returns the Service's version
-
getResourceName
public String getResourceName()
The name to use in CREST representation.
-
objectChanged
public void objectChanged(String name, int type)
Description copied from interface:SMSObjectListenerThis callback method is called by the EventService when the Directory Server triggers a PersistentSearch notification- Specified by:
objectChangedin interfaceSMSObjectListener
-
allObjectsChanged
public void allObjectsChanged()
Description copied from interface:SMSObjectListenerThis callback notifies the listener that all object should be marked as "changed" or "dirty". This callback is only used in the case when Event Service looses the directory connection and does not know what could have changed in the directory.- Specified by:
allObjectsChangedin interfaceSMSObjectListener
-
finalize
protected void finalize() throws Throwable
-
update
public void update()
-
toXML
public String toXML(AMEncryption encryptObj) throws SMSException
- Throws:
SMSException
-
printListeners
public String printListeners()
-
-