@Entity public class Resource extends Object
| 构造器和说明 |
|---|
Resource() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addChild(Resource child) |
List<Resource> |
getChilds() |
String |
getIcon() |
Long |
getId() |
String |
getLink() |
String |
getName() |
Resource |
getParent() |
int |
getSort() |
ResourceType |
getType() |
Set<String> |
getUrls() |
void |
setChilds(List<Resource> childs) |
void |
setIcon(String icon) |
void |
setId(Long id) |
void |
setLink(String link) |
void |
setName(String name) |
void |
setParent(Resource parent) |
void |
setSort(int sort) |
void |
setType(ResourceType type) |
void |
setUrls(Set<String> urls) |
ResourceInfo |
toTree(User user) |
public ResourceInfo toTree(User user)
public void addChild(Resource child)
public Long getId()
public void setId(Long id)
public String getName()
public void setName(String name)
public Resource getParent()
public void setParent(Resource parent)
public int getSort()
public void setSort(int sort)
public String getLink()
public void setLink(String link)
link - the link to setpublic String getIcon()
public void setIcon(String icon)
icon - the icon to setpublic ResourceType getType()
public void setType(ResourceType type)
type - the type to setCopyright © 2018. All rights reserved.