com.liferay.portal.service
Interface OrganizationService


public interface OrganizationService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.OrganizationServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

Author:
Brian Wing Shun Chan
See Also:
OrganizationServiceFactory, OrganizationServiceUtil

Method Summary
 void addGroupOrganizations(long groupId, long[] organizationIds)
           
 Organization addOrganization(long parentOrganizationId, java.lang.String name, boolean location, boolean recursable, long regionId, long countryId, int statusId)
           
 void addPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 void deleteOrganization(long organizationId)
           
 Organization getOrganization(long organizationId)
           
 long getOrganizationId(long companyId, java.lang.String name)
           
 java.util.List getUserOrganizations(long userId)
           
 void setGroupOrganizations(long groupId, long[] organizationIds)
           
 void unsetGroupOrganizations(long groupId, long[] organizationIds)
           
 void unsetPasswordPolicyOrganizations(long passwordPolicyId, long[] organizationIds)
           
 Organization updateOrganization(long organizationId, long parentOrganizationId, java.lang.String name, boolean location, boolean recursable, long regionId, long countryId, int statusId)
           
 Organization updateOrganization(long organizationId, java.lang.String comments)
           
 

Method Detail

addGroupOrganizations

public void addGroupOrganizations(long groupId,
                                  long[] organizationIds)
                           throws com.liferay.portal.SystemException,
                                  com.liferay.portal.PortalException,
                                  java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addPasswordPolicyOrganizations

public void addPasswordPolicyOrganizations(long passwordPolicyId,
                                           long[] organizationIds)
                                    throws com.liferay.portal.SystemException,
                                           com.liferay.portal.PortalException,
                                           java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

addOrganization

public Organization addOrganization(long parentOrganizationId,
                                    java.lang.String name,
                                    boolean location,
                                    boolean recursable,
                                    long regionId,
                                    long countryId,
                                    int statusId)
                             throws com.liferay.portal.SystemException,
                                    com.liferay.portal.PortalException,
                                    java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

deleteOrganization

public void deleteOrganization(long organizationId)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.PortalException,
                               java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getOrganization

public Organization getOrganization(long organizationId)
                             throws com.liferay.portal.SystemException,
                                    com.liferay.portal.PortalException,
                                    java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getOrganizationId

public long getOrganizationId(long companyId,
                              java.lang.String name)
                       throws com.liferay.portal.SystemException,
                              com.liferay.portal.PortalException,
                              java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

getUserOrganizations

public java.util.List getUserOrganizations(long userId)
                                    throws com.liferay.portal.SystemException,
                                           com.liferay.portal.PortalException,
                                           java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

setGroupOrganizations

public void setGroupOrganizations(long groupId,
                                  long[] organizationIds)
                           throws com.liferay.portal.SystemException,
                                  com.liferay.portal.PortalException,
                                  java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

unsetGroupOrganizations

public void unsetGroupOrganizations(long groupId,
                                    long[] organizationIds)
                             throws com.liferay.portal.SystemException,
                                    com.liferay.portal.PortalException,
                                    java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

unsetPasswordPolicyOrganizations

public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
                                             long[] organizationIds)
                                      throws com.liferay.portal.SystemException,
                                             com.liferay.portal.PortalException,
                                             java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

updateOrganization

public Organization updateOrganization(long organizationId,
                                       long parentOrganizationId,
                                       java.lang.String name,
                                       boolean location,
                                       boolean recursable,
                                       long regionId,
                                       long countryId,
                                       int statusId)
                                throws com.liferay.portal.SystemException,
                                       com.liferay.portal.PortalException,
                                       java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException

updateOrganization

public Organization updateOrganization(long organizationId,
                                       java.lang.String comments)
                                throws com.liferay.portal.SystemException,
                                       com.liferay.portal.PortalException,
                                       java.rmi.RemoteException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
java.rmi.RemoteException