Skip to content

Commit

Permalink
issue smclab#44: created ScheduleContact to store external addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-vi committed Jan 11, 2021
1 parent a7869da commit bf11c46
Show file tree
Hide file tree
Showing 31 changed files with 8,099 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/caldav-sync/caldav-schedule-contact/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.gradle/
build/
target/
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Bundle-Name: caldav-schedule-contact-api
Bundle-SymbolicName: it.smc.calendar.caldav.schedule.contact.api
Bundle-Version: 1.0.0
Export-Package:\
it.smc.calendar.caldav.schedule.contact.exception,\
it.smc.calendar.caldav.schedule.contact.model,\
it.smc.calendar.caldav.schedule.contact.service,\
it.smc.calendar.caldav.schedule.contact.service.persistence
-check: EXPORTS
-includeresource: META-INF/service.xml=../caldav-schedule-contact-service/service.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies {
compileOnly group: "com.liferay", name: "com.liferay.calendar.api"
compileOnly group: "com.liferay", name: "com.liferay.petra.lang"
compileOnly group: "com.liferay", name: "com.liferay.petra.string"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning"
compileOnly group: "org.osgi", name: "org.osgi.core"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* Copyright (c) 2000-present 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 it.smc.calendar.caldav.schedule.contact.exception;

import com.liferay.portal.kernel.exception.NoSuchModelException;

/**
* @author Brian Wing Shun Chan
*/
public class NoSuchScheduleContactException extends NoSuchModelException {

public NoSuchScheduleContactException() {
}

public NoSuchScheduleContactException(String msg) {
super(msg);
}

public NoSuchScheduleContactException(String msg, Throwable cause) {
super(msg, cause);
}

public NoSuchScheduleContactException(Throwable cause) {
super(cause);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/**
* Copyright (c) 2000-present 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 it.smc.calendar.caldav.schedule.contact.model;

import com.liferay.portal.kernel.annotation.ImplementationClassName;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.util.Accessor;

import org.osgi.annotation.versioning.ProviderType;

/**
* The extended model interface for the ScheduleContact service. Represents a row in the "CalDAVSync_ScheduleContact" database table, with each column mapped to a property of this class.
*
* @author Brian Wing Shun Chan
* @see ScheduleContactModel
* @generated
*/
@ImplementationClassName(
"it.smc.calendar.caldav.schedule.contact.model.impl.ScheduleContactImpl"
)
@ProviderType
public interface ScheduleContact extends PersistedModel, ScheduleContactModel {

/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add methods to <code>it.smc.calendar.caldav.schedule.contact.model.impl.ScheduleContactImpl</code> and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
public static final Accessor<ScheduleContact, Long>
SCHEDULE_CONTACT_ID_ACCESSOR = new Accessor<ScheduleContact, Long>() {

@Override
public Long get(ScheduleContact scheduleContact) {
return scheduleContact.getScheduleContactId();
}

@Override
public Class<Long> getAttributeClass() {
return Long.class;
}

@Override
public Class<ScheduleContact> getTypeClass() {
return ScheduleContact.class;
}

};

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
/**
* Copyright (c) 2000-present 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 it.smc.calendar.caldav.schedule.contact.model;

import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.model.BaseModel;
import com.liferay.portal.kernel.model.GroupedModel;
import com.liferay.portal.kernel.model.ShardedModel;
import com.liferay.portal.kernel.model.StagedAuditedModel;

import java.util.Date;

import org.osgi.annotation.versioning.ProviderType;

/**
* The base model interface for the ScheduleContact service. Represents a row in the &quot;CalDAVSync_ScheduleContact&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This interface and its corresponding implementation <code>it.smc.calendar.caldav.schedule.contact.model.impl.ScheduleContactModelImpl</code> exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in <code>it.smc.calendar.caldav.schedule.contact.model.impl.ScheduleContactImpl</code>.
* </p>
*
* @author Brian Wing Shun Chan
* @see ScheduleContact
* @generated
*/
@ProviderType
public interface ScheduleContactModel
extends BaseModel<ScheduleContact>, GroupedModel, ShardedModel,
StagedAuditedModel {

/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. All methods that expect a schedule contact model instance should use the {@link ScheduleContact} interface instead.
*/

/**
* Returns the primary key of this schedule contact.
*
* @return the primary key of this schedule contact
*/
public long getPrimaryKey();

/**
* Sets the primary key of this schedule contact.
*
* @param primaryKey the primary key of this schedule contact
*/
public void setPrimaryKey(long primaryKey);

/**
* Returns the uuid of this schedule contact.
*
* @return the uuid of this schedule contact
*/
@AutoEscape
@Override
public String getUuid();

/**
* Sets the uuid of this schedule contact.
*
* @param uuid the uuid of this schedule contact
*/
@Override
public void setUuid(String uuid);

/**
* Returns the schedule contact ID of this schedule contact.
*
* @return the schedule contact ID of this schedule contact
*/
public long getScheduleContactId();

/**
* Sets the schedule contact ID of this schedule contact.
*
* @param scheduleContactId the schedule contact ID of this schedule contact
*/
public void setScheduleContactId(long scheduleContactId);

/**
* Returns the group ID of this schedule contact.
*
* @return the group ID of this schedule contact
*/
@Override
public long getGroupId();

/**
* Sets the group ID of this schedule contact.
*
* @param groupId the group ID of this schedule contact
*/
@Override
public void setGroupId(long groupId);

/**
* Returns the company ID of this schedule contact.
*
* @return the company ID of this schedule contact
*/
@Override
public long getCompanyId();

/**
* Sets the company ID of this schedule contact.
*
* @param companyId the company ID of this schedule contact
*/
@Override
public void setCompanyId(long companyId);

/**
* Returns the user ID of this schedule contact.
*
* @return the user ID of this schedule contact
*/
@Override
public long getUserId();

/**
* Sets the user ID of this schedule contact.
*
* @param userId the user ID of this schedule contact
*/
@Override
public void setUserId(long userId);

/**
* Returns the user uuid of this schedule contact.
*
* @return the user uuid of this schedule contact
*/
@Override
public String getUserUuid();

/**
* Sets the user uuid of this schedule contact.
*
* @param userUuid the user uuid of this schedule contact
*/
@Override
public void setUserUuid(String userUuid);

/**
* Returns the user name of this schedule contact.
*
* @return the user name of this schedule contact
*/
@AutoEscape
@Override
public String getUserName();

/**
* Sets the user name of this schedule contact.
*
* @param userName the user name of this schedule contact
*/
@Override
public void setUserName(String userName);

/**
* Returns the create date of this schedule contact.
*
* @return the create date of this schedule contact
*/
@Override
public Date getCreateDate();

/**
* Sets the create date of this schedule contact.
*
* @param createDate the create date of this schedule contact
*/
@Override
public void setCreateDate(Date createDate);

/**
* Returns the modified date of this schedule contact.
*
* @return the modified date of this schedule contact
*/
@Override
public Date getModifiedDate();

/**
* Sets the modified date of this schedule contact.
*
* @param modifiedDate the modified date of this schedule contact
*/
@Override
public void setModifiedDate(Date modifiedDate);

/**
* Returns the common name of this schedule contact.
*
* @return the common name of this schedule contact
*/
@AutoEscape
public String getCommonName();

/**
* Sets the common name of this schedule contact.
*
* @param commonName the common name of this schedule contact
*/
public void setCommonName(String commonName);

/**
* Returns the email address of this schedule contact.
*
* @return the email address of this schedule contact
*/
@AutoEscape
public String getEmailAddress();

/**
* Sets the email address of this schedule contact.
*
* @param emailAddress the email address of this schedule contact
*/
public void setEmailAddress(String emailAddress);

}
Loading

0 comments on commit bf11c46

Please sign in to comment.