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 PUBLISHDATE_COLUMN_BITMASK = 64L;
122 public static long VISIBLE_COLUMN_BITMASK = 128L;
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 Locale[] locales = LanguageUtil.getAvailableLocales();
801
802 for (Locale locale : locales) {
803 String title = titleMap.get(locale);
804
805 setTitle(title, locale, defaultLocale);
806 }
807 }
808
809 @JSON
810 public String getDescription() {
811 if (_description == null) {
812 return StringPool.BLANK;
813 }
814 else {
815 return _description;
816 }
817 }
818
819 public String getDescription(Locale locale) {
820 String languageId = LocaleUtil.toLanguageId(locale);
821
822 return getDescription(languageId);
823 }
824
825 public String getDescription(Locale locale, boolean useDefault) {
826 String languageId = LocaleUtil.toLanguageId(locale);
827
828 return getDescription(languageId, useDefault);
829 }
830
831 public String getDescription(String languageId) {
832 return LocalizationUtil.getLocalization(getDescription(), languageId);
833 }
834
835 public String getDescription(String languageId, boolean useDefault) {
836 return LocalizationUtil.getLocalization(getDescription(), languageId,
837 useDefault);
838 }
839
840 public String getDescriptionCurrentLanguageId() {
841 return _descriptionCurrentLanguageId;
842 }
843
844 @JSON
845 public String getDescriptionCurrentValue() {
846 Locale locale = getLocale(_descriptionCurrentLanguageId);
847
848 return getDescription(locale);
849 }
850
851 public Map<Locale, String> getDescriptionMap() {
852 return LocalizationUtil.getLocalizationMap(getDescription());
853 }
854
855 public void setDescription(String description) {
856 _description = description;
857 }
858
859 public void setDescription(String description, Locale locale) {
860 setDescription(description, locale, LocaleUtil.getDefault());
861 }
862
863 public void setDescription(String description, Locale locale,
864 Locale defaultLocale) {
865 String languageId = LocaleUtil.toLanguageId(locale);
866 String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
867
868 if (Validator.isNotNull(description)) {
869 setDescription(LocalizationUtil.updateLocalization(
870 getDescription(), "Description", description, languageId,
871 defaultLanguageId));
872 }
873 else {
874 setDescription(LocalizationUtil.removeLocalization(
875 getDescription(), "Description", languageId));
876 }
877 }
878
879 public void setDescriptionCurrentLanguageId(String languageId) {
880 _descriptionCurrentLanguageId = languageId;
881 }
882
883 public void setDescriptionMap(Map<Locale, String> descriptionMap) {
884 setDescriptionMap(descriptionMap, LocaleUtil.getDefault());
885 }
886
887 public void setDescriptionMap(Map<Locale, String> descriptionMap,
888 Locale defaultLocale) {
889 if (descriptionMap == null) {
890 return;
891 }
892
893 Locale[] locales = LanguageUtil.getAvailableLocales();
894
895 for (Locale locale : locales) {
896 String description = descriptionMap.get(locale);
897
898 setDescription(description, locale, defaultLocale);
899 }
900 }
901
902 @JSON
903 public String getSummary() {
904 if (_summary == null) {
905 return StringPool.BLANK;
906 }
907 else {
908 return _summary;
909 }
910 }
911
912 public String getSummary(Locale locale) {
913 String languageId = LocaleUtil.toLanguageId(locale);
914
915 return getSummary(languageId);
916 }
917
918 public String getSummary(Locale locale, boolean useDefault) {
919 String languageId = LocaleUtil.toLanguageId(locale);
920
921 return getSummary(languageId, useDefault);
922 }
923
924 public String getSummary(String languageId) {
925 return LocalizationUtil.getLocalization(getSummary(), languageId);
926 }
927
928 public String getSummary(String languageId, boolean useDefault) {
929 return LocalizationUtil.getLocalization(getSummary(), languageId,
930 useDefault);
931 }
932
933 public String getSummaryCurrentLanguageId() {
934 return _summaryCurrentLanguageId;
935 }
936
937 @JSON
938 public String getSummaryCurrentValue() {
939 Locale locale = getLocale(_summaryCurrentLanguageId);
940
941 return getSummary(locale);
942 }
943
944 public Map<Locale, String> getSummaryMap() {
945 return LocalizationUtil.getLocalizationMap(getSummary());
946 }
947
948 public void setSummary(String summary) {
949 _summary = summary;
950 }
951
952 public void setSummary(String summary, Locale locale) {
953 setSummary(summary, locale, LocaleUtil.getDefault());
954 }
955
956 public void setSummary(String summary, Locale locale, Locale defaultLocale) {
957 String languageId = LocaleUtil.toLanguageId(locale);
958 String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
959
960 if (Validator.isNotNull(summary)) {
961 setSummary(LocalizationUtil.updateLocalization(getSummary(),
962 "Summary", summary, languageId, defaultLanguageId));
963 }
964 else {
965 setSummary(LocalizationUtil.removeLocalization(getSummary(),
966 "Summary", languageId));
967 }
968 }
969
970 public void setSummaryCurrentLanguageId(String languageId) {
971 _summaryCurrentLanguageId = languageId;
972 }
973
974 public void setSummaryMap(Map<Locale, String> summaryMap) {
975 setSummaryMap(summaryMap, LocaleUtil.getDefault());
976 }
977
978 public void setSummaryMap(Map<Locale, String> summaryMap,
979 Locale defaultLocale) {
980 if (summaryMap == null) {
981 return;
982 }
983
984 Locale[] locales = LanguageUtil.getAvailableLocales();
985
986 for (Locale locale : locales) {
987 String summary = summaryMap.get(locale);
988
989 setSummary(summary, locale, defaultLocale);
990 }
991 }
992
993 @JSON
994 public String getUrl() {
995 if (_url == null) {
996 return StringPool.BLANK;
997 }
998 else {
999 return _url;
1000 }
1001 }
1002
1003 public void setUrl(String url) {
1004 _url = url;
1005 }
1006
1007 @JSON
1008 public String getLayoutUuid() {
1009 if (_layoutUuid == null) {
1010 return StringPool.BLANK;
1011 }
1012 else {
1013 return _layoutUuid;
1014 }
1015 }
1016
1017 public void setLayoutUuid(String layoutUuid) {
1018 _layoutUuid = layoutUuid;
1019 }
1020
1021 @JSON
1022 public int getHeight() {
1023 return _height;
1024 }
1025
1026 public void setHeight(int height) {
1027 _height = height;
1028 }
1029
1030 @JSON
1031 public int getWidth() {
1032 return _width;
1033 }
1034
1035 public void setWidth(int width) {
1036 _width = width;
1037 }
1038
1039 @JSON
1040 public double getPriority() {
1041 return _priority;
1042 }
1043
1044 public void setPriority(double priority) {
1045 _priority = priority;
1046 }
1047
1048 @JSON
1049 public int getViewCount() {
1050 return _viewCount;
1051 }
1052
1053 public void setViewCount(int viewCount) {
1054 _viewCount = viewCount;
1055 }
1056
1057 public long getColumnBitmask() {
1058 return _columnBitmask;
1059 }
1060
1061 @Override
1062 public ExpandoBridge getExpandoBridge() {
1063 return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
1064 AssetEntry.class.getName(), getPrimaryKey());
1065 }
1066
1067 @Override
1068 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1069 ExpandoBridge expandoBridge = getExpandoBridge();
1070
1071 expandoBridge.setAttributes(serviceContext);
1072 }
1073
1074 @SuppressWarnings("unused")
1075 public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
1076 throws LocaleException {
1077 setTitle(getTitle(defaultImportLocale), defaultImportLocale,
1078 defaultImportLocale);
1079 setDescription(getDescription(defaultImportLocale),
1080 defaultImportLocale, defaultImportLocale);
1081 setSummary(getSummary(defaultImportLocale), defaultImportLocale,
1082 defaultImportLocale);
1083 }
1084
1085 @Override
1086 public AssetEntry toEscapedModel() {
1087 if (_escapedModelProxy == null) {
1088 _escapedModelProxy = (AssetEntry)ProxyUtil.newProxyInstance(_classLoader,
1089 _escapedModelProxyInterfaces,
1090 new AutoEscapeBeanHandler(this));
1091 }
1092
1093 return _escapedModelProxy;
1094 }
1095
1096 @Override
1097 public Object clone() {
1098 AssetEntryImpl assetEntryImpl = new AssetEntryImpl();
1099
1100 assetEntryImpl.setEntryId(getEntryId());
1101 assetEntryImpl.setGroupId(getGroupId());
1102 assetEntryImpl.setCompanyId(getCompanyId());
1103 assetEntryImpl.setUserId(getUserId());
1104 assetEntryImpl.setUserName(getUserName());
1105 assetEntryImpl.setCreateDate(getCreateDate());
1106 assetEntryImpl.setModifiedDate(getModifiedDate());
1107 assetEntryImpl.setClassNameId(getClassNameId());
1108 assetEntryImpl.setClassPK(getClassPK());
1109 assetEntryImpl.setClassUuid(getClassUuid());
1110 assetEntryImpl.setClassTypeId(getClassTypeId());
1111 assetEntryImpl.setVisible(getVisible());
1112 assetEntryImpl.setStartDate(getStartDate());
1113 assetEntryImpl.setEndDate(getEndDate());
1114 assetEntryImpl.setPublishDate(getPublishDate());
1115 assetEntryImpl.setExpirationDate(getExpirationDate());
1116 assetEntryImpl.setMimeType(getMimeType());
1117 assetEntryImpl.setTitle(getTitle());
1118 assetEntryImpl.setDescription(getDescription());
1119 assetEntryImpl.setSummary(getSummary());
1120 assetEntryImpl.setUrl(getUrl());
1121 assetEntryImpl.setLayoutUuid(getLayoutUuid());
1122 assetEntryImpl.setHeight(getHeight());
1123 assetEntryImpl.setWidth(getWidth());
1124 assetEntryImpl.setPriority(getPriority());
1125 assetEntryImpl.setViewCount(getViewCount());
1126
1127 assetEntryImpl.resetOriginalValues();
1128
1129 return assetEntryImpl;
1130 }
1131
1132 public int compareTo(AssetEntry assetEntry) {
1133 long primaryKey = assetEntry.getPrimaryKey();
1134
1135 if (getPrimaryKey() < primaryKey) {
1136 return -1;
1137 }
1138 else if (getPrimaryKey() > primaryKey) {
1139 return 1;
1140 }
1141 else {
1142 return 0;
1143 }
1144 }
1145
1146 @Override
1147 public boolean equals(Object obj) {
1148 if (obj == null) {
1149 return false;
1150 }
1151
1152 AssetEntry assetEntry = null;
1153
1154 try {
1155 assetEntry = (AssetEntry)obj;
1156 }
1157 catch (ClassCastException cce) {
1158 return false;
1159 }
1160
1161 long primaryKey = assetEntry.getPrimaryKey();
1162
1163 if (getPrimaryKey() == primaryKey) {
1164 return true;
1165 }
1166 else {
1167 return false;
1168 }
1169 }
1170
1171 @Override
1172 public int hashCode() {
1173 return (int)getPrimaryKey();
1174 }
1175
1176 @Override
1177 public void resetOriginalValues() {
1178 AssetEntryModelImpl assetEntryModelImpl = this;
1179
1180 assetEntryModelImpl._originalGroupId = assetEntryModelImpl._groupId;
1181
1182 assetEntryModelImpl._setOriginalGroupId = false;
1183
1184 assetEntryModelImpl._originalCompanyId = assetEntryModelImpl._companyId;
1185
1186 assetEntryModelImpl._setOriginalCompanyId = false;
1187
1188 assetEntryModelImpl._originalClassNameId = assetEntryModelImpl._classNameId;
1189
1190 assetEntryModelImpl._setOriginalClassNameId = false;
1191
1192 assetEntryModelImpl._originalClassPK = assetEntryModelImpl._classPK;
1193
1194 assetEntryModelImpl._setOriginalClassPK = false;
1195
1196 assetEntryModelImpl._originalClassUuid = assetEntryModelImpl._classUuid;
1197
1198 assetEntryModelImpl._originalVisible = assetEntryModelImpl._visible;
1199
1200 assetEntryModelImpl._setOriginalVisible = false;
1201
1202 assetEntryModelImpl._originalPublishDate = assetEntryModelImpl._publishDate;
1203
1204 assetEntryModelImpl._originalExpirationDate = assetEntryModelImpl._expirationDate;
1205
1206 assetEntryModelImpl._columnBitmask = 0;
1207 }
1208
1209 @Override
1210 public CacheModel<AssetEntry> toCacheModel() {
1211 AssetEntryCacheModel assetEntryCacheModel = new AssetEntryCacheModel();
1212
1213 assetEntryCacheModel.entryId = getEntryId();
1214
1215 assetEntryCacheModel.groupId = getGroupId();
1216
1217 assetEntryCacheModel.companyId = getCompanyId();
1218
1219 assetEntryCacheModel.userId = getUserId();
1220
1221 assetEntryCacheModel.userName = getUserName();
1222
1223 String userName = assetEntryCacheModel.userName;
1224
1225 if ((userName != null) && (userName.length() == 0)) {
1226 assetEntryCacheModel.userName = null;
1227 }
1228
1229 Date createDate = getCreateDate();
1230
1231 if (createDate != null) {
1232 assetEntryCacheModel.createDate = createDate.getTime();
1233 }
1234 else {
1235 assetEntryCacheModel.createDate = Long.MIN_VALUE;
1236 }
1237
1238 Date modifiedDate = getModifiedDate();
1239
1240 if (modifiedDate != null) {
1241 assetEntryCacheModel.modifiedDate = modifiedDate.getTime();
1242 }
1243 else {
1244 assetEntryCacheModel.modifiedDate = Long.MIN_VALUE;
1245 }
1246
1247 assetEntryCacheModel.classNameId = getClassNameId();
1248
1249 assetEntryCacheModel.classPK = getClassPK();
1250
1251 assetEntryCacheModel.classUuid = getClassUuid();
1252
1253 String classUuid = assetEntryCacheModel.classUuid;
1254
1255 if ((classUuid != null) && (classUuid.length() == 0)) {
1256 assetEntryCacheModel.classUuid = null;
1257 }
1258
1259 assetEntryCacheModel.classTypeId = getClassTypeId();
1260
1261 assetEntryCacheModel.visible = getVisible();
1262
1263 Date startDate = getStartDate();
1264
1265 if (startDate != null) {
1266 assetEntryCacheModel.startDate = startDate.getTime();
1267 }
1268 else {
1269 assetEntryCacheModel.startDate = Long.MIN_VALUE;
1270 }
1271
1272 Date endDate = getEndDate();
1273
1274 if (endDate != null) {
1275 assetEntryCacheModel.endDate = endDate.getTime();
1276 }
1277 else {
1278 assetEntryCacheModel.endDate = Long.MIN_VALUE;
1279 }
1280
1281 Date publishDate = getPublishDate();
1282
1283 if (publishDate != null) {
1284 assetEntryCacheModel.publishDate = publishDate.getTime();
1285 }
1286 else {
1287 assetEntryCacheModel.publishDate = Long.MIN_VALUE;
1288 }
1289
1290 Date expirationDate = getExpirationDate();
1291
1292 if (expirationDate != null) {
1293 assetEntryCacheModel.expirationDate = expirationDate.getTime();
1294 }
1295 else {
1296 assetEntryCacheModel.expirationDate = Long.MIN_VALUE;
1297 }
1298
1299 assetEntryCacheModel.mimeType = getMimeType();
1300
1301 String mimeType = assetEntryCacheModel.mimeType;
1302
1303 if ((mimeType != null) && (mimeType.length() == 0)) {
1304 assetEntryCacheModel.mimeType = null;
1305 }
1306
1307 assetEntryCacheModel.title = getTitle();
1308
1309 String title = assetEntryCacheModel.title;
1310
1311 if ((title != null) && (title.length() == 0)) {
1312 assetEntryCacheModel.title = null;
1313 }
1314
1315 assetEntryCacheModel.description = getDescription();
1316
1317 String description = assetEntryCacheModel.description;
1318
1319 if ((description != null) && (description.length() == 0)) {
1320 assetEntryCacheModel.description = null;
1321 }
1322
1323 assetEntryCacheModel.summary = getSummary();
1324
1325 String summary = assetEntryCacheModel.summary;
1326
1327 if ((summary != null) && (summary.length() == 0)) {
1328 assetEntryCacheModel.summary = null;
1329 }
1330
1331 assetEntryCacheModel.url = getUrl();
1332
1333 String url = assetEntryCacheModel.url;
1334
1335 if ((url != null) && (url.length() == 0)) {
1336 assetEntryCacheModel.url = null;
1337 }
1338
1339 assetEntryCacheModel.layoutUuid = getLayoutUuid();
1340
1341 String layoutUuid = assetEntryCacheModel.layoutUuid;
1342
1343 if ((layoutUuid != null) && (layoutUuid.length() == 0)) {
1344 assetEntryCacheModel.layoutUuid = null;
1345 }
1346
1347 assetEntryCacheModel.height = getHeight();
1348
1349 assetEntryCacheModel.width = getWidth();
1350
1351 assetEntryCacheModel.priority = getPriority();
1352
1353 assetEntryCacheModel.viewCount = getViewCount();
1354
1355 return assetEntryCacheModel;
1356 }
1357
1358 @Override
1359 public String toString() {
1360 StringBundler sb = new StringBundler(53);
1361
1362 sb.append("{entryId=");
1363 sb.append(getEntryId());
1364 sb.append(", groupId=");
1365 sb.append(getGroupId());
1366 sb.append(", companyId=");
1367 sb.append(getCompanyId());
1368 sb.append(", userId=");
1369 sb.append(getUserId());
1370 sb.append(", userName=");
1371 sb.append(getUserName());
1372 sb.append(", createDate=");
1373 sb.append(getCreateDate());
1374 sb.append(", modifiedDate=");
1375 sb.append(getModifiedDate());
1376 sb.append(", classNameId=");
1377 sb.append(getClassNameId());
1378 sb.append(", classPK=");
1379 sb.append(getClassPK());
1380 sb.append(", classUuid=");
1381 sb.append(getClassUuid());
1382 sb.append(", classTypeId=");
1383 sb.append(getClassTypeId());
1384 sb.append(", visible=");
1385 sb.append(getVisible());
1386 sb.append(", startDate=");
1387 sb.append(getStartDate());
1388 sb.append(", endDate=");
1389 sb.append(getEndDate());
1390 sb.append(", publishDate=");
1391 sb.append(getPublishDate());
1392 sb.append(", expirationDate=");
1393 sb.append(getExpirationDate());
1394 sb.append(", mimeType=");
1395 sb.append(getMimeType());
1396 sb.append(", title=");
1397 sb.append(getTitle());
1398 sb.append(", description=");
1399 sb.append(getDescription());
1400 sb.append(", summary=");
1401 sb.append(getSummary());
1402 sb.append(", url=");
1403 sb.append(getUrl());
1404 sb.append(", layoutUuid=");
1405 sb.append(getLayoutUuid());
1406 sb.append(", height=");
1407 sb.append(getHeight());
1408 sb.append(", width=");
1409 sb.append(getWidth());
1410 sb.append(", priority=");
1411 sb.append(getPriority());
1412 sb.append(", viewCount=");
1413 sb.append(getViewCount());
1414 sb.append("}");
1415
1416 return sb.toString();
1417 }
1418
1419 public String toXmlString() {
1420 StringBundler sb = new StringBundler(82);
1421
1422 sb.append("<model><model-name>");
1423 sb.append("com.liferay.portlet.asset.model.AssetEntry");
1424 sb.append("</model-name>");
1425
1426 sb.append(
1427 "<column><column-name>entryId</column-name><column-value><![CDATA[");
1428 sb.append(getEntryId());
1429 sb.append("]]></column-value></column>");
1430 sb.append(
1431 "<column><column-name>groupId</column-name><column-value><![CDATA[");
1432 sb.append(getGroupId());
1433 sb.append("]]></column-value></column>");
1434 sb.append(
1435 "<column><column-name>companyId</column-name><column-value><![CDATA[");
1436 sb.append(getCompanyId());
1437 sb.append("]]></column-value></column>");
1438 sb.append(
1439 "<column><column-name>userId</column-name><column-value><![CDATA[");
1440 sb.append(getUserId());
1441 sb.append("]]></column-value></column>");
1442 sb.append(
1443 "<column><column-name>userName</column-name><column-value><![CDATA[");
1444 sb.append(getUserName());
1445 sb.append("]]></column-value></column>");
1446 sb.append(
1447 "<column><column-name>createDate</column-name><column-value><![CDATA[");
1448 sb.append(getCreateDate());
1449 sb.append("]]></column-value></column>");
1450 sb.append(
1451 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
1452 sb.append(getModifiedDate());
1453 sb.append("]]></column-value></column>");
1454 sb.append(
1455 "<column><column-name>classNameId</column-name><column-value><![CDATA[");
1456 sb.append(getClassNameId());
1457 sb.append("]]></column-value></column>");
1458 sb.append(
1459 "<column><column-name>classPK</column-name><column-value><![CDATA[");
1460 sb.append(getClassPK());
1461 sb.append("]]></column-value></column>");
1462 sb.append(
1463 "<column><column-name>classUuid</column-name><column-value><![CDATA[");
1464 sb.append(getClassUuid());
1465 sb.append("]]></column-value></column>");
1466 sb.append(
1467 "<column><column-name>classTypeId</column-name><column-value><![CDATA[");
1468 sb.append(getClassTypeId());
1469 sb.append("]]></column-value></column>");
1470 sb.append(
1471 "<column><column-name>visible</column-name><column-value><![CDATA[");
1472 sb.append(getVisible());
1473 sb.append("]]></column-value></column>");
1474 sb.append(
1475 "<column><column-name>startDate</column-name><column-value><![CDATA[");
1476 sb.append(getStartDate());
1477 sb.append("]]></column-value></column>");
1478 sb.append(
1479 "<column><column-name>endDate</column-name><column-value><![CDATA[");
1480 sb.append(getEndDate());
1481 sb.append("]]></column-value></column>");
1482 sb.append(
1483 "<column><column-name>publishDate</column-name><column-value><![CDATA[");
1484 sb.append(getPublishDate());
1485 sb.append("]]></column-value></column>");
1486 sb.append(
1487 "<column><column-name>expirationDate</column-name><column-value><![CDATA[");
1488 sb.append(getExpirationDate());
1489 sb.append("]]></column-value></column>");
1490 sb.append(
1491 "<column><column-name>mimeType</column-name><column-value><![CDATA[");
1492 sb.append(getMimeType());
1493 sb.append("]]></column-value></column>");
1494 sb.append(
1495 "<column><column-name>title</column-name><column-value><![CDATA[");
1496 sb.append(getTitle());
1497 sb.append("]]></column-value></column>");
1498 sb.append(
1499 "<column><column-name>description</column-name><column-value><![CDATA[");
1500 sb.append(getDescription());
1501 sb.append("]]></column-value></column>");
1502 sb.append(
1503 "<column><column-name>summary</column-name><column-value><![CDATA[");
1504 sb.append(getSummary());
1505 sb.append("]]></column-value></column>");
1506 sb.append(
1507 "<column><column-name>url</column-name><column-value><![CDATA[");
1508 sb.append(getUrl());
1509 sb.append("]]></column-value></column>");
1510 sb.append(
1511 "<column><column-name>layoutUuid</column-name><column-value><![CDATA[");
1512 sb.append(getLayoutUuid());
1513 sb.append("]]></column-value></column>");
1514 sb.append(
1515 "<column><column-name>height</column-name><column-value><![CDATA[");
1516 sb.append(getHeight());
1517 sb.append("]]></column-value></column>");
1518 sb.append(
1519 "<column><column-name>width</column-name><column-value><![CDATA[");
1520 sb.append(getWidth());
1521 sb.append("]]></column-value></column>");
1522 sb.append(
1523 "<column><column-name>priority</column-name><column-value><![CDATA[");
1524 sb.append(getPriority());
1525 sb.append("]]></column-value></column>");
1526 sb.append(
1527 "<column><column-name>viewCount</column-name><column-value><![CDATA[");
1528 sb.append(getViewCount());
1529 sb.append("]]></column-value></column>");
1530
1531 sb.append("</model>");
1532
1533 return sb.toString();
1534 }
1535
1536 private static ClassLoader _classLoader = AssetEntry.class.getClassLoader();
1537 private static Class<?>[] _escapedModelProxyInterfaces = new Class[] {
1538 AssetEntry.class
1539 };
1540 private long _entryId;
1541 private long _groupId;
1542 private long _originalGroupId;
1543 private boolean _setOriginalGroupId;
1544 private long _companyId;
1545 private long _originalCompanyId;
1546 private boolean _setOriginalCompanyId;
1547 private long _userId;
1548 private String _userUuid;
1549 private String _userName;
1550 private Date _createDate;
1551 private Date _modifiedDate;
1552 private long _classNameId;
1553 private long _originalClassNameId;
1554 private boolean _setOriginalClassNameId;
1555 private long _classPK;
1556 private long _originalClassPK;
1557 private boolean _setOriginalClassPK;
1558 private String _classUuid;
1559 private String _originalClassUuid;
1560 private long _classTypeId;
1561 private boolean _visible;
1562 private boolean _originalVisible;
1563 private boolean _setOriginalVisible;
1564 private Date _startDate;
1565 private Date _endDate;
1566 private Date _publishDate;
1567 private Date _originalPublishDate;
1568 private Date _expirationDate;
1569 private Date _originalExpirationDate;
1570 private String _mimeType;
1571 private String _title;
1572 private String _titleCurrentLanguageId;
1573 private String _description;
1574 private String _descriptionCurrentLanguageId;
1575 private String _summary;
1576 private String _summaryCurrentLanguageId;
1577 private String _url;
1578 private String _layoutUuid;
1579 private int _height;
1580 private int _width;
1581 private double _priority;
1582 private int _viewCount;
1583 private long _columnBitmask;
1584 private AssetEntry _escapedModelProxy;
1585 }