001
014
015 package com.liferay.portlet.asset.model.impl;
016
017 import com.liferay.portal.LocaleException;
018 import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.json.JSON;
021 import com.liferay.portal.kernel.language.LanguageUtil;
022 import com.liferay.portal.kernel.util.GetterUtil;
023 import com.liferay.portal.kernel.util.LocaleUtil;
024 import com.liferay.portal.kernel.util.LocalizationUtil;
025 import com.liferay.portal.kernel.util.ProxyUtil;
026 import com.liferay.portal.kernel.util.StringBundler;
027 import com.liferay.portal.kernel.util.StringPool;
028 import com.liferay.portal.kernel.util.Validator;
029 import com.liferay.portal.model.CacheModel;
030 import com.liferay.portal.model.impl.BaseModelImpl;
031 import com.liferay.portal.service.ServiceContext;
032 import com.liferay.portal.util.PortalUtil;
033
034 import com.liferay.portlet.asset.model.AssetEntry;
035 import com.liferay.portlet.asset.model.AssetEntryModel;
036 import com.liferay.portlet.asset.model.AssetEntrySoap;
037 import com.liferay.portlet.expando.model.ExpandoBridge;
038 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
039
040 import java.io.Serializable;
041
042 import java.sql.Types;
043
044 import java.util.ArrayList;
045 import java.util.Date;
046 import java.util.HashMap;
047 import java.util.List;
048 import java.util.Locale;
049 import java.util.Map;
050
051
064 @JSON(strict = true)
065 public class AssetEntryModelImpl extends BaseModelImpl<AssetEntry>
066 implements AssetEntryModel {
067
072 public static final String TABLE_NAME = "AssetEntry";
073 public static final Object[][] TABLE_COLUMNS = {
074 { "entryId", Types.BIGINT },
075 { "groupId", Types.BIGINT },
076 { "companyId", Types.BIGINT },
077 { "userId", Types.BIGINT },
078 { "userName", Types.VARCHAR },
079 { "createDate", Types.TIMESTAMP },
080 { "modifiedDate", Types.TIMESTAMP },
081 { "classNameId", Types.BIGINT },
082 { "classPK", Types.BIGINT },
083 { "classUuid", Types.VARCHAR },
084 { "classTypeId", Types.BIGINT },
085 { "visible", Types.BOOLEAN },
086 { "startDate", Types.TIMESTAMP },
087 { "endDate", Types.TIMESTAMP },
088 { "publishDate", Types.TIMESTAMP },
089 { "expirationDate", Types.TIMESTAMP },
090 { "mimeType", Types.VARCHAR },
091 { "title", Types.VARCHAR },
092 { "description", Types.VARCHAR },
093 { "summary", Types.VARCHAR },
094 { "url", Types.VARCHAR },
095 { "layoutUuid", Types.VARCHAR },
096 { "height", Types.INTEGER },
097 { "width", Types.INTEGER },
098 { "priority", Types.DOUBLE },
099 { "viewCount", Types.INTEGER }
100 };
101 public static final String TABLE_SQL_CREATE = "create table AssetEntry (entryId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,classNameId LONG,classPK LONG,classUuid VARCHAR(75) null,classTypeId LONG,visible BOOLEAN,startDate DATE null,endDate DATE null,publishDate DATE null,expirationDate DATE null,mimeType VARCHAR(75) null,title STRING null,description STRING null,summary STRING null,url STRING null,layoutUuid VARCHAR(75) null,height INTEGER,width INTEGER,priority DOUBLE,viewCount INTEGER)";
102 public static final String TABLE_SQL_DROP = "drop table AssetEntry";
103 public static final String DATA_SOURCE = "liferayDataSource";
104 public static final String SESSION_FACTORY = "liferaySessionFactory";
105 public static final String TX_MANAGER = "liferayTransactionManager";
106 public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
107 "value.object.entity.cache.enabled.com.liferay.portlet.asset.model.AssetEntry"),
108 true);
109 public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
110 "value.object.finder.cache.enabled.com.liferay.portlet.asset.model.AssetEntry"),
111 true);
112 public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
113 "value.object.column.bitmask.enabled.com.liferay.portlet.asset.model.AssetEntry"),
114 true);
115 public static long CLASSNAMEID_COLUMN_BITMASK = 1L;
116 public static long CLASSPK_COLUMN_BITMASK = 2L;
117 public static long CLASSUUID_COLUMN_BITMASK = 4L;
118 public static long COMPANYID_COLUMN_BITMASK = 8L;
119 public static long EXPIRATIONDATE_COLUMN_BITMASK = 16L;
120 public static long GROUPID_COLUMN_BITMASK = 32L;
121 public static long LAYOUTUUID_COLUMN_BITMASK = 64L;
122 public static long PUBLISHDATE_COLUMN_BITMASK = 128L;
123 public static long VISIBLE_COLUMN_BITMASK = 256L;
124
125
131 public static AssetEntry toModel(AssetEntrySoap soapModel) {
132 if (soapModel == null) {
133 return null;
134 }
135
136 AssetEntry model = new AssetEntryImpl();
137
138 model.setEntryId(soapModel.getEntryId());
139 model.setGroupId(soapModel.getGroupId());
140 model.setCompanyId(soapModel.getCompanyId());
141 model.setUserId(soapModel.getUserId());
142 model.setUserName(soapModel.getUserName());
143 model.setCreateDate(soapModel.getCreateDate());
144 model.setModifiedDate(soapModel.getModifiedDate());
145 model.setClassNameId(soapModel.getClassNameId());
146 model.setClassPK(soapModel.getClassPK());
147 model.setClassUuid(soapModel.getClassUuid());
148 model.setClassTypeId(soapModel.getClassTypeId());
149 model.setVisible(soapModel.getVisible());
150 model.setStartDate(soapModel.getStartDate());
151 model.setEndDate(soapModel.getEndDate());
152 model.setPublishDate(soapModel.getPublishDate());
153 model.setExpirationDate(soapModel.getExpirationDate());
154 model.setMimeType(soapModel.getMimeType());
155 model.setTitle(soapModel.getTitle());
156 model.setDescription(soapModel.getDescription());
157 model.setSummary(soapModel.getSummary());
158 model.setUrl(soapModel.getUrl());
159 model.setLayoutUuid(soapModel.getLayoutUuid());
160 model.setHeight(soapModel.getHeight());
161 model.setWidth(soapModel.getWidth());
162 model.setPriority(soapModel.getPriority());
163 model.setViewCount(soapModel.getViewCount());
164
165 return model;
166 }
167
168
174 public static List<AssetEntry> toModels(AssetEntrySoap[] soapModels) {
175 if (soapModels == null) {
176 return null;
177 }
178
179 List<AssetEntry> models = new ArrayList<AssetEntry>(soapModels.length);
180
181 for (AssetEntrySoap soapModel : soapModels) {
182 models.add(toModel(soapModel));
183 }
184
185 return models;
186 }
187
188 public static final String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_NAME = "AssetEntries_AssetCategories";
189 public static final Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_COLUMNS =
190 {
191 { "entryId", Types.BIGINT },
192 { "categoryId", Types.BIGINT }
193 };
194 public static final String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_SQL_CREATE =
195 "create table AssetEntries_AssetCategories (categoryId LONG not null,entryId LONG not null,primary key (categoryId, entryId))";
196 public static final boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETCATEGORIES =
197 GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
198 "value.object.finder.cache.enabled.AssetEntries_AssetCategories"),
199 true);
200 public static final String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_NAME = "AssetEntries_AssetTags";
201 public static final Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_COLUMNS = {
202 { "entryId", Types.BIGINT },
203 { "tagId", Types.BIGINT }
204 };
205 public static final String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_SQL_CREATE = "create table AssetEntries_AssetTags (entryId LONG not null,tagId LONG not null,primary key (entryId, tagId))";
206 public static final boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETTAGS = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
207 "value.object.finder.cache.enabled.AssetEntries_AssetTags"),
208 true);
209 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
210 "lock.expiration.time.com.liferay.portlet.asset.model.AssetEntry"));
211
212 public AssetEntryModelImpl() {
213 }
214
215 public long getPrimaryKey() {
216 return _entryId;
217 }
218
219 public void setPrimaryKey(long primaryKey) {
220 setEntryId(primaryKey);
221 }
222
223 public Serializable getPrimaryKeyObj() {
224 return new Long(_entryId);
225 }
226
227 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
228 setPrimaryKey(((Long)primaryKeyObj).longValue());
229 }
230
231 public Class<?> getModelClass() {
232 return AssetEntry.class;
233 }
234
235 public String getModelClassName() {
236 return AssetEntry.class.getName();
237 }
238
239 @Override
240 public Map<String, Object> getModelAttributes() {
241 Map<String, Object> attributes = new HashMap<String, Object>();
242
243 attributes.put("entryId", getEntryId());
244 attributes.put("groupId", getGroupId());
245 attributes.put("companyId", getCompanyId());
246 attributes.put("userId", getUserId());
247 attributes.put("userName", getUserName());
248 attributes.put("createDate", getCreateDate());
249 attributes.put("modifiedDate", getModifiedDate());
250 attributes.put("classNameId", getClassNameId());
251 attributes.put("classPK", getClassPK());
252 attributes.put("classUuid", getClassUuid());
253 attributes.put("classTypeId", getClassTypeId());
254 attributes.put("visible", getVisible());
255 attributes.put("startDate", getStartDate());
256 attributes.put("endDate", getEndDate());
257 attributes.put("publishDate", getPublishDate());
258 attributes.put("expirationDate", getExpirationDate());
259 attributes.put("mimeType", getMimeType());
260 attributes.put("title", getTitle());
261 attributes.put("description", getDescription());
262 attributes.put("summary", getSummary());
263 attributes.put("url", getUrl());
264 attributes.put("layoutUuid", getLayoutUuid());
265 attributes.put("height", getHeight());
266 attributes.put("width", getWidth());
267 attributes.put("priority", getPriority());
268 attributes.put("viewCount", getViewCount());
269
270 return attributes;
271 }
272
273 @Override
274 public void setModelAttributes(Map<String, Object> attributes) {
275 Long entryId = (Long)attributes.get("entryId");
276
277 if (entryId != null) {
278 setEntryId(entryId);
279 }
280
281 Long groupId = (Long)attributes.get("groupId");
282
283 if (groupId != null) {
284 setGroupId(groupId);
285 }
286
287 Long companyId = (Long)attributes.get("companyId");
288
289 if (companyId != null) {
290 setCompanyId(companyId);
291 }
292
293 Long userId = (Long)attributes.get("userId");
294
295 if (userId != null) {
296 setUserId(userId);
297 }
298
299 String userName = (String)attributes.get("userName");
300
301 if (userName != null) {
302 setUserName(userName);
303 }
304
305 Date createDate = (Date)attributes.get("createDate");
306
307 if (createDate != null) {
308 setCreateDate(createDate);
309 }
310
311 Date modifiedDate = (Date)attributes.get("modifiedDate");
312
313 if (modifiedDate != null) {
314 setModifiedDate(modifiedDate);
315 }
316
317 Long classNameId = (Long)attributes.get("classNameId");
318
319 if (classNameId != null) {
320 setClassNameId(classNameId);
321 }
322
323 Long classPK = (Long)attributes.get("classPK");
324
325 if (classPK != null) {
326 setClassPK(classPK);
327 }
328
329 String classUuid = (String)attributes.get("classUuid");
330
331 if (classUuid != null) {
332 setClassUuid(classUuid);
333 }
334
335 Long classTypeId = (Long)attributes.get("classTypeId");
336
337 if (classTypeId != null) {
338 setClassTypeId(classTypeId);
339 }
340
341 Boolean visible = (Boolean)attributes.get("visible");
342
343 if (visible != null) {
344 setVisible(visible);
345 }
346
347 Date startDate = (Date)attributes.get("startDate");
348
349 if (startDate != null) {
350 setStartDate(startDate);
351 }
352
353 Date endDate = (Date)attributes.get("endDate");
354
355 if (endDate != null) {
356 setEndDate(endDate);
357 }
358
359 Date publishDate = (Date)attributes.get("publishDate");
360
361 if (publishDate != null) {
362 setPublishDate(publishDate);
363 }
364
365 Date expirationDate = (Date)attributes.get("expirationDate");
366
367 if (expirationDate != null) {
368 setExpirationDate(expirationDate);
369 }
370
371 String mimeType = (String)attributes.get("mimeType");
372
373 if (mimeType != null) {
374 setMimeType(mimeType);
375 }
376
377 String title = (String)attributes.get("title");
378
379 if (title != null) {
380 setTitle(title);
381 }
382
383 String description = (String)attributes.get("description");
384
385 if (description != null) {
386 setDescription(description);
387 }
388
389 String summary = (String)attributes.get("summary");
390
391 if (summary != null) {
392 setSummary(summary);
393 }
394
395 String url = (String)attributes.get("url");
396
397 if (url != null) {
398 setUrl(url);
399 }
400
401 String layoutUuid = (String)attributes.get("layoutUuid");
402
403 if (layoutUuid != null) {
404 setLayoutUuid(layoutUuid);
405 }
406
407 Integer height = (Integer)attributes.get("height");
408
409 if (height != null) {
410 setHeight(height);
411 }
412
413 Integer width = (Integer)attributes.get("width");
414
415 if (width != null) {
416 setWidth(width);
417 }
418
419 Double priority = (Double)attributes.get("priority");
420
421 if (priority != null) {
422 setPriority(priority);
423 }
424
425 Integer viewCount = (Integer)attributes.get("viewCount");
426
427 if (viewCount != null) {
428 setViewCount(viewCount);
429 }
430 }
431
432 @JSON
433 public long getEntryId() {
434 return _entryId;
435 }
436
437 public void setEntryId(long entryId) {
438 _entryId = entryId;
439 }
440
441 @JSON
442 public long getGroupId() {
443 return _groupId;
444 }
445
446 public void setGroupId(long groupId) {
447 _columnBitmask |= GROUPID_COLUMN_BITMASK;
448
449 if (!_setOriginalGroupId) {
450 _setOriginalGroupId = true;
451
452 _originalGroupId = _groupId;
453 }
454
455 _groupId = groupId;
456 }
457
458 public long getOriginalGroupId() {
459 return _originalGroupId;
460 }
461
462 @JSON
463 public long getCompanyId() {
464 return _companyId;
465 }
466
467 public void setCompanyId(long companyId) {
468 _columnBitmask |= COMPANYID_COLUMN_BITMASK;
469
470 if (!_setOriginalCompanyId) {
471 _setOriginalCompanyId = true;
472
473 _originalCompanyId = _companyId;
474 }
475
476 _companyId = companyId;
477 }
478
479 public long getOriginalCompanyId() {
480 return _originalCompanyId;
481 }
482
483 @JSON
484 public long getUserId() {
485 return _userId;
486 }
487
488 public void setUserId(long userId) {
489 _userId = userId;
490 }
491
492 public String getUserUuid() throws SystemException {
493 return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
494 }
495
496 public void setUserUuid(String userUuid) {
497 _userUuid = userUuid;
498 }
499
500 @JSON
501 public String getUserName() {
502 if (_userName == null) {
503 return StringPool.BLANK;
504 }
505 else {
506 return _userName;
507 }
508 }
509
510 public void setUserName(String userName) {
511 _userName = userName;
512 }
513
514 @JSON
515 public Date getCreateDate() {
516 return _createDate;
517 }
518
519 public void setCreateDate(Date createDate) {
520 _createDate = createDate;
521 }
522
523 @JSON
524 public Date getModifiedDate() {
525 return _modifiedDate;
526 }
527
528 public void setModifiedDate(Date modifiedDate) {
529 _modifiedDate = modifiedDate;
530 }
531
532 public String getClassName() {
533 if (getClassNameId() <= 0) {
534 return StringPool.BLANK;
535 }
536
537 return PortalUtil.getClassName(getClassNameId());
538 }
539
540 public void setClassName(String className) {
541 long classNameId = 0;
542
543 if (Validator.isNotNull(className)) {
544 classNameId = PortalUtil.getClassNameId(className);
545 }
546
547 setClassNameId(classNameId);
548 }
549
550 @JSON
551 public long getClassNameId() {
552 return _classNameId;
553 }
554
555 public void setClassNameId(long classNameId) {
556 _columnBitmask |= CLASSNAMEID_COLUMN_BITMASK;
557
558 if (!_setOriginalClassNameId) {
559 _setOriginalClassNameId = true;
560
561 _originalClassNameId = _classNameId;
562 }
563
564 _classNameId = classNameId;
565 }
566
567 public long getOriginalClassNameId() {
568 return _originalClassNameId;
569 }
570
571 @JSON
572 public long getClassPK() {
573 return _classPK;
574 }
575
576 public void setClassPK(long classPK) {
577 _columnBitmask |= CLASSPK_COLUMN_BITMASK;
578
579 if (!_setOriginalClassPK) {
580 _setOriginalClassPK = true;
581
582 _originalClassPK = _classPK;
583 }
584
585 _classPK = classPK;
586 }
587
588 public long getOriginalClassPK() {
589 return _originalClassPK;
590 }
591
592 @JSON
593 public String getClassUuid() {
594 if (_classUuid == null) {
595 return StringPool.BLANK;
596 }
597 else {
598 return _classUuid;
599 }
600 }
601
602 public void setClassUuid(String classUuid) {
603 _columnBitmask |= CLASSUUID_COLUMN_BITMASK;
604
605 if (_originalClassUuid == null) {
606 _originalClassUuid = _classUuid;
607 }
608
609 _classUuid = classUuid;
610 }
611
612 public String getOriginalClassUuid() {
613 return GetterUtil.getString(_originalClassUuid);
614 }
615
616 @JSON
617 public long getClassTypeId() {
618 return _classTypeId;
619 }
620
621 public void setClassTypeId(long classTypeId) {
622 _classTypeId = classTypeId;
623 }
624
625 @JSON
626 public boolean getVisible() {
627 return _visible;
628 }
629
630 public boolean isVisible() {
631 return _visible;
632 }
633
634 public void setVisible(boolean visible) {
635 _columnBitmask |= VISIBLE_COLUMN_BITMASK;
636
637 if (!_setOriginalVisible) {
638 _setOriginalVisible = true;
639
640 _originalVisible = _visible;
641 }
642
643 _visible = visible;
644 }
645
646 public boolean getOriginalVisible() {
647 return _originalVisible;
648 }
649
650 @JSON
651 public Date getStartDate() {
652 return _startDate;
653 }
654
655 public void setStartDate(Date startDate) {
656 _startDate = startDate;
657 }
658
659 @JSON
660 public Date getEndDate() {
661 return _endDate;
662 }
663
664 public void setEndDate(Date endDate) {
665 _endDate = endDate;
666 }
667
668 @JSON
669 public Date getPublishDate() {
670 return _publishDate;
671 }
672
673 public void setPublishDate(Date publishDate) {
674 _columnBitmask |= PUBLISHDATE_COLUMN_BITMASK;
675
676 if (_originalPublishDate == null) {
677 _originalPublishDate = _publishDate;
678 }
679
680 _publishDate = publishDate;
681 }
682
683 public Date getOriginalPublishDate() {
684 return _originalPublishDate;
685 }
686
687 @JSON
688 public Date getExpirationDate() {
689 return _expirationDate;
690 }
691
692 public void setExpirationDate(Date expirationDate) {
693 _columnBitmask |= EXPIRATIONDATE_COLUMN_BITMASK;
694
695 if (_originalExpirationDate == null) {
696 _originalExpirationDate = _expirationDate;
697 }
698
699 _expirationDate = expirationDate;
700 }
701
702 public Date getOriginalExpirationDate() {
703 return _originalExpirationDate;
704 }
705
706 @JSON
707 public String getMimeType() {
708 if (_mimeType == null) {
709 return StringPool.BLANK;
710 }
711 else {
712 return _mimeType;
713 }
714 }
715
716 public void setMimeType(String mimeType) {
717 _mimeType = mimeType;
718 }
719
720 @JSON
721 public String getTitle() {
722 if (_title == null) {
723 return StringPool.BLANK;
724 }
725 else {
726 return _title;
727 }
728 }
729
730 public String getTitle(Locale locale) {
731 String languageId = LocaleUtil.toLanguageId(locale);
732
733 return getTitle(languageId);
734 }
735
736 public String getTitle(Locale locale, boolean useDefault) {
737 String languageId = LocaleUtil.toLanguageId(locale);
738
739 return getTitle(languageId, useDefault);
740 }
741
742 public String getTitle(String languageId) {
743 return LocalizationUtil.getLocalization(getTitle(), languageId);
744 }
745
746 public String getTitle(String languageId, boolean useDefault) {
747 return LocalizationUtil.getLocalization(getTitle(), languageId,
748 useDefault);
749 }
750
751 public String getTitleCurrentLanguageId() {
752 return _titleCurrentLanguageId;
753 }
754
755 @JSON
756 public String getTitleCurrentValue() {
757 Locale locale = getLocale(_titleCurrentLanguageId);
758
759 return getTitle(locale);
760 }
761
762 public Map<Locale, String> getTitleMap() {
763 return LocalizationUtil.getLocalizationMap(getTitle());
764 }
765
766 public void setTitle(String title) {
767 _title = title;
768 }
769
770 public void setTitle(String title, Locale locale) {
771 setTitle(title, locale, LocaleUtil.getDefault());
772 }
773
774 public void setTitle(String title, Locale locale, Locale defaultLocale) {
775 String languageId = LocaleUtil.toLanguageId(locale);
776 String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
777
778 if (Validator.isNotNull(title)) {
779 setTitle(LocalizationUtil.updateLocalization(getTitle(), "Title",
780 title, languageId, defaultLanguageId));
781 }
782 else {
783 setTitle(LocalizationUtil.removeLocalization(getTitle(), "Title",
784 languageId));
785 }
786 }
787
788 public void setTitleCurrentLanguageId(String languageId) {
789 _titleCurrentLanguageId = languageId;
790 }
791
792 public void setTitleMap(Map<Locale, String> titleMap) {
793 setTitleMap(titleMap, LocaleUtil.getDefault());
794 }
795
796 public void setTitleMap(Map<Locale, String> titleMap, Locale defaultLocale) {
797 if (titleMap == null) {
798 return;
799 }
800
801 Locale[] locales = LanguageUtil.getAvailableLocales();
802
803 for (Locale locale : locales) {
804 String title = titleMap.get(locale);
805
806 setTitle(title, locale, defaultLocale);
807 }
808 }
809
810 @JSON
811 public String getDescription() {
812 if (_description == null) {
813 return StringPool.BLANK;
814 }
815 else {
816 return _description;
817 }
818 }
819
820 public String getDescription(Locale locale) {
821 String languageId = LocaleUtil.toLanguageId(locale);
822
823 return getDescription(languageId);
824 }
825
826 public String getDescription(Locale locale, boolean useDefault) {
827 String languageId = LocaleUtil.toLanguageId(locale);
828
829 return getDescription(languageId, useDefault);
830 }
831
832 public String getDescription(String languageId) {
833 return LocalizationUtil.getLocalization(getDescription(), languageId);
834 }
835
836 public String getDescription(String languageId, boolean useDefault) {
837 return LocalizationUtil.getLocalization(getDescription(), languageId,
838 useDefault);
839 }
840
841 public String getDescriptionCurrentLanguageId() {
842 return _descriptionCurrentLanguageId;
843 }
844
845 @JSON
846 public String getDescriptionCurrentValue() {
847 Locale locale = getLocale(_descriptionCurrentLanguageId);
848
849 return getDescription(locale);
850 }
851
852 public Map<Locale, String> getDescriptionMap() {
853 return LocalizationUtil.getLocalizationMap(getDescription());
854 }
855
856 public void setDescription(String description) {
857 _description = description;
858 }
859
860 public void setDescription(String description, Locale locale) {
861 setDescription(description, locale, LocaleUtil.getDefault());
862 }
863
864 public void setDescription(String description, Locale locale,
865 Locale defaultLocale) {
866 String languageId = LocaleUtil.toLanguageId(locale);
867 String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
868
869 if (Validator.isNotNull(description)) {
870 setDescription(LocalizationUtil.updateLocalization(
871 getDescription(), "Description", description, languageId,
872 defaultLanguageId));
873 }
874 else {
875 setDescription(LocalizationUtil.removeLocalization(
876 getDescription(), "Description", languageId));
877 }
878 }
879
880 public void setDescriptionCurrentLanguageId(String languageId) {
881 _descriptionCurrentLanguageId = languageId;
882 }
883
884 public void setDescriptionMap(Map<Locale, String> descriptionMap) {
885 setDescriptionMap(descriptionMap, LocaleUtil.getDefault());
886 }
887
888 public void setDescriptionMap(Map<Locale, String> descriptionMap,
889 Locale defaultLocale) {
890 if (descriptionMap == null) {
891 return;
892 }
893
894 Locale[] locales = LanguageUtil.getAvailableLocales();
895
896 for (Locale locale : locales) {
897 String description = descriptionMap.get(locale);
898
899 setDescription(description, locale, defaultLocale);
900 }
901 }
902
903 @JSON
904 public String getSummary() {
905 if (_summary == null) {
906 return StringPool.BLANK;
907 }
908 else {
909 return _summary;
910 }
911 }
912
913 public String getSummary(Locale locale) {
914 String languageId = LocaleUtil.toLanguageId(locale);
915
916 return getSummary(languageId);
917 }
918
919 public String getSummary(Locale locale, boolean useDefault) {
920 String languageId = LocaleUtil.toLanguageId(locale);
921
922 return getSummary(languageId, useDefault);
923 }
924
925 public String getSummary(String languageId) {
926 return LocalizationUtil.getLocalization(getSummary(), languageId);
927 }
928
929 public String getSummary(String languageId, boolean useDefault) {
930 return LocalizationUtil.getLocalization(getSummary(), languageId,
931 useDefault);
932 }
933
934 public String getSummaryCurrentLanguageId() {
935 return _summaryCurrentLanguageId;
936 }
937
938 @JSON
939 public String getSummaryCurrentValue() {
940 Locale locale = getLocale(_summaryCurrentLanguageId);
941
942 return getSummary(locale);
943 }
944
945 public Map<Locale, String> getSummaryMap() {
946 return LocalizationUtil.getLocalizationMap(getSummary());
947 }
948
949 public void setSummary(String summary) {
950 _summary = summary;
951 }
952
953 public void setSummary(String summary, Locale locale) {
954 setSummary(summary, locale, LocaleUtil.getDefault());
955 }
956
957 public void setSummary(String summary, Locale locale, Locale defaultLocale) {
958 String languageId = LocaleUtil.toLanguageId(locale);
959 String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
960
961 if (Validator.isNotNull(summary)) {
962 setSummary(LocalizationUtil.updateLocalization(getSummary(),
963 "Summary", summary, languageId, defaultLanguageId));
964 }
965 else {
966 setSummary(LocalizationUtil.removeLocalization(getSummary(),
967 "Summary", languageId));
968 }
969 }
970
971 public void setSummaryCurrentLanguageId(String languageId) {
972 _summaryCurrentLanguageId = languageId;
973 }
974
975 public void setSummaryMap(Map<Locale, String> summaryMap) {
976 setSummaryMap(summaryMap, LocaleUtil.getDefault());
977 }
978
979 public void setSummaryMap(Map<Locale, String> summaryMap,
980 Locale defaultLocale) {
981 if (summaryMap == null) {
982 return;
983 }
984
985 Locale[] locales = LanguageUtil.getAvailableLocales();
986
987 for (Locale locale : locales) {
988 String summary = summaryMap.get(locale);
989
990 setSummary(summary, locale, defaultLocale);
991 }
992 }
993
994 @JSON
995 public String getUrl() {
996 if (_url == null) {
997 return StringPool.BLANK;
998 }
999 else {
1000 return _url;
1001 }
1002 }
1003
1004 public void setUrl(String url) {
1005 _url = url;
1006 }
1007
1008 @JSON
1009 public String getLayoutUuid() {
1010 if (_layoutUuid == null) {
1011 return StringPool.BLANK;
1012 }
1013 else {
1014 return _layoutUuid;
1015 }
1016 }
1017
1018 public void setLayoutUuid(String layoutUuid) {
1019 _columnBitmask |= LAYOUTUUID_COLUMN_BITMASK;
1020
1021 if (_originalLayoutUuid == null) {
1022 _originalLayoutUuid = _layoutUuid;
1023 }
1024
1025 _layoutUuid = layoutUuid;
1026 }
1027
1028 public String getOriginalLayoutUuid() {
1029 return GetterUtil.getString(_originalLayoutUuid);
1030 }
1031
1032 @JSON
1033 public int getHeight() {
1034 return _height;
1035 }
1036
1037 public void setHeight(int height) {
1038 _height = height;
1039 }
1040
1041 @JSON
1042 public int getWidth() {
1043 return _width;
1044 }
1045
1046 public void setWidth(int width) {
1047 _width = width;
1048 }
1049
1050 @JSON
1051 public double getPriority() {
1052 return _priority;
1053 }
1054
1055 public void setPriority(double priority) {
1056 _priority = priority;
1057 }
1058
1059 @JSON
1060 public int getViewCount() {
1061 return _viewCount;
1062 }
1063
1064 public void setViewCount(int viewCount) {
1065 _viewCount = viewCount;
1066 }
1067
1068 public long getColumnBitmask() {
1069 return _columnBitmask;
1070 }
1071
1072 @Override
1073 public ExpandoBridge getExpandoBridge() {
1074 return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
1075 AssetEntry.class.getName(), getPrimaryKey());
1076 }
1077
1078 @Override
1079 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1080 ExpandoBridge expandoBridge = getExpandoBridge();
1081
1082 expandoBridge.setAttributes(serviceContext);
1083 }
1084
1085 @SuppressWarnings("unused")
1086 public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
1087 throws LocaleException {
1088 setTitle(getTitle(defaultImportLocale), defaultImportLocale,
1089 defaultImportLocale);
1090 setDescription(getDescription(defaultImportLocale),
1091 defaultImportLocale, defaultImportLocale);
1092 setSummary(getSummary(defaultImportLocale), defaultImportLocale,
1093 defaultImportLocale);
1094 }
1095
1096 @Override
1097 public AssetEntry toEscapedModel() {
1098 if (_escapedModel == null) {
1099 _escapedModel = (AssetEntry)ProxyUtil.newProxyInstance(_classLoader,
1100 _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
1101 }
1102
1103 return _escapedModel;
1104 }
1105
1106 public AssetEntry toUnescapedModel() {
1107 return (AssetEntry)this;
1108 }
1109
1110 @Override
1111 public Object clone() {
1112 AssetEntryImpl assetEntryImpl = new AssetEntryImpl();
1113
1114 assetEntryImpl.setEntryId(getEntryId());
1115 assetEntryImpl.setGroupId(getGroupId());
1116 assetEntryImpl.setCompanyId(getCompanyId());
1117 assetEntryImpl.setUserId(getUserId());
1118 assetEntryImpl.setUserName(getUserName());
1119 assetEntryImpl.setCreateDate(getCreateDate());
1120 assetEntryImpl.setModifiedDate(getModifiedDate());
1121 assetEntryImpl.setClassNameId(getClassNameId());
1122 assetEntryImpl.setClassPK(getClassPK());
1123 assetEntryImpl.setClassUuid(getClassUuid());
1124 assetEntryImpl.setClassTypeId(getClassTypeId());
1125 assetEntryImpl.setVisible(getVisible());
1126 assetEntryImpl.setStartDate(getStartDate());
1127 assetEntryImpl.setEndDate(getEndDate());
1128 assetEntryImpl.setPublishDate(getPublishDate());
1129 assetEntryImpl.setExpirationDate(getExpirationDate());
1130 assetEntryImpl.setMimeType(getMimeType());
1131 assetEntryImpl.setTitle(getTitle());
1132 assetEntryImpl.setDescription(getDescription());
1133 assetEntryImpl.setSummary(getSummary());
1134 assetEntryImpl.setUrl(getUrl());
1135 assetEntryImpl.setLayoutUuid(getLayoutUuid());
1136 assetEntryImpl.setHeight(getHeight());
1137 assetEntryImpl.setWidth(getWidth());
1138 assetEntryImpl.setPriority(getPriority());
1139 assetEntryImpl.setViewCount(getViewCount());
1140
1141 assetEntryImpl.resetOriginalValues();
1142
1143 return assetEntryImpl;
1144 }
1145
1146 public int compareTo(AssetEntry assetEntry) {
1147 long primaryKey = assetEntry.getPrimaryKey();
1148
1149 if (getPrimaryKey() < primaryKey) {
1150 return -1;
1151 }
1152 else if (getPrimaryKey() > primaryKey) {
1153 return 1;
1154 }
1155 else {
1156 return 0;
1157 }
1158 }
1159
1160 @Override
1161 public boolean equals(Object obj) {
1162 if (this == obj) {
1163 return true;
1164 }
1165
1166 if (!(obj instanceof AssetEntry)) {
1167 return false;
1168 }
1169
1170 AssetEntry assetEntry = (AssetEntry)obj;
1171
1172 long primaryKey = assetEntry.getPrimaryKey();
1173
1174 if (getPrimaryKey() == primaryKey) {
1175 return true;
1176 }
1177 else {
1178 return false;
1179 }
1180 }
1181
1182 @Override
1183 public int hashCode() {
1184 return (int)getPrimaryKey();
1185 }
1186
1187 @Override
1188 public void resetOriginalValues() {
1189 AssetEntryModelImpl assetEntryModelImpl = this;
1190
1191 assetEntryModelImpl._originalGroupId = assetEntryModelImpl._groupId;
1192
1193 assetEntryModelImpl._setOriginalGroupId = false;
1194
1195 assetEntryModelImpl._originalCompanyId = assetEntryModelImpl._companyId;
1196
1197 assetEntryModelImpl._setOriginalCompanyId = false;
1198
1199 assetEntryModelImpl._originalClassNameId = assetEntryModelImpl._classNameId;
1200
1201 assetEntryModelImpl._setOriginalClassNameId = false;
1202
1203 assetEntryModelImpl._originalClassPK = assetEntryModelImpl._classPK;
1204
1205 assetEntryModelImpl._setOriginalClassPK = false;
1206
1207 assetEntryModelImpl._originalClassUuid = assetEntryModelImpl._classUuid;
1208
1209 assetEntryModelImpl._originalVisible = assetEntryModelImpl._visible;
1210
1211 assetEntryModelImpl._setOriginalVisible = false;
1212
1213 assetEntryModelImpl._originalPublishDate = assetEntryModelImpl._publishDate;
1214
1215 assetEntryModelImpl._originalExpirationDate = assetEntryModelImpl._expirationDate;
1216
1217 assetEntryModelImpl._originalLayoutUuid = assetEntryModelImpl._layoutUuid;
1218
1219 assetEntryModelImpl._columnBitmask = 0;
1220 }
1221
1222 @Override
1223 public CacheModel<AssetEntry> toCacheModel() {
1224 AssetEntryCacheModel assetEntryCacheModel = new AssetEntryCacheModel();
1225
1226 assetEntryCacheModel.entryId = getEntryId();
1227
1228 assetEntryCacheModel.groupId = getGroupId();
1229
1230 assetEntryCacheModel.companyId = getCompanyId();
1231
1232 assetEntryCacheModel.userId = getUserId();
1233
1234 assetEntryCacheModel.userName = getUserName();
1235
1236 String userName = assetEntryCacheModel.userName;
1237
1238 if ((userName != null) && (userName.length() == 0)) {
1239 assetEntryCacheModel.userName = null;
1240 }
1241
1242 Date createDate = getCreateDate();
1243
1244 if (createDate != null) {
1245 assetEntryCacheModel.createDate = createDate.getTime();
1246 }
1247 else {
1248 assetEntryCacheModel.createDate = Long.MIN_VALUE;
1249 }
1250
1251 Date modifiedDate = getModifiedDate();
1252
1253 if (modifiedDate != null) {
1254 assetEntryCacheModel.modifiedDate = modifiedDate.getTime();
1255 }
1256 else {
1257 assetEntryCacheModel.modifiedDate = Long.MIN_VALUE;
1258 }
1259
1260 assetEntryCacheModel.classNameId = getClassNameId();
1261
1262 assetEntryCacheModel.classPK = getClassPK();
1263
1264 assetEntryCacheModel.classUuid = getClassUuid();
1265
1266 String classUuid = assetEntryCacheModel.classUuid;
1267
1268 if ((classUuid != null) && (classUuid.length() == 0)) {
1269 assetEntryCacheModel.classUuid = null;
1270 }
1271
1272 assetEntryCacheModel.classTypeId = getClassTypeId();
1273
1274 assetEntryCacheModel.visible = getVisible();
1275
1276 Date startDate = getStartDate();
1277
1278 if (startDate != null) {
1279 assetEntryCacheModel.startDate = startDate.getTime();
1280 }
1281 else {
1282 assetEntryCacheModel.startDate = Long.MIN_VALUE;
1283 }
1284
1285 Date endDate = getEndDate();
1286
1287 if (endDate != null) {
1288 assetEntryCacheModel.endDate = endDate.getTime();
1289 }
1290 else {
1291 assetEntryCacheModel.endDate = Long.MIN_VALUE;
1292 }
1293
1294 Date publishDate = getPublishDate();
1295
1296 if (publishDate != null) {
1297 assetEntryCacheModel.publishDate = publishDate.getTime();
1298 }
1299 else {
1300 assetEntryCacheModel.publishDate = Long.MIN_VALUE;
1301 }
1302
1303 Date expirationDate = getExpirationDate();
1304
1305 if (expirationDate != null) {
1306 assetEntryCacheModel.expirationDate = expirationDate.getTime();
1307 }
1308 else {
1309 assetEntryCacheModel.expirationDate = Long.MIN_VALUE;
1310 }
1311
1312 assetEntryCacheModel.mimeType = getMimeType();
1313
1314 String mimeType = assetEntryCacheModel.mimeType;
1315
1316 if ((mimeType != null) && (mimeType.length() == 0)) {
1317 assetEntryCacheModel.mimeType = null;
1318 }
1319
1320 assetEntryCacheModel.title = getTitle();
1321
1322 String title = assetEntryCacheModel.title;
1323
1324 if ((title != null) && (title.length() == 0)) {
1325 assetEntryCacheModel.title = null;
1326 }
1327
1328 assetEntryCacheModel.description = getDescription();
1329
1330 String description = assetEntryCacheModel.description;
1331
1332 if ((description != null) && (description.length() == 0)) {
1333 assetEntryCacheModel.description = null;
1334 }
1335
1336 assetEntryCacheModel.summary = getSummary();
1337
1338 String summary = assetEntryCacheModel.summary;
1339
1340 if ((summary != null) && (summary.length() == 0)) {
1341 assetEntryCacheModel.summary = null;
1342 }
1343
1344 assetEntryCacheModel.url = getUrl();
1345
1346 String url = assetEntryCacheModel.url;
1347
1348 if ((url != null) && (url.length() == 0)) {
1349 assetEntryCacheModel.url = null;
1350 }
1351
1352 assetEntryCacheModel.layoutUuid = getLayoutUuid();
1353
1354 String layoutUuid = assetEntryCacheModel.layoutUuid;
1355
1356 if ((layoutUuid != null) && (layoutUuid.length() == 0)) {
1357 assetEntryCacheModel.layoutUuid = null;
1358 }
1359
1360 assetEntryCacheModel.height = getHeight();
1361
1362 assetEntryCacheModel.width = getWidth();
1363
1364 assetEntryCacheModel.priority = getPriority();
1365
1366 assetEntryCacheModel.viewCount = getViewCount();
1367
1368 return assetEntryCacheModel;
1369 }
1370
1371 @Override
1372 public String toString() {
1373 StringBundler sb = new StringBundler(53);
1374
1375 sb.append("{entryId=");
1376 sb.append(getEntryId());
1377 sb.append(", groupId=");
1378 sb.append(getGroupId());
1379 sb.append(", companyId=");
1380 sb.append(getCompanyId());
1381 sb.append(", userId=");
1382 sb.append(getUserId());
1383 sb.append(", userName=");
1384 sb.append(getUserName());
1385 sb.append(", createDate=");
1386 sb.append(getCreateDate());
1387 sb.append(", modifiedDate=");
1388 sb.append(getModifiedDate());
1389 sb.append(", classNameId=");
1390 sb.append(getClassNameId());
1391 sb.append(", classPK=");
1392 sb.append(getClassPK());
1393 sb.append(", classUuid=");
1394 sb.append(getClassUuid());
1395 sb.append(", classTypeId=");
1396 sb.append(getClassTypeId());
1397 sb.append(", visible=");
1398 sb.append(getVisible());
1399 sb.append(", startDate=");
1400 sb.append(getStartDate());
1401 sb.append(", endDate=");
1402 sb.append(getEndDate());
1403 sb.append(", publishDate=");
1404 sb.append(getPublishDate());
1405 sb.append(", expirationDate=");
1406 sb.append(getExpirationDate());
1407 sb.append(", mimeType=");
1408 sb.append(getMimeType());
1409 sb.append(", title=");
1410 sb.append(getTitle());
1411 sb.append(", description=");
1412 sb.append(getDescription());
1413 sb.append(", summary=");
1414 sb.append(getSummary());
1415 sb.append(", url=");
1416 sb.append(getUrl());
1417 sb.append(", layoutUuid=");
1418 sb.append(getLayoutUuid());
1419 sb.append(", height=");
1420 sb.append(getHeight());
1421 sb.append(", width=");
1422 sb.append(getWidth());
1423 sb.append(", priority=");
1424 sb.append(getPriority());
1425 sb.append(", viewCount=");
1426 sb.append(getViewCount());
1427 sb.append("}");
1428
1429 return sb.toString();
1430 }
1431
1432 public String toXmlString() {
1433 StringBundler sb = new StringBundler(82);
1434
1435 sb.append("<model><model-name>");
1436 sb.append("com.liferay.portlet.asset.model.AssetEntry");
1437 sb.append("</model-name>");
1438
1439 sb.append(
1440 "<column><column-name>entryId</column-name><column-value><![CDATA[");
1441 sb.append(getEntryId());
1442 sb.append("]]></column-value></column>");
1443 sb.append(
1444 "<column><column-name>groupId</column-name><column-value><![CDATA[");
1445 sb.append(getGroupId());
1446 sb.append("]]></column-value></column>");
1447 sb.append(
1448 "<column><column-name>companyId</column-name><column-value><![CDATA[");
1449 sb.append(getCompanyId());
1450 sb.append("]]></column-value></column>");
1451 sb.append(
1452 "<column><column-name>userId</column-name><column-value><![CDATA[");
1453 sb.append(getUserId());
1454 sb.append("]]></column-value></column>");
1455 sb.append(
1456 "<column><column-name>userName</column-name><column-value><![CDATA[");
1457 sb.append(getUserName());
1458 sb.append("]]></column-value></column>");
1459 sb.append(
1460 "<column><column-name>createDate</column-name><column-value><![CDATA[");
1461 sb.append(getCreateDate());
1462 sb.append("]]></column-value></column>");
1463 sb.append(
1464 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
1465 sb.append(getModifiedDate());
1466 sb.append("]]></column-value></column>");
1467 sb.append(
1468 "<column><column-name>classNameId</column-name><column-value><![CDATA[");
1469 sb.append(getClassNameId());
1470 sb.append("]]></column-value></column>");
1471 sb.append(
1472 "<column><column-name>classPK</column-name><column-value><![CDATA[");
1473 sb.append(getClassPK());
1474 sb.append("]]></column-value></column>");
1475 sb.append(
1476 "<column><column-name>classUuid</column-name><column-value><![CDATA[");
1477 sb.append(getClassUuid());
1478 sb.append("]]></column-value></column>");
1479 sb.append(
1480 "<column><column-name>classTypeId</column-name><column-value><![CDATA[");
1481 sb.append(getClassTypeId());
1482 sb.append("]]></column-value></column>");
1483 sb.append(
1484 "<column><column-name>visible</column-name><column-value><![CDATA[");
1485 sb.append(getVisible());
1486 sb.append("]]></column-value></column>");
1487 sb.append(
1488 "<column><column-name>startDate</column-name><column-value><![CDATA[");
1489 sb.append(getStartDate());
1490 sb.append("]]></column-value></column>");
1491 sb.append(
1492 "<column><column-name>endDate</column-name><column-value><![CDATA[");
1493 sb.append(getEndDate());
1494 sb.append("]]></column-value></column>");
1495 sb.append(
1496 "<column><column-name>publishDate</column-name><column-value><![CDATA[");
1497 sb.append(getPublishDate());
1498 sb.append("]]></column-value></column>");
1499 sb.append(
1500 "<column><column-name>expirationDate</column-name><column-value><![CDATA[");
1501 sb.append(getExpirationDate());
1502 sb.append("]]></column-value></column>");
1503 sb.append(
1504 "<column><column-name>mimeType</column-name><column-value><![CDATA[");
1505 sb.append(getMimeType());
1506 sb.append("]]></column-value></column>");
1507 sb.append(
1508 "<column><column-name>title</column-name><column-value><![CDATA[");
1509 sb.append(getTitle());
1510 sb.append("]]></column-value></column>");
1511 sb.append(
1512 "<column><column-name>description</column-name><column-value><![CDATA[");
1513 sb.append(getDescription());
1514 sb.append("]]></column-value></column>");
1515 sb.append(
1516 "<column><column-name>summary</column-name><column-value><![CDATA[");
1517 sb.append(getSummary());
1518 sb.append("]]></column-value></column>");
1519 sb.append(
1520 "<column><column-name>url</column-name><column-value><![CDATA[");
1521 sb.append(getUrl());
1522 sb.append("]]></column-value></column>");
1523 sb.append(
1524 "<column><column-name>layoutUuid</column-name><column-value><![CDATA[");
1525 sb.append(getLayoutUuid());
1526 sb.append("]]></column-value></column>");
1527 sb.append(
1528 "<column><column-name>height</column-name><column-value><![CDATA[");
1529 sb.append(getHeight());
1530 sb.append("]]></column-value></column>");
1531 sb.append(
1532 "<column><column-name>width</column-name><column-value><![CDATA[");
1533 sb.append(getWidth());
1534 sb.append("]]></column-value></column>");
1535 sb.append(
1536 "<column><column-name>priority</column-name><column-value><![CDATA[");
1537 sb.append(getPriority());
1538 sb.append("]]></column-value></column>");
1539 sb.append(
1540 "<column><column-name>viewCount</column-name><column-value><![CDATA[");
1541 sb.append(getViewCount());
1542 sb.append("]]></column-value></column>");
1543
1544 sb.append("</model>");
1545
1546 return sb.toString();
1547 }
1548
1549 private static ClassLoader _classLoader = AssetEntry.class.getClassLoader();
1550 private static Class<?>[] _escapedModelInterfaces = new Class[] {
1551 AssetEntry.class
1552 };
1553 private long _entryId;
1554 private long _groupId;
1555 private long _originalGroupId;
1556 private boolean _setOriginalGroupId;
1557 private long _companyId;
1558 private long _originalCompanyId;
1559 private boolean _setOriginalCompanyId;
1560 private long _userId;
1561 private String _userUuid;
1562 private String _userName;
1563 private Date _createDate;
1564 private Date _modifiedDate;
1565 private long _classNameId;
1566 private long _originalClassNameId;
1567 private boolean _setOriginalClassNameId;
1568 private long _classPK;
1569 private long _originalClassPK;
1570 private boolean _setOriginalClassPK;
1571 private String _classUuid;
1572 private String _originalClassUuid;
1573 private long _classTypeId;
1574 private boolean _visible;
1575 private boolean _originalVisible;
1576 private boolean _setOriginalVisible;
1577 private Date _startDate;
1578 private Date _endDate;
1579 private Date _publishDate;
1580 private Date _originalPublishDate;
1581 private Date _expirationDate;
1582 private Date _originalExpirationDate;
1583 private String _mimeType;
1584 private String _title;
1585 private String _titleCurrentLanguageId;
1586 private String _description;
1587 private String _descriptionCurrentLanguageId;
1588 private String _summary;
1589 private String _summaryCurrentLanguageId;
1590 private String _url;
1591 private String _layoutUuid;
1592 private String _originalLayoutUuid;
1593 private int _height;
1594 private int _width;
1595 private double _priority;
1596 private int _viewCount;
1597 private long _columnBitmask;
1598 private AssetEntry _escapedModel;
1599 }