Jump to content
Sign in to follow this  
ciky_girlz

Cara Nk Guna Uportal?

Recommended Posts

salam..

cam maner nk wat klu netbeans ada error(tanda merah)...sy nk guna utk web application..

error ni menyebabkn sy x dpt nk progress yg lain...

saper yg ada penglaman guna uportal..

plz help me.. :(

Share this post


Link to post
Share on other sites

sy nk guna netbeans ni ngan uportal...

lps setup abis smua ada error kat source package..

sbanrnya sya pun bru nk xplore mende ni..still x berape phm lagi..

sy guna uportal 2.5.3, netbeans 6.1 n jdk 1.5.0

ni error dia...

[b]import EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap; /*error*/
import EDU.oswego.cs.dl.util.concurrent.ReadWriteLock;             /*error*/
import EDU.oswego.cs.dl.util.concurrent.ReentrantWriterPreferenceRe
adWriteLock;                                                     /*error*/

/**
 * This class extends RDBMUserLayoutStore and implements instantiating and
 * storing layouts that conform to the design of the distribute layout
 * management system. These layouts consist of two types: layout fragments
 * that are the layouts owned by a user specified in dlm.xml, and composite
 * view layouts which represent regular users with zero or more UI elements
 * incorporated from layout fragments. Only a user's personal layout fragment
 * is
 * 
 * @version $Revision: 36721 $ $Date: 2006-09-25 11:26:24 -0400 (Mon, 25 Sep 2006) $
 * @since uPortal 2.5 
 */
public class RDBMDistributedLayoutStore
    extends RDBMUserLayoutStore
{
    public static final String RCS_ID = "@(#) $Header$";
    private static final Log LOG = LogFactory.getLog(RDBMDistributedLayoutStore.class);

    private String systemDefaultUser = null;
    private boolean systemDefaultUserLoaded = false;
    private Properties properties = null;
    private FragmentDefinition[] definitions = null;
    private LayoutDecorator decorator = null;
    private FragmentActivator activator = null;
    private Object initializationLock = new Object();
    private boolean initialized = false;
    static final String TEMPLATE_USER_NAME
        = "org.jasig.portal.services.Authentication.defaultTemplat
eUserName";
    static final String DECORATOR_PROPERTY = "layoutDecorator";

    private static final int THEME = 0;
    private static final int STRUCT = 1;

    // Cache for theme stylesheet descriptors
    private static SmartCache tsdCache;
    // Cache for structure stylesheet descriptors
    private static SmartCache ssdCache;

    /** Map of read/writer lock objects; one per unique person. ==blok ni error*/
    private Map mLocks = new ConcurrentHashMap();

    private final ReadWriteLock getReadWriteLock(IPerson person)
    {
        Object key = new Integer(person.getID());

        ReadWriteLock lock = (ReadWriteLock) mLocks.get(key);

        if (null == lock)
        {
            lock = new ReentrantWriterPreferenceReadWriteLock();

            mLocks.put(key, lock);
        }

        return lock;
    }

    private void acquireReadLock(IPerson person) throws InterruptedException
    {
        getReadWriteLock(person).readLock().acquire(); //error
    }

    private void releaseReadLock(IPerson person)
    {
        getReadWriteLock(person).readLock().release();   //error
    }

Edited by ciky_girlz

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...