public class ResourceModelUtil extends Object
Constructor and Description |
---|
ResourceModelUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSingleLanguagePathTypel(String typeId) |
static ResourceMetaAttributeModel |
makeInternalResourceMetaAttributeModel(String domainId,
String typeId) |
static LanguagePathModel |
makeLanguagePathModel(Collection<ResourceMetaAttributeModel> metaAttributeList,
Collection<ResourceAttribute> attributeList) |
static ResourceModel |
makeModel(Resource entity) |
static ResourceMetaAttributeModel |
makeOtherResourceMetaAttributeModel(String typeDomainId,
String typeId) |
static ResourceTypeModel |
makeOtherResourceTypeModel() |
static ResourceMetaAttributeModel |
makeResourceMetaAttributeModel(ResourceMetaAttribute entity) |
static ResourceTypeModel |
makeTypeModel(ResourceType entity) |
static Resource |
setProperty(ResourceModel model,
Resource entity) |
static ResourceMetaAttribute |
setResourceMetaAttribute(ResourceMetaAttributeModel model,
ResourceMetaAttribute entity) |
static ResourceType |
setTypeProperty(ResourceType entity,
ResourceTypeModel model) |
public static ResourceModel makeModel(Resource entity) throws ServiceManagerException
ServiceManagerException
public static Resource setProperty(ResourceModel model, Resource entity) throws ServiceManagerException
ServiceManagerException
public static ResourceTypeModel makeTypeModel(ResourceType entity) throws ServiceManagerException
ServiceManagerException
public static ResourceType setTypeProperty(ResourceType entity, ResourceTypeModel model)
public static ResourceTypeModel makeOtherResourceTypeModel()
public static ResourceMetaAttributeModel makeOtherResourceMetaAttributeModel(String typeDomainId, String typeId)
public static ResourceMetaAttributeModel makeInternalResourceMetaAttributeModel(String domainId, String typeId)
public static ResourceMetaAttributeModel makeResourceMetaAttributeModel(ResourceMetaAttribute entity)
public static ResourceMetaAttribute setResourceMetaAttribute(ResourceMetaAttributeModel model, ResourceMetaAttribute entity)
public static LanguagePathModel makeLanguagePathModel(Collection<ResourceMetaAttributeModel> metaAttributeList, Collection<ResourceAttribute> attributeList) throws InvalidLanguageTagException, InvalidLanguagePathException
public static boolean isSingleLanguagePathTypel(String typeId)