Foros de discusión

Custom Asset won't show up in asset publisher..what am I doing wrong?

thumbnail
Brian Scott Schupbach, modificado hace 11 años.

Custom Asset won't show up in asset publisher..what am I doing wrong?

Expert Mensajes: 329 Fecha de incorporación: 23/10/08 Mensajes recientes
I've created a custom asset and can see the type listed in the configuration of the asset publisher. Here is the code I'm using to actually add the asset:

 

                                AssetEntry assetEntry = AssetEntryLocalServiceUtil.createAssetEntry(fp.getFundSystemId());
				
                                  assetEntry.setClassPK(fp.getFundSystemId());
				 assetEntry.setClassNameId(PortalUtil.getClassNameId(FundSettings.class.getName()));
				 assetEntry.setDescription(fp.getShortDescription());
				 assetEntry.setVisible(fp.isEnabled());
				 assetEntry.setUserId(uid);
				 assetEntry.setTitle(fp.getTitle());
				 assetEntry.setSummary(fp.getShortDescription());
				 assetEntry.setUserId(fp.getUserId());
				 assetEntry.setCompanyId(fp.getCompanyId());
				 assetEntry.setGroupId(fp.getGroupId());
				 assetEntry.setEntryId(fp.getFundSystemId());
				 assetEntry.setMimeType("text/html");
				 assetEntry.setNew(true);
				 assetEntry.setPrimaryKey(fp.getFundSystemId());
				 assetEntry.setUserName(u.getScreenName());
				 assetEntry.setUserUuid(u.getUserUuid());
				 assetEntry.setVisible(fp.isEnabled());

				 AssetEntryLocalServiceUtil.addAssetEntry(assetEntry);	 


When this is ran I can see the entry in the AssetEntry table in the database. Here is what I see (the items in bold came across without a value):

entryId groupId companyId userId userName createDate modifiedDate classNameId classPK classUuid visible startDate endDate publishDate expirationDate mimeType title description summary url height width priority viewCount classTypeId layoutUuid
1354239 10148 10131 66108 Brian Schupbach 2013-02-26 14:41:34.993 2013-02-26 14:41:34.993 1353995 8703 1 NULL NULL NULL NULL 0 0 0 0 0


Can anyone see what I'm doing wrong? I'm stuck..