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