Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Metadata-only asset creation

Avatar

Avatar
Validate 1
Level 2
jimp38732070
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jimp38732070
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
jimp38732070
Level 2

24-10-2017

Can I create an metadata-only asset?  Basically an asset record with metadata, but no asset object exists yet. Then later we update that record/asset with the actual file.  The use case is I'd like to create asset records before that actual finished good asset is ready.  That way I have an AssetID of the asset before there is an asset.

Thanks!

Jim P

AEM Assets ver. 6.3

Message was edited by: Jim Presley - added AEM version

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

276 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
Level 10
edubey
Level 10

Likes

276 likes

Total Posts

1,502 posts

Correct Reply

392 solutions
Top badges earned
Validate 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
edubey
Level 10

25-10-2017

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
jimp38732070
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jimp38732070
Level 2

Likes

2 likes

Total Posts

40 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
jimp38732070
Level 2

25-10-2017

That appears to need to reference a file though.

Asset is created by AssetManager and can be retrieved either via AssetManager or by adapting a asset Resource to an Asset.

     eg: // to create an asset AssetManager assetManager = resolver.adaptTo(AssetManager.class); Asset newAsset = assetManager.createAsset("/path/to/asset/document.pdf"); 

I'm thinking the system can't create an asset record without a file object to refer to.  I can accomplish what I need to do by creating a small file with the known final asset filename and ingest beforehand, then update with the real asset when ready.

Is that not correct?

Thanks!

Jim P