com.liferay.portlet.expando.model.ExpandoBridge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portlet.expando.model;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.util.UnicodeProperties;
import com.liferay.portal.service.ServiceContext;
import java.io.Serializable;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
/**
* @author Raymond Augé
*/
public interface ExpandoBridge {
public void addAttribute(String name) throws PortalException;
public void addAttribute(String name, boolean secure)
throws PortalException;
public void addAttribute(String name, int type) throws PortalException;
public void addAttribute(String name, int type, boolean secure)
throws PortalException;
public void addAttribute(String name, int type, Serializable defaultValue)
throws PortalException;
public void addAttribute(
String name, int type, Serializable defaultValue, boolean secure)
throws PortalException;
public Serializable getAttribute(String name);
public Serializable getAttribute(String name, boolean secure);
public Serializable getAttributeDefault(String name);
public Enumeration getAttributeNames();
public UnicodeProperties getAttributeProperties(String name);
public Map getAttributes();
public Map getAttributes(boolean secure);
public Map getAttributes(Collection names);
public Map getAttributes(
Collection names, boolean secure);
public int getAttributeType(String name);
public String getClassName();
public long getClassPK();
public long getCompanyId();
public boolean hasAttribute(String name);
public boolean isIndexEnabled();
public void setAttribute(String name, Serializable value);
public void setAttribute(String name, Serializable value, boolean secure);
public void setAttributeDefault(String name, Serializable defaultValue);
public void setAttributeProperties(
String name, UnicodeProperties properties);
public void setAttributeProperties(
String name, UnicodeProperties properties, boolean secure);
public void setAttributes(Map attributes);
public void setAttributes(
Map attributes, boolean secure);
public void setAttributes(ServiceContext serviceContext);
public void setAttributes(ServiceContext serviceContext, boolean secure);
public void setClassName(String className);
public void setClassPK(long classPK);
public void setCompanyId(long companyId);
public void setIndexEnabled(boolean indexEnabled);
}