org.exoplatform.services.jcr.ext.organization
Class CommonHandler

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.organization.CommonHandler
Direct Known Subclasses:
GroupHandlerImpl, MembershipHandlerImpl, MembershipTypeHandlerImpl, UserHandlerImpl, UserProfileHandlerImpl

public abstract class CommonHandler
extends java.lang.Object

Created by The eXo Platform SAS.
Date: 7 10 2008

Version:
$Id: CommonHandler.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Anatoliy Bazko

Constructor Summary
CommonHandler()
           
 
Method Summary
 java.util.Date readDateProperty(javax.jcr.Node node, java.lang.String prop)
          This method read property data from node in the storage.
 java.lang.String readStringProperty(javax.jcr.Node node, java.lang.String prop)
          This method read property data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonHandler

public CommonHandler()
Method Detail

readDateProperty

public java.util.Date readDateProperty(javax.jcr.Node node,
                                       java.lang.String prop)
                                throws java.lang.Exception
This method read property data from node in the storage.

Parameters:
node - The node to read from
prop - The property name which need to read
Returns:
The property data as date if exist and null if not
Throws:
java.lang.Exception - An exception is thrown if the method cannot access the database

readStringProperty

public java.lang.String readStringProperty(javax.jcr.Node node,
                                           java.lang.String prop)
                                    throws java.lang.Exception
This method read property data.

Parameters:
node - The node to read from
prop - The property name which need to read
Returns:
The property data as string if exist and null if not
Throws:
java.lang.Exception - An exception is thrown if the method cannot access the database


Copyright © 2010 eXo Platform SAS. All Rights Reserved.